mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Be more precise than sleep
This commit is contained in:
@ -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 ;;
|
||||||
|
Reference in New Issue
Block a user