d4ff2322e2ab

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 17 Aug 2021 15:20:33 -0400
parents c49f8198d9f3
children 7023c500dd7a
branches/tags (none)
files stumpwmrc uhk.json

Changes

--- 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")
--- 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",