Blob


1 #!/bin/sh
3 amused="${AMUSED:-amused}"
5 notify() {
6 path="$($amused status -f path)"
7 base="${path##*/}"
8 name="${base%.*}"
10 termux-notification -i amused --ongoing -t "$name" -c "$path" \
11 --type media \
12 --media-next "$amused next" \
13 --media-pause "$amused pause" \
14 --media-play "$amused play" \
15 --media-previous "$amused prev"
16 }
18 notify
19 $amused monitor jump,next,pause,play,prev,stop | while read line; do
20 notify
21 done