From 0edd6c95706c326b7132b243bc6a28c5af4871b2 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Wed, 15 Aug 2012 11:15:45 -0500 Subject: [PATCH] [tmux] Adding Rdio info to bottom bar --- bin/rdio.applescript | 10 ++++++++++ tmux/tmux.conf.symlink | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 bin/rdio.applescript diff --git a/bin/rdio.applescript b/bin/rdio.applescript new file mode 100644 index 0000000..1c6a577 --- /dev/null +++ b/bin/rdio.applescript @@ -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 diff --git a/tmux/tmux.conf.symlink b/tmux/tmux.conf.symlink index 380311e..5574a42 100644 --- a/tmux/tmux.conf.symlink +++ b/tmux/tmux.conf.symlink @@ -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