diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-03-18 09:38:51 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-08-14 12:01:17 +0200 |
commit | 7fe8a4fe5ff98e6001234f8109020217002502d1 (patch) | |
tree | 234c0ba6288a10e5bcd6e249073d1ab1edc0c68a | |
parent | 4fbab1b6c91581f8b82e7a767d30fb5c5857eaf1 (diff) |
Interrupt dunst when idle
-rwxr-xr-x | .config/xblank/active | 5 | ||||
-rwxr-xr-x | .config/xblank/idle_150 | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.config/xblank/active b/.config/xblank/active index f66f41a..a5ca082 100755 --- a/.config/xblank/active +++ b/.config/xblank/active @@ -4,8 +4,11 @@ if [ -f "$XBLANK_STATESD/mpd" ] then rm -f -- "$XBLANK_STATESD/mpd" - mpc play fi +# Resume dunst +pkill -USR2 -x dunst + +# Force monitors on xset dpms force on diff --git a/.config/xblank/idle_150 b/.config/xblank/idle_150 index 0994761..c125fed 100755 --- a/.config/xblank/idle_150 +++ b/.config/xblank/idle_150 @@ -7,4 +7,8 @@ then touch "$XBLANK_STATESD/mpd" fi +# Pause dunst +pkill -USR1 -x dunst + +# Force monitors off xset dpms force off |