From ed11adbef53ccb757b4cee4f11767d84bee70342 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 11 Jul 2025 13:58:30 +0000 Subject: make helix rename itself --- modules/terminal/system/programs/helix.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/terminal/system') diff --git a/modules/terminal/system/programs/helix.nix b/modules/terminal/system/programs/helix.nix index 358aed3..3e9ac23 100644 --- a/modules/terminal/system/programs/helix.nix +++ b/modules/terminal/system/programs/helix.nix @@ -133,6 +133,17 @@ }; in lib.mkIf cfg.enable { + nixpkgs.overlays = [ + (self: super: { + # rename window to filename when editing file + helix = self.writeShellScriptBin "hx" '' + file="$1" + printf '\033]2;%s\033\\' "hx $(basename "$file")" + exec ${super.helix}/bin/hx "$@" + ''; + }) + ]; + hjem.users."${config.collinux.user.name}" = { files = let t = value: { -- cgit v1.3.1