Blob
1 #!/bin/sh3 # XXX4 amused="$HOME/bin/amused -s $HOME/amused.sock"6 notify() {7 path="$($amused status -f path)"8 base="${path##*/}"9 name="${base%.*}"11 termux-notification -i amused --ongoing -t "$name" -c "$path" \12 --type media \13 --media-next "$amused next" \14 --media-pause "$amused pause" \15 --media-play "$amused play" \16 --media-previous "$amused prev"17 }19 notify20 $amused monitor jump,next,pause,play,prev,stop | while read line; do21 notify22 done