From 22f89afae6afc86cedc7642f8c7dcc25785a03d6 Mon Sep 17 00:00:00 2001 From: hermes Date: Tue, 24 Nov 2026 20:01:49 +0000 Subject: [PATCH] hyprland.lua: HOME-based guard path (works for any user); per-machine monitors.lua hook (HyDE retired monitors.conf, HyDE#1977) --- config/hypr/hyprland.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua index 71d8b39..3322466 100644 --- a/config/hypr/hyprland.lua +++ b/config/hypr/hyprland.lua @@ -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