From 59b090e83670948552efeb7bd28efa7e3f840d90 Mon Sep 17 00:00:00 2001 From: Austin Beam Date: Thu, 1 May 2014 00:21:12 -0500 Subject: [PATCH] tmux: Colorize the last active window FG Use a feature of tmux v1.8+ to change the FG color of the last active window to blue. This uses the foo-{attr,bg,fg} format, which is deprecated (although still available) starting with tmux v1.9 in favor of the corresponding foo-style variable. However, tmux v1.9 is not yet ubiquitous enough to move to the foo-style variables. For example, the latest Ubuntu LTS (14.04) only has tmux v1.8 available in its repositories, so the foo-{attr,bg,fg} variables prove to be more 'compatible' for now. For future reference, here is the modification that should be made once tmux v1.8 is deemed old enough to drop support for (or whenever the deprecated foo-{attr,bg,fg} variables go away in the latest version of tmux): -set -g window-status-last-fg colour31 +set -g window-status-last-style fg=colour31 It might be appropriate to add version checking around some of these types of options for maximum compatibility, but my initial attempt to explore version checking in the tmux config file got extremely messy in a hurry. --- powerline/bindings/tmux/powerline.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/powerline/bindings/tmux/powerline.conf b/powerline/bindings/tmux/powerline.conf index 22cc9b6c..92448d44 100644 --- a/powerline/bindings/tmux/powerline.conf +++ b/powerline/bindings/tmux/powerline.conf @@ -10,6 +10,7 @@ set -g status-right '#(eval $POWERLINE_COMMAND tmux right -R pane_id=`tmux displ set -g status-right-length 150 set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240] #[default]#W " set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I  #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]" +set -g window-status-last-fg colour31 set-window-option -g window-status-fg colour249 set-window-option -g window-status-activity-attr none set-window-option -g window-status-bell-attr none