Be more precise than sleep

This commit is contained in:
David Heinemeier Hansson
2025-07-07 11:09:10 -07:00
parent cea316425f
commit 207f811e47

View File

@ -6,7 +6,7 @@
# Function to show power menu. The first characters are invisible sort keys. # Function to show power menu. The first characters are invisible sort keys.
show_power_menu() { show_power_menu() {
local menu_options="\u200B Lock local menu_options="\u200B Lock
\u200C󰤄 Sleep \u200C󰤄 Suspend
\u200D Relaunch \u200D Relaunch
\u2060󰜉 Restart \u2060󰜉 Restart
󰐥\u2063 Shutdown" 󰐥\u2063 Shutdown"
@ -14,7 +14,7 @@ show_power_menu() {
case "$selection" in case "$selection" in
*Lock*) hyprlock ;; *Lock*) hyprlock ;;
*Sleep*) systemctl suspend ;; *Suspend*) systemctl suspend ;;
*Relaunch*) hyprctl dispatch exit ;; *Relaunch*) hyprctl dispatch exit ;;
*Restart*) systemctl reboot ;; *Restart*) systemctl reboot ;;
*Shutdown*) systemctl poweroff ;; *Shutdown*) systemctl poweroff ;;