Blob


1 #!/bin/sh
3 # XXX
4 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 notify
20 $amused monitor jump,next,pause,play,prev,stop | while read line; do
21 notify
22 done