reconfigure monitors after config.reloaded event
This commit is contained in:
@@ -180,19 +180,34 @@ in
|
|||||||
(bind "${mod} + mouse:272" dsp.window.drag { mouse = true; })
|
(bind "${mod} + mouse:272" dsp.window.drag { mouse = true; })
|
||||||
(bind "${mod} + mouse:273" dsp.window.resize { mouse = true; })
|
(bind "${mod} + mouse:273" dsp.window.resize { mouse = true; })
|
||||||
];
|
];
|
||||||
|
on = [
|
||||||
|
(mkArgs [
|
||||||
|
"hyprland.start"
|
||||||
|
(mkLuaInline ''
|
||||||
|
function()
|
||||||
|
hl.exec_cmd("waybar")
|
||||||
|
|
||||||
on = mkArgs [
|
hl.monitor(${toLua {} defaultMonitor})
|
||||||
"hyprland.start"
|
|
||||||
(mkLuaInline ''
|
|
||||||
function()
|
|
||||||
hl.exec_cmd("waybar")
|
|
||||||
|
|
||||||
hl.monitor(${lib.generators.toLua {} defaultMonitor})
|
${lib.concatMapStringsSep "\n"
|
||||||
|
(m: "hl.monitor(${toLua {} m})")
|
||||||
|
cfg.monitors}
|
||||||
|
end
|
||||||
|
'')
|
||||||
|
])
|
||||||
|
|
||||||
${lib.concatMapStringsSep "\n"
|
(mkArgs [
|
||||||
(m: "hl.monitor(${lib.generators.toLua {} m})")
|
"config.reloaded"
|
||||||
cfg.monitors}
|
(mkLuaInline ''
|
||||||
end'')
|
function()
|
||||||
|
hl.monitor(${toLua {} defaultMonitor})
|
||||||
|
|
||||||
|
${lib.concatMapStringsSep "\n"
|
||||||
|
(m: "hl.monitor(${toLua {} m})")
|
||||||
|
cfg.monitors}
|
||||||
|
end
|
||||||
|
'')
|
||||||
|
])
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user