diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-11 19:16:24 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2016-01-11 19:22:19 +0100 |
| commit | 667eb047290f24ddd3f90a3034fba917f40c5f12 (patch) | |
| tree | fa8f118953860ae924ffdb9885ea18cb06755915 /i3/conkyrc.json | |
| parent | 90dc7e3a3779ec2517c30b972f2c46efc19d2706 (diff) | |
| download | dotfiles-667eb047290f24ddd3f90a3034fba917f40c5f12.tar.gz dotfiles-667eb047290f24ddd3f90a3034fba917f40c5f12.zip | |
make i3bar music info work with alsa and pa
1) change conkyrc file to execute new media_status script
2) add media_status script which displayes information for the following programs:
+ spotify
+ mpd
If none of the programms is running "no music" will be printed.
3) delete unnecessary script
Diffstat (limited to 'i3/conkyrc.json')
| -rw-r--r-- | i3/conkyrc.json | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/i3/conkyrc.json b/i3/conkyrc.json index ff2c6e2..7b6a942 100644 --- a/i3/conkyrc.json +++ b/i3/conkyrc.json @@ -44,20 +44,7 @@ TEXT ############### music/ spotify/ mpd ################### ${if_match "${nodename_short}"!="fishbowl"} - ${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}}, - - {"name": "music", "color": "\#ffffff", "full_text":"${mpd_title} ${mpd_bar}"}, - ${else} - {"name": "nomusic", "color": "\#ffffff", "full_text": "no music"}, - ${endif} - ${endif} + {"name":"music", "color": "\#ffffff", "full_text": "${exec ~/.dotfiles/scripts/media_status.sh}"}, ${endif} |
