Initial commit of utility scripts

This commit is contained in:
Alex Selimov 2024-12-12 20:16:38 -05:00
parent ac77586a15
commit 1faeefffd7
34 changed files with 1328 additions and 1 deletions

10
bin/mpdnotif.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# notify when mpd music changed
while "true"; do
status="`mpc status`"
if [[ ${status} == *"[playing]"* ]]; then
dunstify -a Music --replace=27072 -t 2000 -i "$HOME/media/pics/music.png" "Now Playing:" "Artist: $(mpc --format '%artist%' current)\nSong: $(mpc --format '%title%' current)"
fi
mpc current --wait > /dev/null
done