aboutsummaryrefslogtreecommitdiffstats
path: root/oni
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-09-27 23:44:21 -0700
committerGravatar Tom Willemse2023-09-27 23:44:21 -0700
commit51a84e941ecd5d7d298be4f35bdba1d7bdb08487 (patch)
tree17639bcec7b9f7638a0355d41480ad2335a9ab03 /oni
parent9ad2400a9a85c043a59d80dcd9486172242fc003 (diff)
downloadnew-dotfiles-51a84e941ecd5d7d298be4f35bdba1d7bdb08487.tar.gz
new-dotfiles-51a84e941ecd5d7d298be4f35bdba1d7bdb08487.zip
Add keybindings for managing dunst in stumpwm
Diffstat (limited to 'oni')
-rw-r--r--oni/home/services/stumpwm/config11
1 files changed, 11 insertions, 0 deletions
diff --git a/oni/home/services/stumpwm/config b/oni/home/services/stumpwm/config
index 625f7a8..474c55d 100644
--- a/oni/home/services/stumpwm/config
+++ b/oni/home/services/stumpwm/config
@@ -85,9 +85,20 @@ after it has been unlocked."
(define-key m (kbd "f") "exec flameshot full")
m))
+(defvar *notification-bindings*
+ (let ((m (make-sparse-keymap)))
+ (define-key m (kbd "RET") "exec dunstctl action")
+ (define-key m (kbd "c") "exec dunstctl close")
+ (define-key m (kbd "S-c") "exec dunstctl close-all")
+ (define-key m (kbd "SPC") "exec dunstctl context")
+ (define-key m (kbd ",") "exec dunstctl history-pop")
+ (define-key m (kbd "p") "exec dunstctl set-paused toggle")
+ m))
+
(defvar *user-bindings*
(let ((m (make-sparse-keymap)))
(define-key m (kbd "s") '*screenshot-bindings*)
+ (define-key m (kbd "n") '*notification-bindings*)
m))
(define-key *top-map* (kbd "s-c") '*user-bindings*)