Edit lockscreen and add locking screen after suspend

This commit is contained in:
Wiktor Zykubek 2020-04-07 11:57:37 +02:00
parent 12aa80d521
commit 59a4d8638d
2 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@
RESOL=$(xrandr | grep '*' | grep -o '?*[0-9]*x?*[0-9]*') RESOL=$(xrandr | grep '*' | grep -o '?*[0-9]*x?*[0-9]*')
i3lock -i ~/.config/wallpapers/$RESOL/wall$(( ( RANDOM % $(ls ~/.config/wallpapers/$RESOL | wc -l) +1 ) )).png --composite --insidecolor=55443311 --ringcolor=99443300 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000 -k --timesize=50 --datesize=20 --time-font=Inconsolata --date-font=Inconsolata --bar-indicator i3lock -i ~/.config/wallpapers/$RESOL/wall$(( ( RANDOM % $(ls ~/.config/wallpapers/$RESOL | wc -l) +1 ) )).png --composite --insidecolor=55443311 --ringcolor=99443300 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000 --bar-indicator

View File

@ -5,7 +5,7 @@ if [ -z "$WHAT" ]; then exit; fi
case "$WHAT" in case "$WHAT" in
Shutdown) systemctl poweroff;; Shutdown) systemctl poweroff;;
Suspend) systemctl suspend;; Suspend) sh ~/.scripts/lockscreen; systemctl suspend;;
Lock) sh ~/.scripts/lockscreen;; Lock) sh ~/.scripts/lockscreen;;
*) systemctl reboot Reboot) systemctl reboot
esac esac