Turn screensaver binding into a full cmd menu

This commit is contained in:
David Heinemeier Hansson
2025-08-04 12:44:19 +02:00
parent d16c178eb4
commit 02043fa631
3 changed files with 35 additions and 11 deletions

View File

@@ -1,9 +1,7 @@
#!/bin/bash
show_power_menu() {
# The first characters are invisible sort keys.
local menu_options=" Lock
󱄄 Save
󰤄 Suspend
 Relaunch
󰜉 Restart
@@ -12,7 +10,6 @@ show_power_menu() {
case "$selection" in
*Lock*) hyprlock ;;
*Save*) ~/.local/share/omarchy/bin/omarchy-launch-screensaver ;;
*Suspend*) systemctl suspend ;;
*Relaunch*) uwsm stop ;;
*Restart*) systemctl reboot ;;