diff options
author | tsxv478 <vt0451@yandex.ru> | 2023-03-28 04:26:06 +0300 |
---|---|---|
committer | tsxv478 <vt0451@yandex.ru> | 2023-03-28 04:26:06 +0300 |
commit | f8bc625f60aae6643034a77ba2cb85bd4b4cfe31 (patch) | |
tree | 11ec9debc670e62efb0e3c047b59e542efac0f4e | |
parent | a3ed70075d25749e9582e8b3f43afe887d4f0517 (diff) |
screen off option
-rwxr-xr-x | sysact | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5,9 +5,10 @@ case "$(readlink -f /sbin/init)" in *) ctl='loginctl' ;; esac -action="$(printf "Lock\nSleep\nReboot\nShutdown" | dmenu -i -c -l 4 -p 'Action:')" +action="$(printf "Screen off\nLock\nSleep\nReboot\nShutdown" | dmenu -i -c -l 5 -p 'Action:')" case "$action" in + "Screen off") xset dpms force off ;; "Lock") xset dpms force off && slock ;; "Sleep") slock $ctl suspend -i ;; "Reboot") $ctl reboot -i ;; |