diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2015-11-25 20:17:15 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2015-11-27 02:44:53 +0100 |
| commit | e02542fca8dfe25bc22346b55b35d2a6cbc0c35c (patch) | |
| tree | 82b66ccf80fa72371df9fc36ed4fa94bb2fddf63 /i3/conkyrc.json | |
| parent | 2a9bfb8a3c90031cea661b1de69caca885b21530 (diff) | |
| download | dotfiles-e02542fca8dfe25bc22346b55b35d2a6cbc0c35c.tar.gz dotfiles-e02542fca8dfe25bc22346b55b35d2a6cbc0c35c.zip | |
rework media buttons control to function with spotify
also remove bash wrapper for fish scripts and just use bash scripts
Diffstat (limited to 'i3/conkyrc.json')
| -rw-r--r-- | i3/conkyrc.json | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/i3/conkyrc.json b/i3/conkyrc.json index b192bb8..196f2c3 100644 --- a/i3/conkyrc.json +++ b/i3/conkyrc.json @@ -41,12 +41,15 @@ TEXT #{"name": "disk", "color": "\#ffffff", "full_text": " ${fs_used_perc /}%"}, - ############### music / mpd ################### + ############### music/ spotify/ mpd ################### ${if_match "${nodename_short}"!="fishbowl"} - ${if_mpd_playing} - # {"name": "test status", "full_text":"${mpd_status}", "separator":false}, + ${if_match "${exec lsof | grep /dev/snd | grep spotify}"!=""} # spotify using sound devices -> is playing + {"name": "indicator", "separator": false ,"color": "\#ffffff", "full_text": "Spotify:"}, + {"name": "artist_title", "color": "\#ffffff", "full_text": "${exec bash ~/.dotfiles/scripts/spotify-artist-title.sh}"}, + ${else} ${if_mpd_playing} + {"name": "indicator", "separator": false, "color": "\#ffffff", "full_text": "MPD:"}, {"name": "statusSymbol", "color": "\#ffffff", "separator": false, "full_text": ${if_match "${mpd_status}"=="Playing"}"▶"${else}"▐▐"${endif}}, |
