aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-11 13:58:30 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-07-11 13:58:30 +0000
commited11adbef53ccb757b4cee4f11767d84bee70342 (patch)
treeae7b9a5e4d6c1c50636a969f46ec19580d3d79e2 /modules
parent4a3bc413d6f403e21359cbef292f39c6eb5177d1 (diff)
make helix rename itself
Diffstat (limited to 'modules')
-rw-r--r--modules/terminal/system/programs/helix.nix11
1 files changed, 11 insertions, 0 deletions
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: {