Stop new kitty windows opening maximized over the layout

kitty restores the last window's saved maximized state, which Hyprland
honours, so a new terminal covered the workspace instead of tiling.
Launch it with remember_window_size=no and reuse the terminal variable
for the ranger and mocp binds.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-26 12:27:44 +00:00
co-authored by Claude Opus 5.5
parent c00705a24a
commit 33e1a059f8
+5 -3
View File
@@ -14,8 +14,10 @@ pcall(require, "monitors")
---- MY PROGRAMS ---- ---- MY PROGRAMS ----
--------------------- ---------------------
local terminal = "kitty" -- kitty restores the last window's maximized state, which Hyprland obeys, so new terminals
local fileManager = "kitty -e ranger" -- would cover the layout instead of tiling into it
local terminal = "kitty -o remember_window_size=no"
local fileManager = terminal .. " -e ranger"
local menu = "wofi --show drun" local menu = "wofi --show drun"
---------------- ----------------
@@ -151,7 +153,7 @@ hl.bind(mod .. " + CTRL + M", hl.dsp.exec_cmd("hyprpwcenter"))
hl.bind(mod .. " + F2", hl.dsp.exec_cmd("waterfox")) hl.bind(mod .. " + F2", hl.dsp.exec_cmd("waterfox"))
hl.bind(mod .. " + F3", hl.dsp.exec_cmd(fileManager)) hl.bind(mod .. " + F3", hl.dsp.exec_cmd(fileManager))
hl.bind(mod .. " + SHIFT + F3", hl.dsp.exec_cmd("pcmanfm")) hl.bind(mod .. " + SHIFT + F3", hl.dsp.exec_cmd("pcmanfm"))
hl.bind(mod .. " + F5", hl.dsp.exec_cmd("kitty -e mocp")) hl.bind(mod .. " + F5", hl.dsp.exec_cmd(terminal .. " -e mocp"))
-- Toggle window layout between master and dwindle -- Toggle window layout between master and dwindle
local layoutIsMaster = false local layoutIsMaster = false