# HG changeset patch # User Steve Losh # Date 1699024260 14400 # Node ID 96d5ea1b609749aadaf97cb529a50ed6d5666ec5 # Parent 05ef9c8cbeeb4e75d4c48acd5fc2da0965135b2e More diff -r 05ef9c8cbeeb -r 96d5ea1b6097 stumpwmrc --- 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")