+script to update dwmbar based on music changes

This commit is contained in:
dx
2020-07-09 22:07:30 +01:00
parent 31516c31c1
commit 7e3e104bac
3 changed files with 16 additions and 2 deletions

View File

@@ -45,12 +45,10 @@ super + F12
# Music and volume
F{6,7,8}
mpc -q {prev,toggle,next}; \
kill -45 $(pidof dwmblocks); \
notify-send "MPD: Track $(mpc --format '%title%' | head -1)";
XF86Audio{Prev,Next}
mpc -q {prev,next}; \
kill -45 $(pidof dwmblocks); \
notify-send "MPD: Track $(mpc --format '%title%' | head -1)";
{_,hyper + }F{9,10}