From 7e1a58c7a0179880e9b1c42f6d11f98ebee85941 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 29 Jun 2013 21:25:55 +0200 Subject: [PATCH] Add some media key bindings --- .stumpwmrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.stumpwmrc b/.stumpwmrc index 3814087..30df336 100644 --- a/.stumpwmrc +++ b/.stumpwmrc @@ -178,6 +178,13 @@ it and run *screen-unlocked-hook* after it has been unlocked." (set-prefix-key (kbd "C-z")) (define-key *top-map* (kbd "C-M-l") "lock-screen") +(define-key *top-map* (kbd "XF86AudioLowerVolume") "exec mpc volume -5") +(define-key *top-map* (kbd "XF86AudioMute") + "exec amixer sset Master toggle") +(define-key *top-map* (kbd "XF86AudioNext") "exec mpc next") +(define-key *top-map* (kbd "XF86AudioPlay") "exec mpc toggle") +(define-key *top-map* (kbd "XF86AudioPrev") "exec mpc prev") +(define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec mpc volume +5") (define-key *root-map* (kbd "c") "raise-urxvt") (define-key *root-map* (kbd "C") "run-urxvt")