]> git.sev.monster Git - dotfiles.git/blame - bin/mpc-notify
add mpc-notify
[dotfiles.git] / bin / mpc-notify
CommitLineData
d2e125bc 1#!/bin/sh
2replaces_id=0
3mpc idleloop player | while read -r x; do
4 #notify-send -u low -t 3000 -a mpc "`mpc current`"
5 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": <byte 0>}' 3000)" : '(uint32 \([0-9]*\),)')
6done
This page took 0.033712 seconds and 4 git commands to generate.