+script to update dwmbar based on music changes
This commit is contained in:
@@ -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}
|
||||
|
||||
12
Scripts/.local/scripts/status/music_update_bar
Executable file
12
Scripts/.local/scripts/status/music_update_bar
Executable 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user