From 141754ca39a257ce6dfee0f0d8c82e233e5bffbf Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Sun, 26 Apr 2026 01:11:09 -0400 Subject: [PATCH] ghostty: fix??? --- home/progs/ghostty.nix | 7 +++++++ home/progs/niri.nix | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/home/progs/ghostty.nix b/home/progs/ghostty.nix index d2cfb75..6eba371 100644 --- a/home/progs/ghostty.nix +++ b/home/progs/ghostty.nix @@ -55,6 +55,13 @@ # cursor cursor-style = "underline"; + # always open new windows at $HOME instead of inheriting whatever cwd the + # currently-focused ghostty window has. with gtk-single-instance, the + # focused-window inherit rule otherwise sticks the daemon's first cwd to + # every subsequent niri Mod+T launch. + window-inherit-working-directory = false; + working-directory = "home"; + # keep one daemon alive so subsequent launches (e.g. niri Mod+T) are # instant instead of paying GTK + wgpu init each time. relies on the # dbus-activated systemd user service that the HM module wires up. diff --git a/home/progs/niri.nix b/home/progs/niri.nix index f9e7378..f34f2e2 100644 --- a/home/progs/niri.nix +++ b/home/progs/niri.nix @@ -115,12 +115,8 @@ in "Mod+O".action = toggle-overview; - # open a terminal — pass --working-directory=home so the gtk-single-instance - # daemon doesn't keep handing back whatever cwd the focused window has. - "Mod+T".action = spawn [ - config.home.sessionVariables.TERMINAL - "--working-directory=home" - ]; + # open a terminal + "Mod+T".action = spawn config.home.sessionVariables.TERMINAL; # lock the screen "Mod+X".action = spawn (lib.getExe pkgs.swaylock);