]> Git — Sourcephile - julm/julm-nix.git/commitdiff
+use/transparency: fix tmux pane title with firejail main
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Fri, 28 Nov 2025 18:55:53 +0000 (19:55 +0100)
committerJulien Moutinho <julm+julm-nix@sourcephile.fr>
Fri, 28 Nov 2025 19:16:27 +0000 (20:16 +0100)
home-manager/profiles/tmux.conf
nixpkgs/overlays/firejail.nix

index f52a5547623adbbf10b224c961ba0a7c91eeb806..c014a11c165f0873f7d37cac59f08149933af2ac 100644 (file)
@@ -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-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
 
 # window
 setw -g base-index 1
index 474c446dab902e8976e9ef5f8dce80f92c630fd5..f015b6326457261c0e43b146416e76e974790fdd 100644 (file)
@@ -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
           #
           # 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"
           ''
             for path in ${pkgs.lib.escapeShellArgs paths}; do
               rm "$out/$path"