added suspend action
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user