Set colour of window entry in status line based on window options.

This commit is contained in:
Nicholas Marriott
2009-01-30 00:24:49 +00:00
parent 2bb499c8af
commit 882316ad6a
7 changed files with 77 additions and 51 deletions

24
CHANGES
View File

@ -1,5 +1,27 @@
29 January 2009
* Window options to set status line fg, bg and attributes for a single
window. Options are: window-status-fg, window-status-bg,
window-status-attr. Set to "default" to use the session status colours.
This allows quite neat things like:
$ cat xssh
#!/bin/sh
if [ ! -z "$TMUX" ]; then
case "$1" in
natalya)
tmux setw window-status-fg red >/dev/null
;;
natasha)
tmux setw window-status-fg yellow >/dev/null
;;
esac
fi
ssh "$@"
[ ! -z "$TMUX" ] && tmux setw -u window-status-fg >/dev/null
* Support #(command) in status-left, and status-right, which is displayed as
the first line of command's output (e.g. set -g status-right
"#(whoami)@#(hostname -s)"). Commands with )s aren't supported.
@ -1043,7 +1065,7 @@
(including mutt, emacs). No status bar yet and no key remapping or other
customisation.
$Id: CHANGES,v 1.241 2009-01-29 23:35:14 tcunha Exp $
$Id: CHANGES,v 1.242 2009-01-30 00:24:49 nicm Exp $
LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr
LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB ms