[tmux] Adding Rdio info to bottom bar

This commit is contained in:
Nick Nisi
2012-08-15 11:15:45 -05:00
parent 32d6987054
commit 0edd6c9570
2 changed files with 13 additions and 1 deletions

10
bin/rdio.applescript Normal file
View File

@@ -0,0 +1,10 @@
if application "Rdio" is running then
tell application "Rdio"
set theName to name of the current track
set theArtist to artist of the current track
try
return "♫ " & theName & " - " & theArtist
on error err
end try
end tell
end if

View File

@@ -135,6 +135,8 @@ set-window-option -g clock-mode-colour colour26
spotify_track='#[fg=colour2]#(osascript ~/.dotfiles/bin/spotify.applescript)'
# current iTunes track
itunes_track='#[fg=colour27]#(osascript ~/.dotfiles/bin/itunes.applescript)'
# current Rdio track
rdio_track='#[fg=colour127]#(osascript ~/.dotfiles/bin/rdio.applescript)'
tm_date='#[fg=colour245]⮃ %R ⮃ %d %b'
tm_host='#[fg=colour45,bg=colour234,bold]#h'
@@ -147,5 +149,5 @@ set -g window-status-format "#[fg=colour239,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour26]⮀#[fg=colour16,bg=colour26,noreverse,bold] #I ⮁ #W #[fg=colour26,bg=colour234,nobold]⮀"
set -g status-left '#[fg=colour26,bg=colour234,bold] #S'
set -g status-right $itunes_track' '$spotify_track' '$tm_date' '$tm_host
set -g status-right $itunes_track' '$spotify_track' '$rdio_track' '$tm_date' '$tm_host