From 7cc9ade929ced85c014964787cc41b59f53c04b6 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 19 Aug 2022 18:44:52 +0200 Subject: [PATCH] generalize window locker in sysact script --- .local/bin/sysact | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/sysact b/.local/bin/sysact index c03badad2..d734ff596 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -6,11 +6,11 @@ case "$(readlink -f /sbin/init)" in esac case "$(printf " lock\nﴚ leave dwm\n累 renew dwm\nﭦ hibernate\n sleep\nﰇ reboot\n襤 shutdown\n display off" | dmenu -i -p 'Action: ')" in - ' lock') slock -m "$(cowsay -f octopus "$(fortune)" | lolcat -ft)" && gpg-connect-agent --no-autostart reloadagent /bye;; + ' lock') xset s activate & gpg-connect-agent --no-autostart reloadagent /bye;; 'ﴚ leave dwm') kill -TERM "$(pgrep -u "$USER" "\bdwm$")" ;; '累 renew dwm') kill -HUP "$(pgrep -u "$USER" "\bdwm$")" ;; - 'ﭦ hibernate') slock $ctl hibernate ;; - ' sleep') slock $ctl suspend ;; + # 'ﭦ hibernate') slock $ctl hibernate ;; + # ' sleep') slock $ctl suspend ;; 'ﰇ reboot') $ctl reboot ;; '襤 shutdown') $ctl poweroff ;; ' display off') xset dpms force off ;;