# HG changeset patch # User Steve Losh # Date 1629228033 14400 # Node ID d4ff2322e2aba6459b4a203d3ceae943e5bd8d01 # Parent c49f8198d9f3ffd5c744d12e6f2eb48d0de4fe0d More diff -r c49f8198d9f3 -r d4ff2322e2ab stumpwmrc --- a/stumpwmrc Mon Aug 16 15:39:10 2021 -0400 +++ b/stumpwmrc Tue Aug 17 15:20:33 2021 -0400 @@ -401,6 +401,11 @@ (defcommand mark (thing) ((:string "Mark: ")) (run-shell-command (format nil "mark ~A" thing))) +(defcommand toggle-zoom-mute () () + (when-let ((win (find-window `(:title ,(ppcre:create-scanner "^Zoom Meeting.*"))))) + (focus-window win t) ; Zoom stupidly won't accept the shortcut unless it's in focus + (meta (kbd "M-a")))) + ;;;; Terminal Fonts ----------------------------------------------------------- (defcommand reload-terminal-font-size () @@ -541,6 +546,7 @@ ("H-O" "spotify") ("H-o" "files") ("H-z" "zoom") + ("XF86Launch8" "toggle-zoom-mute") ("H-q" "exec lock-screen") ("H-y" "screenshot") ("H-g" "gcontrol") diff -r c49f8198d9f3 -r d4ff2322e2ab uhk.json --- a/uhk.json Mon Aug 16 15:39:10 2021 -0400 +++ b/uhk.json Tue Aug 17 15:20:33 2021 -0400 @@ -7356,31 +7356,31 @@ "id": 2, "keyActions": [ { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 76 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 42 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 40 + "keyActionType": "mouse", + "mouseAction": "rightClick" }, { "keyActionType": "mouse", "mouseAction": "leftClick" }, { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 108 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 104 + }, + { "keyActionType": "mouse", "mouseAction": "middleClick" }, { - "keyActionType": "mouse", - "mouseAction": "rightClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 105 } ] }, @@ -7388,12 +7388,14 @@ "id": 4, "keyActions": [ { - "keyActionType": "mouse", - "mouseAction": "leftClick" - }, - { - "keyActionType": "mouse", - "mouseAction": "rightClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 106 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 107 } ] } @@ -7718,14 +7720,12 @@ "id": 2, "keyActions": [ { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 76 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 42 + "keyActionType": "mouse", + "mouseAction": "rightClick" + }, + { + "keyActionType": "mouse", + "mouseAction": "leftClick" }, { "keyActionType": "keystroke", @@ -7733,8 +7733,9 @@ "scancode": 40 }, { - "keyActionType": "mouse", - "mouseAction": "leftClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 104 }, { "keyActionType": "mouse", @@ -7750,12 +7751,14 @@ "id": 4, "keyActions": [ { - "keyActionType": "mouse", - "mouseAction": "leftClick" - }, - { - "keyActionType": "mouse", - "mouseAction": "rightClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 106 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 107 } ] } @@ -7963,14 +7966,12 @@ "id": 2, "keyActions": [ { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 76 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 42 + "keyActionType": "mouse", + "mouseAction": "rightClick" + }, + { + "keyActionType": "mouse", + "mouseAction": "leftClick" }, { "keyActionType": "keystroke", @@ -7978,8 +7979,9 @@ "scancode": 40 }, { - "keyActionType": "mouse", - "mouseAction": "leftClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 104 }, { "keyActionType": "mouse", @@ -7995,12 +7997,14 @@ "id": 4, "keyActions": [ { - "keyActionType": "mouse", - "mouseAction": "leftClick" - }, - { - "keyActionType": "mouse", - "mouseAction": "rightClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 106 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 107 } ] } @@ -8178,14 +8182,12 @@ "id": 2, "keyActions": [ { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 76 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 42 + "keyActionType": "mouse", + "mouseAction": "rightClick" + }, + { + "keyActionType": "mouse", + "mouseAction": "leftClick" }, { "keyActionType": "keystroke", @@ -8193,8 +8195,9 @@ "scancode": 40 }, { - "keyActionType": "mouse", - "mouseAction": "leftClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 104 }, { "keyActionType": "mouse", @@ -8210,12 +8213,14 @@ "id": 4, "keyActions": [ { - "keyActionType": "mouse", - "mouseAction": "leftClick" - }, - { - "keyActionType": "mouse", - "mouseAction": "rightClick" + "keyActionType": "keystroke", + "type": "basic", + "scancode": 106 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 107 } ] } @@ -8582,17 +8587,17 @@ { "keyActionType": "keystroke", "type": "basic", - "scancode": 76 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 42 - }, - { - "keyActionType": "keystroke", - "type": "basic", - "scancode": 40 + "scancode": 104 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 105 + }, + { + "keyActionType": "keystroke", + "type": "basic", + "scancode": 106 }, { "keyActionType": "mouse",