diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-04-29 09:25:30 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-04-29 09:28:54 +0530 |
commit | 7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (patch) | |
tree | 1a9f78045786dbbad346204d3957194af04988e4 /.local/bin/desktop/i3exit | |
parent | a2860b969e97e47a2b1c0ddb7161adb5b35c06f3 (diff) |
Updates
Diffstat (limited to '.local/bin/desktop/i3exit')
-rwxr-xr-x | .local/bin/desktop/i3exit | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/.local/bin/desktop/i3exit b/.local/bin/desktop/i3exit index 0be387c..5aea730 100755 --- a/.local/bin/desktop/i3exit +++ b/.local/bin/desktop/i3exit @@ -22,29 +22,15 @@ lock_desktop() { } case "$command" in - lock) - lock_desktop - xset dpms force off - ;; - logout) - switch-session - i3-msg exit - ;; - switch_user) - dm-tool switch-to-greeter - ;; - suspend) - lock_desktop; $logind suspend - ;; - hibernate) - system_control lock_desktop && $logind hibernate - ;; - reboot) - system_control $logind reboot - ;; - shutdown) - system_control $logind poweroff - ;; + off) xset dpms force off ;; + lock) lock_desktop; xset dpms force off ;; + logout) switch-session; i3-msg exit ;; + switch_user) dm-tool switch-to-greeter ;; + suspend) $logind suspend ;; + sleep) lock_desktop; $logind suspend ;; + hibernate) system_control lock_desktop && $logind hibernate ;; + reboot) system_control $logind reboot ;; + shutdown) system_control $logind poweroff ;; *) echo "== ! i3exit: missing or invalid argument ! ==" echo "Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown" |