aboutsummaryrefslogtreecommitdiff
path: root/.config/xblank/idle_150
diff options
context:
space:
mode:
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