From 3ebe676f504ad82ad927bbbbb7e90172cb4675c1 Mon Sep 17 00:00:00 2001 From: Logan Date: Fri, 17 Apr 2015 16:14:39 -0700 Subject: [PATCH] Add mpd script and put its output in 'tmux.conf' --- scripts/battery.sh | 8 ++------ scripts/mpd.sh | 4 ++++ tmux.conf | 21 ++++++++++++++++----- 3 files changed, 22 insertions(+), 11 deletions(-) create mode 100755 scripts/mpd.sh diff --git a/scripts/battery.sh b/scripts/battery.sh index 5ce9945..0514e0b 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -1,5 +1,5 @@ #!/bin/sh -#Created by richo on GitHub +#Made by richo on GitHub HEART_FULL=♥ HEART_EMPTY=♡ @@ -109,8 +109,4 @@ esac BATTERY_STATUS=`battery_status $1` [ -z "$BATTERY_STATUS" ] && exit -#if [ -n "$CUTE_BATTERY_INDICATOR" ]; then - echo `cutinate $BATTERY_STATUS` -#else - echo ${BATTERY_STATUS}% -#fi +echo `cutinate $BATTERY_STATUS` diff --git a/scripts/mpd.sh b/scripts/mpd.sh new file mode 100755 index 0000000..ba9927e --- /dev/null +++ b/scripts/mpd.sh @@ -0,0 +1,4 @@ +#!/bin/sh +MPD_TRACK=$(mpc -f "%title%" current) +#MPD_ARTIST=$(mpc -f "%artist%" current) +echo '#[bg=colour237,fg=colour249,bold] ♫' $MPD_TRACK diff --git a/tmux.conf b/tmux.conf index 4622aa5..5b3908f 100644 --- a/tmux.conf +++ b/tmux.conf @@ -2,11 +2,18 @@ # on Thu, 16 Apr 2015 # Credit for the appearance of this config goes to the creator of tmuxline, Evgeni Kolev. +######Behavior###### set -g prefix ^a - +#Start counting windows from 1 +set -g base-index 1 +set -g pane-base-index 1 +#Enable notifications from windows setw -g monitor-activity on set-option -g visual-activity on +#Set how often the status bar updates its info +set -g status-interval 10 +######Colors###### set -g status-bg "colour238" set -g message-command-fg "colour249" set -g status-justify "left" @@ -29,8 +36,12 @@ setw -g window-status-activity-attr "none" setw -g window-status-activity-fg "colour150" setw -g window-status-separator "" setw -g window-status-bg "colour238" -set -g status-left "#[fg=colour236,bg=colour150] #S #[fg=colour150,bg=colour238,nobold,nounderscore,noitalics]" -set -g status-right "#[fg=colour237,bg=colour238,nobold,nounderscore,noitalics] #[fg=colour249,bg=colour237] #(~/.scripts/battery.sh) %m/%e/%y %I:%m %p #[fg=colour150,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour236,bg=colour150] #h " -setw -g window-status-format "#[fg=colour150,bg=colour238] #I #[fg=colour150,bg=colour238] #W " -setw -g window-status-current-format "#[fg=colour238,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour249,bg=colour237] #I #[fg=colour249,bg=colour237] #W #[fg=colour237,bg=colour238,nobold,nounderscore,noitalics]" + +######Status Bar###### +set -g status-left "#[fg=colour236,bg=colour150] #S #[fg=colour150,bg=colour238,nobold,nounderscore,noitalics]>" +set -g status-right "#[fg=colour237,bg=colour238,nobold,nounderscore,noitalics] #[fg=colour249,bg=colour237] #(~/.scripts/battery.sh) #(~/.scripts/mpd.sh) %m/%e/%y %I:%m %p #[fg=colour150,bg=colour237,nobold,nounderscore,noitalics] #[fg=colour236,bg=colour150] #h " set -g status-utf8 on + +######Window Status###### +setw -g window-status-format "#[fg=colour150,bg=colour238] #I #[fg=colour150,bg=colour238] #W " +setw -g window-status-current-format "#[fg=colour238,bg=colour237,nobold,nounderscore,noitalics]#[fg=colour249,bg=colour237] #I #[fg=colour249,bg=colour237] #W #[fg=colour237,bg=colour238,nobold,nounderscore,noitalics]"