Adding shortcuts to power options

This commit is contained in:
Noah Penza
2025-07-07 21:07:13 +10:00
parent ef5a02a84c
commit c032a6aa37

View File

@ -5,13 +5,13 @@
# Function to show power menu # Function to show power menu
show_power_menu() { show_power_menu() {
local menu_options="\u200B Lock local menu_options="\u200B Lock (Super + Escape)
\u200C󰤄 Sleep \u200C󰤄 Sleep (Shift + Super + Escape)
\u200D Relaunch \u200D Relaunch (Alt + Super + Escape)
\u2060󰜉 Restart \u2060󰜉 Restart (Ctrl + Super + Escape)
󰐥\u2063 Shutdown" # These first characters are invisible sort keys 󰐥\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 200 --height 195 -O alphabetical --style ~/.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 ~/.config/wofi/omarchy-power-menu.css)
case "$selection" in case "$selection" in
*Lock*) hyprlock ;; *Lock*) hyprlock ;;