hyprland.lua: HOME-based guard path (works for any user); per-machine monitors.lua hook (HyDE retired monitors.conf, HyDE#1977)
This commit is contained in:
1 parent
26c40af3ff
commit
22f89afae6
1 file changed
+13
-1
@@ -131,4 +131,16 @@ hl.window_rule({
|
||||
-- This runs a small script on every config load that switches hyprimate back
|
||||
-- off when a native animation is current. It must stay a separate process:
|
||||
-- calling hyprctl from inside Lua config evaluation deadlocks the compositor.
|
||||
hl.exec_cmd("/home/lucas/.config/hyde/scripts/hyprimate-guard.sh")
|
||||
hl.exec_cmd(os.getenv("HOME") .. "/.config/hyde/scripts/hyprimate-guard.sh")
|
||||
|
||||
-- // █▄░█ █▀▀ █ █▄░█ █▀▄ █▄▄ █ █▄░█ █▀▄
|
||||
-- // █░▀█ ██▄ █ █░▀█ █▄▀ █▄█ █ █░▀█ █▄▀
|
||||
-- HyDE's Lua migration retired monitors.conf (HyDE issue #1977), so monitor
|
||||
-- settings live in a per-machine file that is NOT tracked in this repo:
|
||||
-- ~/.config/hypr/monitors.lua. Desktop and laptop each keep their own.
|
||||
local monitors_file = os.getenv("HOME") .. "/.config/hypr/monitors.lua"
|
||||
local mon = io.open(monitors_file, "r")
|
||||
if mon then
|
||||
mon:close()
|
||||
dofile(monitors_file)
|
||||
end
|
||||
Reference in new issue
Block a user