diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-12-25 14:26:51 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-12-25 14:26:51 +0000 |
| commit | dc41873a79b32ed3d34dd7dac09c081f7472d207 (patch) | |
| tree | ba3c80c8d137263a8f346cf32853d15f75094fab /bin/exit-menu.sh | |
| parent | f4c682dc6bdeebe9f0c6a20deb7092cf893791a1 (diff) | |
Change most things to symlinks instead of hardlinks
Diffstat (limited to 'bin/exit-menu.sh')
| -rwxr-xr-x | bin/exit-menu.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/exit-menu.sh b/bin/exit-menu.sh index b7236fe..9c9f7ab 100755 --- a/bin/exit-menu.sh +++ b/bin/exit-menu.sh @@ -1,16 +1,20 @@ #!/bin/bash -entries=" Lock\n Suspend\n Logout\n Reboot\n Shutdown" +entries=" Lock\n Suspend\n Suspend-then-Hibernate\n Hibernate\n Logout\n Reboot\n Shutdown" -selected=$(echo -e $entries|wofi --width 100 --height 185 --dmenu --cache-file /dev/null --define content_halign=center --define prompt="Exit menu" | awk '{print tolower($2)}') +selected=$(echo -e $entries|wofi --width 100 --height 212 --dmenu --cache-file /dev/null --define content_halign=center --define prompt="Exit menu" | awk '{print tolower($2)}') case $selected in lock) - hyprlock;; + swaylock;; logout) hyprctl dispatch exit;; + suspend-then-hibernate) + exec systemctl suspend-then-hibernate;; suspend) exec systemctl suspend;; + hibernate) + exec systemctl hibernate;; reboot) exec systemctl reboot;; shutdown) |
