From cea316425f40668ece621b4ac08191df64be5d4a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Jul 2025 11:04:40 -0700 Subject: [PATCH] Tweak presentation, drop the hotkey references --- bin/omarchy-power-menu | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 ;;