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 6ede6056391c7cb247aa08fd9da4bd0293fb3fe7
parent 364c813f0e824ab843dd704c5358619f53680265
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon, 20 Nov 2017 15:07:26 -0500

do not cut mpc output in status-right

Diffstat:
Mlinks/.tmux.conf | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/links/.tmux.conf b/links/.tmux.conf @@ -39,7 +39,8 @@ set -g message-command-style fg=white # appearance of status message cmds set -g status-left "" # Right section of status bar -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) #(~/bin/mailstatus.sh) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%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) #(~/bin/mailstatus.sh) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%R\"" +if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//') #[fg=cyan]#(~/bin/battery-osx) #(~/bin/mailstatus.sh) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%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/ $//;') #(~/bin/mailstatus.sh) #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=#666666]%R\"" # Scaling of status-bar sections @@ -127,7 +128,7 @@ bind -Tlaunch h split-window -l 8 "htop" # Open new window and resize status accordingly (should be a hook instead) #bind-key Enter new-window bind-key Enter new-window \ - "tmux set status-right-length `echo $(tput cols)/3|bc|tr -d '\n'`; $SHELL" + "tmux set status-right-length `echo $(tput cols)/2|bc|tr -d '\n'`; $SHELL" # Use nested bindings (<C-a>m) for grouping music-control bindings bind m switchc -Tmpd