aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/services/stumpwm/playerctl.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'oni/home/services/stumpwm/playerctl.lisp')
-rw-r--r--oni/home/services/stumpwm/playerctl.lisp6
1 files changed, 6 insertions, 0 deletions
diff --git a/oni/home/services/stumpwm/playerctl.lisp b/oni/home/services/stumpwm/playerctl.lisp
new file mode 100644
index 0000000..0e56454
--- /dev/null
+++ b/oni/home/services/stumpwm/playerctl.lisp
@@ -0,0 +1,6 @@
+(defvar *playerctl-bindings*
+ (let ((m (make-sparse-keymap)))
+ (define-key m (kbd "SPC") (format nil "exec ~a play-pause" *playerctl-program*))
+ m))
+
+(define-key *user-bindings* (kbd "p") '*playerctl-bindings*)