Blob
- Date:
- Message:
- tweak amused-termux-notification - path to the socket is not necessary anymore since we respect $TMPDIR now which is set by termux - no need to hardcode the executable path, use an environment variable instead. (this is because "callback" commands from termux don't inherit the environment)
- Actions:
- History | Blame | Raw File
1 #!/bin/sh3 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 notify19 $amused monitor jump,next,pause,play,prev,stop | while read line; do20 notify21 done