summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <atvx717@infraredcombat.xyz>2023-03-28 04:26:06 +0300
committertsxv478 <atvx717@infraredcombat.xyz>2023-03-28 04:26:06 +0300
commit4766116585e1e4f4dd46df97c655398f57e0a2cc (patch)
tree11ec9debc670e62efb0e3c047b59e542efac0f4e
parenta22512091888df23b76969148e26f39a3b9910b7 (diff)
screen off option
-rwxr-xr-xsysact3
1 files changed, 2 insertions, 1 deletions
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 ;;