Add mpd script and put its output in 'tmux.conf'

This commit is contained in:
Logan 2015-04-17 16:14:39 -07:00
parent fe8b86adff
commit 3ebe676f50
3 changed files with 22 additions and 11 deletions

View file

@ -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`

4
scripts/mpd.sh Executable file
View file

@ -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

View file

@ -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]"