Tweak presentation, drop the hotkey references

This commit is contained in:
David Heinemeier Hansson
2025-07-07 11:04:40 -07:00
parent 9879726003
commit cea316425f

View File

@ -3,15 +3,14 @@
# Power menu for Omarchy # Power menu for Omarchy
# Provides power off, restart, and sleep options # 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() { show_power_menu() {
local menu_options="\u200B Lock (Super + Escape) local menu_options="\u200B Lock
\u200C󰤄 Sleep (Shift + Super + Escape) \u200C󰤄 Sleep
\u200D Relaunch (Alt + Super + Escape) \u200D Relaunch
\u2060󰜉 Restart (Ctrl + Super + Escape) \u2060󰜉 Restart
󰐥\u2063 Shutdown (Ctrl + Shift + Super + Escape)" # These first characters are invisible sort keys 󰐥\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)
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)
case "$selection" in case "$selection" in
*Lock*) hyprlock ;; *Lock*) hyprlock ;;