[tmux] Adding Rdio info to bottom bar
This commit is contained in:
10
bin/rdio.applescript
Normal file
10
bin/rdio.applescript
Normal 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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user