commit 3329dfa1b6bfecc00353d1e9db50bcab9fb41521
parent 0111234887097fa0b6505ae017ebf3550aea9a64
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Wed, 31 Aug 2016 20:22:13 -0700
add mpd to tmux status and fix cpan cmd
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -113,11 +113,12 @@ set -g status-fg cyan
#set -g status-right "#[fg=green]#H"
set -g status-left-length 40
set -g status-left "#[fg=red]#(hostname|sed \"s/\\\\..*$//\") #[fg=green]s:#S #[fg=yellow]w:#I #[fg=cyan]p:#P"
+set -g status-right-length 60
#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-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=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(uptime|sed 's/.* //') #[fg=green]%Y-%m-%d %R\""
+if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//' | cut -c 1-22) #[fg=cyan]#(~/bin/battery-osx) #[fg=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(uptime|sed 's/.* //') #[fg=green]%Y-%m-%d %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=red]M: #(find ~/Mail/*/INBOX/new -type f | wc -l | sed 's/ *//') #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=green]%Y-%m-%d %R\""
set -g status-justify centre
#set -g status-bg default
diff --git a/osx-install.sh b/osx-install.sh
@@ -149,6 +149,6 @@ brew install cpanminus
cpanm Digest::SHA\
Mail::Box\
Mail::Header\
- mail::Box::Maildir\
+ Mail::Box::Maildir\
String::ShellQuote\
Term::ReadLine::Gnu