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
|
# Define menu options and corresponding actions
|
||||||
options=(
|
options=(
|
||||||
"Lock"
|
"Lock"
|
||||||
|
"Suspend"
|
||||||
"Logout"
|
"Logout"
|
||||||
"Shutdown"
|
"Shutdown"
|
||||||
"Reboot"
|
"Reboot"
|
||||||
@@ -13,6 +14,7 @@ options=(
|
|||||||
# Create associative array mapping text to actions
|
# Create associative array mapping text to actions
|
||||||
declare -A actions
|
declare -A actions
|
||||||
actions["Lock"]="sleep 0.2 && hyprlock"
|
actions["Lock"]="sleep 0.2 && hyprlock"
|
||||||
|
actions["Suspend"]="sleep 0.2 && systemctl suspend"
|
||||||
actions["Logout"]="hyprctl dispatch exit"
|
actions["Logout"]="hyprctl dispatch exit"
|
||||||
actions["Shutdown"]="systemctl poweroff"
|
actions["Shutdown"]="systemctl poweroff"
|
||||||
actions["Reboot"]="systemctl reboot"
|
actions["Reboot"]="systemctl reboot"
|
||||||
|
|||||||
Reference in New Issue
Block a user