diff options
author | Tom Willemse | 2013-11-26 01:35:41 +0100 |
---|---|---|
committer | Tom Willemse | 2013-11-26 01:35:41 +0100 |
commit | 3a37c4e6dff5daae0cbf364bcf9454f19dd95f95 (patch) | |
tree | da461d40a8698ae28e3bb01e955771342b1f10ce | |
parent | 174886da3b6b2a7aff0de36c1c87c1d5b2926fa4 (diff) | |
download | stumpwm-3a37c4e6dff5daae0cbf364bcf9454f19dd95f95.tar.gz stumpwm-3a37c4e6dff5daae0cbf364bcf9454f19dd95f95.zip |
Stop and start dunst when (un)locking screen
-rw-r--r-- | .stumpwmrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -63,6 +63,14 @@ (format nil "/home/slash/documents/mail/~A/~A/cur/*.*" mailbox inbox)))))) +(defun dunst-pause () + "Pause dunst" + (sb-ext:run-program "/usr/bin/killall" '("-SIGUSR1" "dunst"))) + +(defun dunst-start () + "Start dunst" + (sb-ext:run-program "/usr/bin/killall" '("-SIGUSR2" "dunst"))) + (defun mpd-playing-p () "Check if MPD is currently in the playing state." (and (cl-ppcre:scan @@ -174,8 +182,10 @@ Run `*lock-screen-hook*' before locking it and run (add-hook *lock-screen-hook* 'set-jabber-away) (add-hook *lock-screen-hook* 'mpd-pause) +(add-hook *lock-screen-hook* 'dunst-pause) (add-hook *screen-unlocked-hook* 'set-jabber-online) (add-hook *screen-unlocked-hook* 'mpd-play) +(add-hook *screen-unlocked-hook* 'dunst-start) (set-prefix-key (kbd "C-z")) |