aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/system/programs')
-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: {