added suspend action

This commit is contained in:
Maximilian Wagner
2025-12-29 23:21:50 +01:00
parent 611f5306aa
commit e41b64c0ab

View File

@@ -5,6 +5,7 @@ dmenu_command=(wofi -dmenu -p "Power Menu" -i)
# Define menu options and corresponding actions
options=(
"Lock"
"Suspend"
"Logout"
"Shutdown"
"Reboot"
@@ -13,6 +14,7 @@ options=(
# Create associative array mapping text to actions
declare -A actions
actions["Lock"]="sleep 0.2 && hyprlock"
actions["Suspend"]="sleep 0.2 && systemctl suspend"
actions["Logout"]="hyprctl dispatch exit"
actions["Shutdown"]="systemctl poweroff"
actions["Reboot"]="systemctl reboot"