Initial commit of utility scripts
This commit is contained in:
parent
ac77586a15
commit
1faeefffd7
34 changed files with 1328 additions and 1 deletions
10
bin/mpdnotif.sh
Executable file
10
bin/mpdnotif.sh
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue