diff --git a/bin/omarchy-menu-power b/bin/omarchy-menu-power index 7536b3f..1c3d9dd 100755 --- a/bin/omarchy-menu-power +++ b/bin/omarchy-menu-power @@ -1,15 +1,13 @@ #!/bin/bash -# Power menu for Omarchy -# Provides power off, restart, and sleep options - -# Function to show power menu. The first characters are invisible sort keys. show_power_menu() { + # The first characters are invisible sort keys. local menu_options="\u200B Lock \u200C󰤄 Suspend \u200D Relaunch \u2060󰜉 Restart \u2063󰐥 Shutdown" + local selection=$(echo -e "$menu_options" | wofi --show dmenu --width 150 --height 195 -O alphabetical --style ~/.config/wofi/select.css) case "$selection" in @@ -21,5 +19,4 @@ show_power_menu() { esac } -# Main execution show_power_menu