manage monitors with monique; reduce hypr-lid to lock/suspend timers
Add the monique GUI/daemon for monitor arrangement, hotplug profiles and clamshell handling (writes monitors.lua, keybind SUPER+SHIFT+M, stowed settings). hypr-lid is trimmed to hypr-lid-power: display management moved to moniqued, it now only runs the delayed lock/suspend timers when the lid is closed undocked. Update logind drop-in comments accordingly.
This commit is contained in:
@@ -22,6 +22,8 @@ hl.bind(mainMod .. " + V", hl.dsp.window.float({ action = "toggle" }))
|
||||
hl.bind(mainMod .. " + space", hl.dsp.exec_cmd(menu))
|
||||
hl.bind(SUPER_SHIFT .. " + L", hl.dsp.exec_cmd("hyprlock"))
|
||||
hl.bind(SUPER_SHIFT .. " + R", hl.dsp.exec_cmd("hyprctl reload"))
|
||||
-- Monique: GUI monitor arrangement/display settings
|
||||
hl.bind(SUPER_SHIFT .. " + M", hl.dsp.exec_cmd("monique"))
|
||||
hl.bind(SUPER_SHIFT .. " + D", hl.dsp.exec_cmd("hyprctl keyword monitor eDP-1, disable"))
|
||||
hl.bind(SUPER_SHIFT .. " + F", hl.dsp.exec_cmd("hyprctl keyword monitor eDP-1, enable"))
|
||||
|
||||
@@ -65,5 +67,6 @@ 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 is handled by hypr-lid.service (clamshell when docked, delayed
|
||||
-- lock/suspend otherwise) instead of these binds; see .local/bin/hypr-lid.sh.
|
||||
-- Laptop lid is handled by hypr-lid-power.service (delayed lock/suspend when
|
||||
-- closed undocked; display/clamshell handling is done by moniqued) instead of
|
||||
-- these binds; see .local/bin/hypr-lid-power.sh.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- External displays (docked layout). The built-in panel is managed at runtime
|
||||
-- by hypr-lid: it is enabled here, then disabled while the lid is closed with
|
||||
-- external displays attached (clamshell). See hyprland/.local/bin/hypr-lid.sh.
|
||||
-- Managed by monique (run `monique` or SUPER+SHIFT+M to arrange). The built-in
|
||||
-- panel is managed at runtime by moniqued's clamshell mode: enabled here, then
|
||||
-- disabled while the lid is closed with external displays attached.
|
||||
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/ for more
|
||||
hl.monitor({ output = "desc:BOE 0x0BC9", mode = "preferred", position = "0x0", scale = 1.0 })
|
||||
hl.monitor({ output = "desc:Viewteck Co. Ltd. GNV34DB", mode = "3440x1440@50.0", position = "3795x1785", scale = 1.0 })
|
||||
|
||||
Reference in New Issue
Block a user