From f8bc625f60aae6643034a77ba2cb85bd4b4cfe31 Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Tue, 28 Mar 2023 04:26:06 +0300 Subject: screen off option --- sysact | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysact') diff --git a/sysact b/sysact index 977b9a6..01779c5 100755 --- a/sysact +++ b/sysact @@ -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 ;; -- cgit v1.2.3