From 4fbab1b6c91581f8b82e7a767d30fb5c5857eaf1 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 18 Mar 2021 09:37:23 +0100 Subject: Alter mpc interaction in xblank --- .config/xblank/active | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.config/xblank/active') diff --git a/.config/xblank/active b/.config/xblank/active index 8600831..f66f41a 100755 --- a/.config/xblank/active +++ b/.config/xblank/active @@ -1,3 +1,11 @@ #!/bin/sh +# Resume mpd if it was paused through an xblank script +if [ -f "$XBLANK_STATESD/mpd" ] +then + rm -f -- "$XBLANK_STATESD/mpd" + + mpc play +fi + xset dpms force on -- cgit v1.1