From 59a4d8638d732608d677e81758cfa1e8e0ae36a9 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Tue, 7 Apr 2020 11:57:37 +0200 Subject: [PATCH] Edit lockscreen and add locking screen after suspend --- botfiles/.scripts/lockscreen | 2 +- botfiles/.scripts/powermenu | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/botfiles/.scripts/lockscreen b/botfiles/.scripts/lockscreen index f757358..2b8dabd 100755 --- a/botfiles/.scripts/lockscreen +++ b/botfiles/.scripts/lockscreen @@ -2,4 +2,4 @@ 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 diff --git a/botfiles/.scripts/powermenu b/botfiles/.scripts/powermenu index 14dd5b1..126a098 100755 --- a/botfiles/.scripts/powermenu +++ b/botfiles/.scripts/powermenu @@ -5,7 +5,7 @@ if [ -z "$WHAT" ]; then exit; fi case "$WHAT" in Shutdown) systemctl poweroff;; - Suspend) systemctl suspend;; + Suspend) sh ~/.scripts/lockscreen; systemctl suspend;; Lock) sh ~/.scripts/lockscreen;; - *) systemctl reboot + Reboot) systemctl reboot esac