From 33e1a059f82edc99189a321ae92e35ef3d139e4f Mon Sep 17 00:00:00 2001 From: Adam French Date: Thu, 26 Nov 2026 12:27:44 +0000 Subject: [PATCH] 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 --- hypr/base.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hypr/base.lua b/hypr/base.lua index 0489699..3d9279c 100644 --- a/hypr/base.lua +++ b/hypr/base.lua @@ -14,8 +14,10 @@ pcall(require, "monitors") ---- MY PROGRAMS ---- --------------------- -local terminal = "kitty" -local fileManager = "kitty -e ranger" +-- kitty restores the last window's maximized state, which Hyprland obeys, so new terminals +-- 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" ---------------- @@ -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 .. " + F3", hl.dsp.exec_cmd(fileManager)) 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 local layoutIsMaster = false