diff options
author | Karel Kočí <cynerd@email.cz> | 2017-02-19 21:36:15 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-02-19 21:36:15 +0100 |
commit | b08ebfec1dcf2578332d55ca57d1416453c9b09f (patch) | |
tree | 067ab56c417cbea23a129a3a9609a2ae7d9ba871 /config/i3blocks | |
parent | dc6ea2b3e646397571f337aea858157cbf0a382d (diff) | |
download | myconfigs-b08ebfec1dcf2578332d55ca57d1416453c9b09f.tar.gz myconfigs-b08ebfec1dcf2578332d55ca57d1416453c9b09f.tar.bz2 myconfigs-b08ebfec1dcf2578332d55ca57d1416453c9b09f.zip |
Add i3blocks mpd note and ncmpcpp on right click
Diffstat (limited to 'config/i3blocks')
-rwxr-xr-x | config/i3blocks/scripts/mpd | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd index 6594a57..0b915a6 100755 --- a/config/i3blocks/scripts/mpd +++ b/config/i3blocks/scripts/mpd @@ -7,6 +7,9 @@ case "$BLOCK_BUTTON" in 2) mpc stop >/dev/null ;; + 3) + nohup urxvt -title "Music player daemon client" -e ncmpcpp & + ;; 4) mpc next >/dev/null ;; @@ -16,11 +19,13 @@ case "$BLOCK_BUTTON" in esac if [ -n "`mpc status | grep -E "(playing|paused)"`" ]; then - echo `mpc -f "%artist%, %album%, %title%" status | head -1` + echo `mpc -f "♫ %artist%, %album%, %title%" status | head -1` echo if [ -n `mpc status | grep playing` ]; then echo "#ffff00" elif [ -n `mpc status | grep paused` ]; then echo "#00ff00" fi +else + echo "♫" fi |