updated quickshell
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
after_sleep_cmd = "hyprctl dispatch \"hl.dsp.dpms({off = false})\"";
|
||||
};
|
||||
|
||||
listener = [
|
||||
@@ -24,10 +24,12 @@
|
||||
on-timeout = "loginctl lock-session";
|
||||
}
|
||||
# 3. Turn off displays (DPMS) after 10 minutes
|
||||
# NOTE: Hyprland's Lua config bridge requires typed dispatcher calls;
|
||||
# `hyprctl dispatch dpms off` is mangled into invalid Lua.
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
on-timeout = "hyprctl dispatch \"hl.dsp.dpms({off = true})\"";
|
||||
on-resume = "hyprctl dispatch \"hl.dsp.dpms({off = false})\"";
|
||||
}
|
||||
# 4. Suspend system after 30 minutes
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user