Lock screen before suspend

This commit is contained in:
dbroqua 2020-10-02 13:04:31 +02:00
parent 32c130802f
commit 3360909f33

View file

@ -8,7 +8,7 @@ choice=`echo -e "0: Logout\n1: Shutdown\n2: Suspend\n3: Reboot\n4: Cancel" | rof
case "$choice" in case "$choice" in
0) i3-msg exit & ;; 0) i3-msg exit & ;;
1) systemctl poweroff & ;; 1) systemctl poweroff & ;;
2) systemctl suspend & ;; 2) ~/Bin/lock.sh & systemctl suspend & ;;
3) systemctl reboot & ;; 3) systemctl reboot & ;;
4) exit ;; 4) exit ;;
esac esac