aboutsummaryrefslogtreecommitdiff
path: root/.config/xblank/idle_150
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-03-18 09:37:23 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 12:01:17 +0200
commit4fbab1b6c91581f8b82e7a767d30fb5c5857eaf1 (patch)
tree932147d7f64f05cfa0e51139494ecabfcd944f8c /.config/xblank/idle_150
parentf002870d12ccc58e9b2177250df684cb5aa49fd9 (diff)
Alter mpc interaction in xblank
Diffstat (limited to '.config/xblank/idle_150')
-rwxr-xr-x.config/xblank/idle_1509
1 files changed, 8 insertions, 1 deletions
diff --git a/.config/xblank/idle_150 b/.config/xblank/idle_150
index 0e250bb..0994761 100755
--- a/.config/xblank/idle_150
+++ b/.config/xblank/idle_150
@@ -1,3 +1,10 @@
#!/bin/sh
-physlock
+# Pause mpd if its playing
+if mpc | head -n 2 | tail -n 1 | grep -Fq '[playing]'
+then
+ mpc pause
+ touch "$XBLANK_STATESD/mpd"
+fi
+
+xset dpms force off