commit 8ac469b062af58c54a8f49b8c3beb1b4222b4d70
parent 4bc866d4741f34c4aac8b8e2aa53601a516e172f
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 14 Mar 2016 11:41:27 -0700
Merge branch 'master' of github.com:anders-dc/dotfiles
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -116,7 +116,7 @@ set -g status-left "#[fg=green]s:#S #[fg=yellow]w:#I #[fg=cyan]p:#P"
#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|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\""
set -g status-justify centre
#set -g status-bg default