summaryrefslogtreecommitdiff
path: root/tools/power-menu.sh
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-11 10:30:04 -0500
committerauric <104602845+ihateamongus@users.noreply.github.com>2025-09-11 10:30:04 -0500
commit2a43f42921639a09bc191679f1f600fc645ea25f (patch)
tree65c378c58eb1efe6c8bacc0f50ce987e6ae7995e /tools/power-menu.sh
parent0408cb4803e0b2c82affb16e2eac8dfd73895343 (diff)
feat: add fuzzy vertical dmenu
Diffstat (limited to 'tools/power-menu.sh')
-rwxr-xr-xtools/power-menu.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/power-menu.sh b/tools/power-menu.sh
new file mode 100755
index 0000000..e3b5c63
--- /dev/null
+++ b/tools/power-menu.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+# simple power menu using dmenu
+choice=$(printf '%s\n' lock reboot shutdown | dmenu -i -l 5)
+case "$choice" in
+ lock)
+ slock &
+ ;;
+ reboot)
+ loginctl reboot
+ ;;
+ shutdown)
+ loginctl poweroff
+ ;;
+ *)
+ exit 0
+ ;;
+esac