Fix: Use Lua dispatch syntax for log out and DPMS, repair swaync power/lock buttons
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ general {
|
|||||||
lock_cmd = pidof hyprlock || hyprlock # runs hyprlock if it is not already running (this is always run when "loginctl lock-session" is called)
|
lock_cmd = pidof hyprlock || hyprlock # runs hyprlock if it is not already running (this is always run when "loginctl lock-session" is called)
|
||||||
# unlock_cmd = killall hyprlock # kills hyprlock when unlocking (this is always run when "loginctl unlock-session" is called)
|
# unlock_cmd = killall hyprlock # kills hyprlock when unlocking (this is always run when "loginctl unlock-session" is called)
|
||||||
before_sleep_cmd = loginctl lock-session # ensures that the session is locked before going to sleep
|
before_sleep_cmd = loginctl lock-session # ensures that the session is locked before going to sleep
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # turn of screen after sleep (not strictly necessary, but just in case)
|
after_sleep_cmd = hyprctl dispatch 'hl.dsp.dpms({action = "on"})' # turn of screen after sleep (not strictly necessary, but just in case)
|
||||||
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
|
ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -16,8 +16,8 @@ general {
|
|||||||
# (disabled by default)
|
# (disabled by default)
|
||||||
# listener {
|
# listener {
|
||||||
# timeout = 30 # 30 seconds
|
# timeout = 30 # 30 seconds
|
||||||
# on-timeout = pidof hyprlock && hyprctl dispatch dpms off # turns off the screen if hyprlock is active
|
# on-timeout = pidof hyprlock && hyprctl dispatch 'hl.dsp.dpms({action = "off"})' # turns off the screen if hyprlock is active
|
||||||
# on-resume = pidof hyprlock && hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired.
|
# on-resume = pidof hyprlock && hyprctl dispatch 'hl.dsp.dpms({action = "on"})' # command to run when activity is detected after timeout has fired.
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# Warn
|
# Warn
|
||||||
@@ -38,8 +38,8 @@ listener {
|
|||||||
# (disabled by default)
|
# (disabled by default)
|
||||||
# listener {
|
# listener {
|
||||||
# timeout = 630 # 10.5 min
|
# timeout = 630 # 10.5 min
|
||||||
# on-timeout = hyprctl dispatch dpms off # command to run when timeout has passed
|
# on-timeout = hyprctl dispatch 'hl.dsp.dpms({action = "off"})' # command to run when timeout has passed
|
||||||
# on-resume = hyprctl dispatch dpms on # command to run when activity is detected after timeout has fired.
|
# on-resume = hyprctl dispatch 'hl.dsp.dpms({action = "on"})' # command to run when activity is detected after timeout has fired.
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# Suspend # disabled by default
|
# Suspend # disabled by default
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ Item {
|
|||||||
{ label: "Lock", icon: "lock", cmd: ["hyprlock"] },
|
{ label: "Lock", icon: "lock", cmd: ["hyprlock"] },
|
||||||
{ label: "Suspend", icon: "bedtime", cmd: ["systemctl", "suspend"] },
|
{ label: "Suspend", icon: "bedtime", cmd: ["systemctl", "suspend"] },
|
||||||
{ label: "Hibernate", icon: "ac_unit", cmd: ["systemctl", "hibernate"] },
|
{ label: "Hibernate", icon: "ac_unit", cmd: ["systemctl", "hibernate"] },
|
||||||
{ label: "Log out", icon: "logout", cmd: ["hyprctl", "dispatch", "exit"] },
|
{ label: "Log out", icon: "logout", cmd: ["hyprctl", "dispatch", "hl.dsp.exit()"] },
|
||||||
{ label: "Reboot", icon: "restart_alt", cmd: ["systemctl", "reboot"] },
|
{ label: "Reboot", icon: "restart_alt", cmd: ["systemctl", "reboot"] },
|
||||||
{ label: "Shut down", icon: "power_settings_new", cmd: ["systemctl", "poweroff"] }
|
{ label: "Shut down", icon: "power_settings_new", cmd: ["systemctl", "poweroff"] }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -56,15 +56,15 @@
|
|||||||
"actions": [
|
"actions": [
|
||||||
{
|
{
|
||||||
"label": "",
|
"label": "",
|
||||||
"command": "bash -c $HOME/.config/hypr/scripts/Wlogout.sh"
|
"command": "bash -c $HOME/.config/rofi/powermenu/type-2/powermenu.sh"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "",
|
"label": "",
|
||||||
"command": "bash -c $HOME/.config/hypr/scripts/LockScreen.sh"
|
"command": "loginctl lock-session"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "",
|
"label": "",
|
||||||
"command": "hyprctl dispatch exit"
|
"command": "hyprctl dispatch 'hl.dsp.exit()'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "",
|
"label": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user