aboutsummaryrefslogtreecommitdiffstats
path: root/bin/exit-menu.sh
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-12-25 14:55:37 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-12-25 14:55:37 +0000
commit59fd10c296ee5fda22226ffd71707ca597f85ed7 (patch)
tree7c1f2457706783674f437975973840eb0f34b741 /bin/exit-menu.sh
parentf2866e8ad4a9ba0b12ea047b2f72f7d7d457d63f (diff)
Add bin
Diffstat (limited to 'bin/exit-menu.sh')
-rwxr-xr-xbin/exit-menu.sh22
1 files changed, 0 insertions, 22 deletions
diff --git a/bin/exit-menu.sh b/bin/exit-menu.sh
deleted file mode 100755
index 9c9f7ab..0000000
--- a/bin/exit-menu.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-entries=" Lock\n󰹆 Suspend\n󰹆 Suspend-then-Hibernate\n󰒲 Hibernate\n󰍃 Logout\n󰜉 Reboot\n󰐥 Shutdown"
-
-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)
- 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)
- exec systemctl poweroff -i;;
-esac