From eab3ad3a252656d57639ce94867b2a7c3f80bde2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 2 Jan 2023 18:24:19 +0300 Subject: cleanup no longer needed files --- artix.sh | 10 +- dotfiles/.local/bin/bkup | 52 ---------- laptop/pmsetup.sh | 21 ---- laptop/powertune | 5 - laptop/powertune.service | 11 -- runit/startupsound/run | 7 -- system/elogind/logind.conf | 54 ---------- system/lightdm/lightdm-mini-greeter.conf | 58 ----------- system/lightdm/lightdm.conf | 169 ------------------------------- system/mkinitcpio.conf | 66 ------------ system/pam.d/lightdm | 9 -- system/systemd/journald.conf | 43 -------- 12 files changed, 5 insertions(+), 500 deletions(-) delete mode 100755 dotfiles/.local/bin/bkup delete mode 100755 laptop/pmsetup.sh delete mode 100755 laptop/powertune delete mode 100644 laptop/powertune.service delete mode 100755 runit/startupsound/run delete mode 100644 system/elogind/logind.conf delete mode 100644 system/lightdm/lightdm-mini-greeter.conf delete mode 100644 system/lightdm/lightdm.conf delete mode 100644 system/mkinitcpio.conf delete mode 100644 system/pam.d/lightdm delete mode 100644 system/systemd/journald.conf diff --git a/artix.sh b/artix.sh index bb26bb7..841a688 100755 --- a/artix.sh +++ b/artix.sh @@ -128,9 +128,12 @@ pacman -Sy \ v4l2loopback-dkms \ playerctl \ mpv-mpris \ + perl-image-exiftool \ + fzf \ + chafa \ || exit 1 -# Copy system config files + Copy system config files cp system/sudoers /etc/ cp system/mkinitcpio.conf /etc/ cp system/pam.d/* /etc/pam.d/ @@ -160,13 +163,10 @@ chown -R "$1:$1" build cd build sudo -u "$1" "git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si" -yay -S --noconfirm \ +yay -S \ ttf-symbola \ - ttf-ms-fonts \ pam-gnupg \ ncpamixer \ - mimeo \ - xdg-utils-mimeo \ lf-sixel-git \ dragon-drop \ swaylock-effects \ diff --git a/dotfiles/.local/bin/bkup b/dotfiles/.local/bin/bkup deleted file mode 100755 index 0e4d503..0000000 --- a/dotfiles/.local/bin/bkup +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh - -# Yaroslav de la Peña Smirnov 2021 -# Shortcut script for backing up files with rsync. -# By default it starts a dry run, to check that there are no conflicts. To -# commit the copy, i.e. do a normal (non-dry) run, use -c as the first or last -# argument. - -############################# Config example ################################### -## Lines in the locations file contain the shortcuts for the sources and -## destinations. For example, sources: -# src d /home/yaroslav/docs -# src m /home/yaroslav/music -## destinations: -# dst rm yaroslav@example.com: -# dst hd /mnt/disk/ -## The columns MUST be separated by ONE tab character -################################################################################ - -locations="$HOME/docs/data/bkup/locations" -ops="-ahv --delete --progress" - -if [ "$1" = "-c" ]; then - srckey="$2" - dstkey="$3" -else - if [ "$3" != "-c" ]; then - ops="-ahvn --delete" - fi - srckey="$1" - dstkey="$2" -fi - -if [ -z $srckey ] || [ -z $dstkey ]; then - echo "Usage: bkup [-c] [-c]" - exit 1 -fi - -relsrc="$(grep -E "src[[:space:]]+$srckey" "$locations" | cut -f3)" -if [ -z "$relsrc" ]; then - echo "Source shortcut not found" - exit 1 -fi -target="$(echo "$relsrc" | awk -F'/' '{print $(NF)}')" - -reldst="$(grep -E "dst[[:space:]]+$dstkey[[:space:]]+" "$locations" | cut -f3)" -if [ -z "$reldst" ]; then - echo "Destination shortcut not found" - exit 1 -fi - -rsync $ops "$relsrc/" "$reldst$target/" diff --git a/laptop/pmsetup.sh b/laptop/pmsetup.sh deleted file mode 100755 index 01b2e23..0000000 --- a/laptop/pmsetup.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Meant to be executed just once after system install - -cp powertune /bin/powertune -cp powertune.service /etc/systemd/system/ -cp 90-backlight.rules /etc/udev/rules.d/ -sudo systemctl start powertune -sudo systemctl enable powertune - -# Disable everything from being able to wake up the computer except for the lid -for x in $(find /sys -name wakeup) ; do if [ "$(cat $x)" == "enabled" ]; then echo 'disabled' >> $x; fi; done -echo LID | tee /proc/acpi/wakeup - -# lid -cp logind.conf /etc/systemd/ -mkdir -p /etc/acpi/events -mkdir -p /etc/acpi/actions -cp lid-button /etc/acpi/events/ -cp lid-button.sh /etc/acpi/actions/ -sudo systemctl start acpid -sudo systemctl enable acpid diff --git a/laptop/powertune b/laptop/powertune deleted file mode 100755 index f113000..0000000 --- a/laptop/powertune +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -/usr/bin/powertop --auto-tune -for x in $(find /sys -name wakeup) ; do if [ "$(cat $x)" == "enabled" ]; then echo 'disabled' >> $x; fi; done -echo LID | /usr/bin/tee /proc/acpi/wakeup diff --git a/laptop/powertune.service b/laptop/powertune.service deleted file mode 100644 index 0d7c3ca..0000000 --- a/laptop/powertune.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Tune system's power management - -[Service] -User=root -Group=root -ExecStart=/bin/powertune - -[Install] -Alias=powertune.service -WantedBy=multi-user.target diff --git a/runit/startupsound/run b/runit/startupsound/run deleted file mode 100755 index b625d63..0000000 --- a/runit/startupsound/run +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -e - -sv start agetty-tty2 || exit 1 - -mpv --audio-device='' --volume=100 --really-quiet /home/yaroslav/.local/share/soundalerts/start.ogg& - -exec chpst -b startupsound pause diff --git a/system/elogind/logind.conf b/system/elogind/logind.conf deleted file mode 100644 index b5e7d2b..0000000 --- a/system/elogind/logind.conf +++ /dev/null @@ -1,54 +0,0 @@ -# This file is part of elogind. -# -# elogind is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. -# -# Entries in this file show the compile time defaults. -# You can change settings by editing this file. -# Defaults can be restored by simply deleting this file. -# -# See logind.conf(5) for details. - -[Login] -#KillUserProcesses=no -#KillOnlyUsers= -#KillExcludeUsers=root -#InhibitDelayMaxSec=5 -#HandlePowerKey=poweroff -#HandleSuspendKey=suspend -#HandleHibernateKey=hibernate -HandleLidSwitch=ignore -HandleLidSwitchExternalPower=ignore -#HandleLidSwitchDocked=ignore -#PowerKeyIgnoreInhibited=no -#SuspendKeyIgnoreInhibited=no -#HibernateKeyIgnoreInhibited=no -#LidSwitchIgnoreInhibited=yes -#HoldoffTimeoutSec=30s -#IdleAction=ignore -#IdleActionSec=30min -#RuntimeDirectorySize=10% -#RuntimeDirectoryInodes=400k -#RemoveIPC=yes -#InhibitorsMax=8192 -#SessionsMax=8192 - -[Sleep] -#AllowSuspend=yes -#AllowHibernation=yes -#AllowSuspendThenHibernate=yes -#AllowHybridSleep=yes -#AllowPowerOffInterrupts=no -#BroadcastPowerOffInterrupts=yes -#AllowSuspendInterrupts=no -#BroadcastSuspendInterrupts=yes -#HandleNvidiaSleep=no -#SuspendState=mem standby freeze -#SuspendMode= -#HibernateState=disk -#HibernateMode=platform shutdown -#HybridSleepState=disk -#HybridSleepMode=suspend platform shutdown -#HibernateDelaySec=10800 diff --git a/system/lightdm/lightdm-mini-greeter.conf b/system/lightdm/lightdm-mini-greeter.conf deleted file mode 100644 index c7da6d6..0000000 --- a/system/lightdm/lightdm-mini-greeter.conf +++ /dev/null @@ -1,58 +0,0 @@ -# LightDM Mini Greeter Configuration -# -# To test your configuration out, run: lightdm --test-mode - -[greeter] -# The user to login as. -user = yaroslav -# Whether to show the password input's label. -show-password-label = true -# The text of the password input's label. -password-label-text = Password: -# Show a blinking cursor in the password input. -show-input-cursor = true - - -[greeter-hotkeys] -# The modifier key used to trigger hotkeys. Possible values are: -# "alt", "control" or "meta" -# meta is also known as the "Windows"/"Super" key -mod-key = meta -# Power management shortcuts (single-key, case-sensitive) -shutdown-key = s -restart-key = r -hibernate-key = h -suspend-key = u - - -[greeter-theme] -# A color from X11's `rgb.txt` file, a quoted hex string(`"#rrggbb"`) or a -# RGB color(`rgb(r,g,b)`) are all acceptable formats. - -# The font to use for all text -font = "BlexMono Nerd Font Mono" -# The font size to use for all text -font-size = 1em -# The default text color -text-color = "#e5e9f0" -# The color of the error text -error-color = "#b73030" -# An absolute path to an optional background image. -# The image will be displayed centered & unscaled. -background-image = "" -# The screen's background color. -background-color = "#1b1e25" -# The password window's background color -window-color = "#2d333f" -# The color of the password window's border -border-color = "#3b4252" -# The width of the password window's border. -# A trailing `px` is required. -border-width = 2px -# The pixels of empty space around the password input. -# Do not include a trailing `px`. -layout-space = 15 -# The color of the text in the password input. -password-color = "#e5e9f0" -# The background color of the password input. -password-background-color = "#1b1e25" diff --git a/system/lightdm/lightdm.conf b/system/lightdm/lightdm.conf deleted file mode 100644 index 7d8f205..0000000 --- a/system/lightdm/lightdm.conf +++ /dev/null @@ -1,169 +0,0 @@ -# -# General configuration -# -# start-default-seat = True to always start one seat if none are defined in the configuration -# greeter-user = User to run greeter as -# minimum-display-number = Minimum display number to use for X servers -# minimum-vt = First VT to run displays on -# lock-memory = True to prevent memory from being paged to disk -# user-authority-in-system-dir = True if session authority should be in the system location -# guest-account-script = Script to be run to setup guest account -# logind-check-graphical = True to on start seats that are marked as graphical by logind -# log-directory = Directory to log information to -# run-directory = Directory to put running state in -# cache-directory = Directory to cache to -# sessions-directory = Directory to find sessions -# remote-sessions-directory = Directory to find remote sessions -# greeters-directory = Directory to find greeters -# backup-logs = True to move add a .old suffix to old log files when opening new ones -# dbus-service = True if LightDM provides a D-Bus service to control it -# -[LightDM] -#start-default-seat=true -#greeter-user=lightdm -#minimum-display-number=0 -#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799 -#lock-memory=true -#user-authority-in-system-dir=false -#guest-account-script=guest-account -#logind-check-graphical=false -#log-directory=/var/log/lightdm -run-directory=/run/lightdm -#cache-directory=/var/cache/lightdm -#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions -#remote-sessions-directory=/usr/share/lightdm/remote-sessions -#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters -#backup-logs=true -#dbus-service=true - -# -# Seat configuration -# -# Seat configuration is matched against the seat name glob in the section, for example: -# [Seat:*] matches all seats and is applied first. -# [Seat:seat0] matches the seat named "seat0". -# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client". -# -# type = Seat type (local, xremote, unity) -# pam-service = PAM service to use for login -# pam-autologin-service = PAM service to use for autologin -# pam-greeter-service = PAM service to use for greeters -# xserver-backend = X backend to use (mir) -# xserver-command = X server command to run (can also contain arguments e.g. X -special-option) -# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option) -# xserver-config = Config file to pass to X server -# xserver-layout = Layout to pass to X server -# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server -# xserver-share = True if the X server is shared for both greeter and session -# xserver-hostname = Hostname of X server (only for type=xremote) -# xserver-display-number = Display number of X server (only for type=xremote) -# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true) -# xdmcp-port = XDMCP UDP/IP port to communicate on -# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf) -# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option) -# unity-compositor-timeout = Number of seconds to wait for compositor to start -# greeter-session = Session to load for greeter -# greeter-hide-users = True to hide the user list -# greeter-allow-guest = True if the greeter should show a guest login option -# greeter-show-manual-login = True if the greeter should offer a manual login option -# greeter-show-remote-login = True if the greeter should offer a remote login option -# user-session = Session to load for users -# allow-user-switching = True if allowed to switch users -# allow-guest = True if guest login is allowed -# guest-session = Session to load for guests (overrides user-session) -# session-wrapper = Wrapper script to run session with -# greeter-wrapper = Wrapper script to run greeter with -# guest-wrapper = Wrapper script to run guest sessions with -# display-setup-script = Script to run when starting a greeter session (runs as root) -# display-stopped-script = Script to run after stopping the display server (runs as root) -# greeter-setup-script = Script to run when starting a greeter (runs as root) -# session-setup-script = Script to run when starting a user session (runs as root) -# session-cleanup-script = Script to run when quitting a user session (runs as root) -# autologin-guest = True to log in as guest by default -# autologin-user = User to log in with by default (overrides autologin-guest) -# autologin-user-timeout = Number of seconds to wait before loading default user -# autologin-session = Session to load for automatic login (overrides user-session) -# autologin-in-background = True if autologin session should not be immediately activated -# exit-on-failure = True if the daemon should exit if this seat fails -# -[Seat:*] -#type=local -#pam-service=lightdm -#pam-autologin-service=lightdm-autologin -#pam-greeter-service=lightdm-greeter -#xserver-backend= -#xserver-command=X -#xmir-command=Xmir -#xserver-config= -#xserver-layout= -#xserver-allow-tcp=false -#xserver-share=true -#xserver-hostname= -#xserver-display-number= -#xdmcp-manager= -#xdmcp-port=177 -#xdmcp-key= -#unity-compositor-command=unity-system-compositor -#unity-compositor-timeout=60 -greeter-session=lightdm-mini-greeter -#greeter-hide-users=false -#greeter-allow-guest=true -#greeter-show-manual-login=false -#greeter-show-remote-login=true -user-session=sway -#allow-user-switching=true -#allow-guest=true -#guest-session= -session-wrapper=/etc/lightdm/Xsession -#greeter-wrapper= -#guest-wrapper= -#display-setup-script=/etc/lightdm/display_setup.sh -#display-stopped-script= -#greeter-setup-script= -#session-setup-script= -#session-cleanup-script= -#autologin-guest=false -#autologin-user= -#autologin-user-timeout=0 -#autologin-in-background=false -#autologin-session= -#exit-on-failure=false - -# -# XDMCP Server configuration -# -# enabled = True if XDMCP connections should be allowed -# port = UDP/IP port to listen for connections on -# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present) -# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf) -# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset) -# -# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively -# it can be a word and the first 7 characters are used as the key. -# -[XDMCPServer] -#enabled=false -#port=177 -#listen-address= -#key= -#hostname= - -# -# VNC Server configuration -# -# enabled = True if VNC connections should be allowed -# command = Command to run Xvnc server with -# port = TCP/IP port to listen for connections on -# listen-address = Host/address to listen for VNC connections (use all addresses if not present) -# width = Width of display to use -# height = Height of display to use -# depth = Color depth of display to use -# -[VNCServer] -#enabled=false -#command=Xvnc -#port=5900 -#listen-address= -#width=1024 -#height=768 -#depth=8 diff --git a/system/mkinitcpio.conf b/system/mkinitcpio.conf deleted file mode 100644 index 33a5ac2..0000000 --- a/system/mkinitcpio.conf +++ /dev/null @@ -1,66 +0,0 @@ -# vim:set ft=sh -# MODULES -# The following modules are loaded before any boot hooks are -# run. Advanced users may wish to specify all system modules -# in this array. For instance: -# MODULES=(piix ide_disk reiserfs) -MODULES=() - -# BINARIES -# This setting includes any additional binaries a given user may -# wish into the CPIO image. This is run last, so it may be used to -# override the actual binaries included by a given hook -# BINARIES are dependency parsed, so you may safely ignore libraries -BINARIES=() - -# FILES -# This setting is similar to BINARIES above, however, files are added -# as-is and are not parsed in any way. This is useful for config files. -FILES=() - -# HOOKS -# This is the most important setting in this file. The HOOKS control the -# modules and scripts added to the image, and what happens at boot time. -# Order is important, and it is recommended that you do not change the -# order in which HOOKS are added. Run 'mkinitcpio -H ' for -# help on a given hook. -# 'base' is _required_ unless you know precisely what you are doing. -# 'udev' is _required_ in order to automatically load modules -# 'filesystems' is _required_ unless you specify your fs modules in MODULES -# Examples: -## This setup specifies all modules in the MODULES setting above. -## No raid, lvm2, or encrypted root is needed. -# HOOKS=(base) -# -## This setup will autodetect all modules for your system and should -## work as a sane default -# HOOKS=(base udev autodetect block filesystems) -# -## This setup will generate a 'full' image which supports most systems. -## No autodetection is done. -# HOOKS=(base udev block filesystems) -# -## This setup assembles a pata mdadm array with an encrypted root FS. -## Note: See 'mkinitcpio -H mdadm' for more information on raid devices. -# HOOKS=(base udev block mdadm encrypt filesystems) -# -## This setup loads an lvm2 volume group on a usb device. -# HOOKS=(base udev block lvm2 filesystems) -# -## NOTE: If you have /usr on a separate partition, you MUST include the -# usr, fsck and shutdown hooks. -HOOKS=(base udev autodetect modconf block consolefont filesystems keyboard fsck) - -# COMPRESSION -# Use this to compress the initramfs image. By default, gzip compression -# is used. Use 'cat' to create an uncompressed image. -#COMPRESSION="gzip" -#COMPRESSION="bzip2" -#COMPRESSION="lzma" -#COMPRESSION="xz" -#COMPRESSION="lzop" -#COMPRESSION="lz4" - -# COMPRESSION_OPTIONS -# Additional options for the compressor -#COMPRESSION_OPTIONS=() diff --git a/system/pam.d/lightdm b/system/pam.d/lightdm deleted file mode 100644 index f383294..0000000 --- a/system/pam.d/lightdm +++ /dev/null @@ -1,9 +0,0 @@ -#%PAM-1.0 -auth include system-login -auth optional pam_gnupg.so --auth optional pam_gnome_keyring.so -account include system-login -password include system-login -session include system-login -session optional pam_gnupg.so --session optional pam_gnome_keyring.so auto_start diff --git a/system/systemd/journald.conf b/system/systemd/journald.conf deleted file mode 100644 index a23318f..0000000 --- a/system/systemd/journald.conf +++ /dev/null @@ -1,43 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. -# -# Entries in this file show the compile time defaults. -# You can change settings by editing this file. -# Defaults can be restored by simply deleting this file. -# -# See journald.conf(5) for details. - -[Journal] -Storage=auto -#Compress=yes -#Seal=yes -#SplitMode=uid -#SyncIntervalSec=5m -#RateLimitIntervalSec=30s -#RateLimitBurst=10000 -#SystemMaxUse= -#SystemKeepFree= -SystemMaxFileSize=1G -SystemMaxFiles=5 -#RuntimeMaxUse= -#RuntimeKeepFree= -#RuntimeMaxFileSize= -#RuntimeMaxFiles=100 -#MaxRetentionSec= -#MaxFileSec=1month -#ForwardToSyslog=no -#ForwardToKMsg=no -#ForwardToConsole=no -#ForwardToWall=yes -#TTYPath=/dev/console -#MaxLevelStore=debug -#MaxLevelSyslog=debug -#MaxLevelKMsg=notice -#MaxLevelConsole=info -#MaxLevelWall=emerg -#LineMax=48K -#ReadKMsg=yes -- cgit v1.2.3