dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit cc481130b7905450b85ab7e2c96ec43bea2c11eb
parent b2b5c1aa1960caeeb97440f2260ea1c109825c14
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date:   Fri, 20 May 2016 13:16:22 -0700

show new mails in status line

Diffstat:
M.tmux.conf | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -114,8 +114,8 @@ set -g status-left "#[fg=red]#(hostname|sed \"s/\\\\..*$//\") #[fg=green]s:#S #[ #set -g status-right "#[fg=cyan]#(~/bin/battery) #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%d %b %R" # #set -g status-right "#[fg=cyan]#(~/bin/battery) #[fg=yellow]#(uptime|awk '{print \$NF;}') #[fg=green]%d %b %R" -if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=cyan]#(~/bin/battery-osx) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=green]%d %b %R\"" -if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=cyan]#(acpi|sed 's/Battery//; s/0://; s/Discharging//; s/Full, //; s/remaining//; s/ , //; s/Charging, /+/; s/ until charged/ /; s/, / /; s/Unknown //; s/ $//;') #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%d %b %R\"" +if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=cyan]#(~/bin/battery-osx) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=green]%d %b %R\"" +if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=cyan]#(acpi|sed 's/Battery//; s/0://; s/Discharging//; s/Full, //; s/remaining//; s/ , //; s/Charging, /+/; s/ until charged/ /; s/, / /; s/Unknown //; s/ $//;') #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%d %b %R\"" set -g status-justify centre #set -g status-bg default #set -g status-fg cyan