diff --git a/bin/omarchy-power-menu b/bin/omarchy-power-menu index fdcb80e..1bc444a 100755 --- a/bin/omarchy-power-menu +++ b/bin/omarchy-power-menu @@ -3,15 +3,14 @@ # Power menu for Omarchy # Provides power off, restart, and sleep options -# Function to show power menu +# Function to show power menu. The first characters are invisible sort keys. show_power_menu() { - local menu_options="\u200B Lock (Super + Escape) -\u200C󰤄 Sleep (Shift + Super + Escape) -\u200D Relaunch (Alt + Super + Escape) -\u2060󰜉 Restart (Ctrl + Super + Escape) -󰐥\u2063 Shutdown (Ctrl + Shift + Super + Escape)" # These first characters are invisible sort keys - - local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 500 --height 195 -O alphabetical --style ~/.local/share/omarchy/config/wofi/omarchy-power-menu.css) + local menu_options="\u200B Lock +\u200C󰤄 Sleep +\u200D Relaunch +\u2060󰜉 Restart +󰐥\u2063 Shutdown" + local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 150 --height 195 -O alphabetical --style ~/.local/share/omarchy/config/wofi/omarchy-power-menu.css) case "$selection" in *Lock*) hyprlock ;;