1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh # Pause mpd if its playing if mpc | head -n 2 | tail -n 1 | grep -Fq '[playing]' then mpc pause touch "$XBLANK_STATESD/mpd" fi # Pause dunst pkill -USR1 -x dunst # Force monitors off xset dpms force off