From 67914d44e2cdcf75db4c6ea4139ad9b3f1abe501 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 29 Mar 2024 21:28:38 -0400 Subject: add mpd notification daemon --- mpdnotify/run | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 mpdnotify/run (limited to 'mpdnotify') diff --git a/mpdnotify/run b/mpdnotify/run new file mode 100755 index 0000000..c8eca40 --- /dev/null +++ b/mpdnotify/run @@ -0,0 +1,10 @@ +#!/bin/sh +# make sure mpd is running +sv check "$HOME/.local/share/service/mpd" > /dev/null || exit 1 + +# set DISPLAY environment variable so notify send doesn't complain +export DISPLAY=:0 + +while + notify-send -r 18 "Now playing" "$(mpc current --wait)" +do :; done -- cgit v1.2.1