#!/bin/sh replaces_id=0 mpc idleloop player | while read -r x; do #notify-send -u low -t 3000 -a mpc "`mpc current`" replaces_id=$(expr "$(gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify mpc $replaces_id 'audio-volume-high' "`mpc current`" '' '[]' '{"urgency": }' 3000)" : '(uint32 \([0-9]*\),)') done