Update picom rules for dunst and add album art to mpdnotif.sh
This commit is contained in:
parent
19b4536b4f
commit
ed65b0aa43
2 changed files with 7 additions and 185 deletions
|
@ -3,7 +3,10 @@
|
|||
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)"
|
||||
|
||||
ffmpeg -i ~/media/music/"$(mpc --format "%file%" current)" -an -c:v copy ~/media/music/.now_playing.jpg
|
||||
dunstify -a Music --replace=27072 -t 2000 -i "$HOME/media/music/.now_playing.jpg" "Now Playing:" "Artist: $(mpc --format '%artist%' current)\nSong: $(mpc --format '%title%' current)"
|
||||
rm ~/media/music/.now_playing.jpg
|
||||
fi
|
||||
mpc current --wait > /dev/null
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue