diff --git a/.scripts/changebg b/.scripts/changebg index b295e1c..e1c71cf 100755 --- a/.scripts/changebg +++ b/.scripts/changebg @@ -39,7 +39,7 @@ echo "\nXcursor.theme: Breeze" >> ~./Xresources # merge it into xrdb xrdb -merge ~/.Xresources -emacsclient -e '(my-load-xresources)' +#emacsclient -e '(my-load-xresources)' xmobar_change killall xmobar @@ -52,7 +52,7 @@ xmonad --restart # change lock screen background #betterlockscreen -u $PATH_TO_IMG - +betterlockscreen -u $PATH_TO_IMG # change login manager screen PROJECT_ROOT="/home/os/Documents/Projects/aether-fork" # change this path if needed. diff --git a/.scripts/powerbutton b/.scripts/powerbutton new file mode 100755 index 0000000..aadc669 --- /dev/null +++ b/.scripts/powerbutton @@ -0,0 +1,10 @@ +#!/bin/bash +. "${HOME}/.cache/wal/colors.sh" + +result=$(echo -e "Shutdown\nRestart\nSleep\nLock" | dmenu -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -p "") +case "$result" in + ("Shutdown") shutdownnow ;; + ("Restart") reboot ;; + ("Sleep") systemctl suspend ;; + ("Lock") betterlockscreen -l ;; +esac diff --git a/.scripts/shutdownnow b/.scripts/shutdownnow deleted file mode 100755 index f01bedd..0000000 --- a/.scripts/shutdownnow +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -systemctl poweroff diff --git a/.scripts/update_mirrors b/.scripts/update_mirrors new file mode 100755 index 0000000..7e49a29 --- /dev/null +++ b/.scripts/update_mirrors @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo reflector --score 100 -l 50 -f 10 --sort rate --save /etc/pacman.d/mirrorlist --verbose