From d62846811b290611052a4c06aa97b8565eff4011 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 30 Nov 2025 22:03:13 +0900 Subject: [PATCH] home/tmux: add workaround for double-prefix bug --- home/programs/tmux/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home/programs/tmux/default.nix b/home/programs/tmux/default.nix index 900797f..b68a1a6 100644 --- a/home/programs/tmux/default.nix +++ b/home/programs/tmux/default.nix @@ -1,4 +1,7 @@ -{ pkgs, lib, ... }: +{ config, pkgs, lib, ... }: +let + cfg = config.programs.tmux; +in { programs.tmux = { baseIndex = 1; @@ -41,6 +44,10 @@ text = fileContentsWithoutShebang ./scripts/mpd-status.sh; }); in '' + # https://github.com/nix-community/home-manager/issues/7771 + bind -N "Send the prefix key through to the application" \ + ${cfg.prefix} send-prefix + # Don't rename windows automatically after rename with ',' set-option -g allow-rename off