From: Julien Moutinho Date: Fri, 28 Nov 2025 18:55:53 +0000 (+0100) Subject: +use/transparency: fix tmux pane title with firejail X-Git-Url: https://git.sourcephile.fr/julm/julm-nix.git/commitdiff_plain +use/transparency: fix tmux pane title with firejail --- diff --git a/home-manager/profiles/tmux.conf b/home-manager/profiles/tmux.conf index f52a554..c014a11 100644 --- a/home-manager/profiles/tmux.conf +++ b/home-manager/profiles/tmux.conf @@ -161,9 +161,8 @@ set -g pane-border-style 'fg=colour245' set -g pane-active-border-style 'bg=colour39' set -g pane-active-border-style 'fg=green,bg=black' set -g pane-border-style 'fg=white,bg=black' -#set -g pane-border-status bottom -#set -g pane-border-format " #P: #{pane_current_command} " -#set -g pane-border-format " #P: #{pane_current_path} " +set -g pane-border-status top +set -g pane-border-format " #P: #{?#{==:#{pane_current_command},firejail},#{pane_title},#{pane_current_command}} " # window setw -g base-index 1 diff --git a/nixpkgs/overlays/firejail.nix b/nixpkgs/overlays/firejail.nix index 474c446..f015b63 100644 --- a/nixpkgs/overlays/firejail.nix +++ b/nixpkgs/overlays/firejail.nix @@ -49,6 +49,9 @@ pkgs: _previousPkgs: { # # Note that setting --argv0 would have no lasting effect because # nixos/modules/security/wrappers/wrapper.c forces argv[0] = SOURCE_PROG + # Tip(tmux): #{pane_current_command} is thus always "firejail" in tmux, + # but this can be worked around with something like: + # set -g pane-border-format " #P: #{?#{==:#{pane_current_command},firejail},#{pane_title},#{pane_current_command}} " '' for path in ${pkgs.lib.escapeShellArgs paths}; do rm "$out/$path"