96d5ea1b6097

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 03 Nov 2023 11:11:00 -0400
parents 05ef9c8cbeeb
children 2e85350afef8
branches/tags (none)
files stumpwmrc

Changes

--- a/stumpwmrc	Fri Nov 03 10:12:49 2023 -0400
+++ b/stumpwmrc	Fri Nov 03 11:11:00 2023 -0400
@@ -309,6 +309,17 @@
   (run-shell-command "delete-broken-screenshot"))
 
 
+;;;; Sound --------------------------------------------------------------------
+(defcommand mute () ()
+  (run-shell-command "mute"))
+
+(defcommand volume-up () ()
+  (run-shell-command "amixer -q sset Master 5%+"))
+
+(defcommand volume-down () ()
+  (run-shell-command "amixer -q sset Master 5%-"))
+
+
 ;;;; Brightness ---------------------------------------------------------------
 (defparameter *brightness-values* #(0 1 5 10 20 30 40 55 70 85 100))
 (defvar *brightness-index* 5)
@@ -725,6 +736,16 @@
   ("H-5" "gselect 5")
   ("H-6" "gselect 6")
 
+  ("KP_End"       "gselect 1")
+  ("KP_Down"      "gselect 2")
+  ("KP_Page_Down" "gselect 3")
+  ("KP_Left"      "gselect 4")
+  ("KP_Begin"     "gselect 5")
+  ("KP_Right"     "gselect 6")
+  ("KP_Home"      "gselect 7")
+  ("KP_Up"        "gselect 8")
+  ("KP_Page_Up"   "gselect 9")
+
   ("H-!" "gmove 1")
   ("H-@" "gmove 2")
   ("H-#" "gmove 3")
@@ -763,8 +784,11 @@
 
 (define-top-keys ;; sound
   ("H-F1" "mute")
-  ("H-F2" "exec amixer -q sset Master 5%-")
-  ("H-F3" "exec amixer -q sset Master 5%+"))
+  ("H-F2" "volume-down")
+  ("H-F3" "volume-up")
+  ("XF86AudioMute" "exec mute")
+  ("XF86AudioRaiseVolume" "volume-down") ; todo unfuck the backwards mapping in qmk
+  ("XF86AudioLowerVolume" "volume-up"))
 
 (define-top-keys ;; screen
   ("H-F5" "rotate-brightness-down")