+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}

View File

@@ -0,0 +1,12 @@
#!/bin/bash
while :
do
while [[ $item != "player" && $item != "playlist" ]]
do
sleep 0.01;
item=$(mpc idle | head -1);
done
kill -45 $(pidof dwmblocks);
item="";
done

View File

@@ -6,14 +6,18 @@ killall sxhkd;
sh .xprofile;
xset s 1800;
$(xss-lock --transfer-sleep-lock -- lock) &
feh --randomize --bg-scale $HOME/Pictures/Backgrounds &
$HOME/.local/scripts/eserver start &
$HOME/.local/scripts/status/music_update_bar &
dunst &
picom &
mpd &
sxhkd &
dwmblocks &
# $HOME/.config/bspwm/bspwmrc
while :; do
ssh-agent dwm