add hypr-lid service for clamshell and delayed lid sleep
This commit is contained in:
@@ -65,6 +65,5 @@ hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||
|
||||
-- Laptop lid for opening and closing
|
||||
hl.bind("switch:on:Lid Switch", hl.dsp.exec_cmd("hyprctl dpms off && hyprctl dispatch exec hyprlock"), { locked = true })
|
||||
hl.bind("switch:off:Lid Switch", hl.dsp.exec_cmd("hyprctl dispatch dpms on"), { locked = true })
|
||||
-- Laptop lid is handled by hypr-lid.service (clamshell when docked, delayed
|
||||
-- lock/suspend otherwise) instead of these binds; see .local/bin/hypr-lid.sh.
|
||||
|
||||
Reference in New Issue
Block a user