From 615ac8def9decd9405c96bbe5e976c8ad43c25cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 29 Dec 2024 00:35:17 +0100 Subject: [PATCH] Added rule for mutting a teams call via F5 --- .config/karabiner/karabiner.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json index 6040143..70f418c 100644 --- a/.config/karabiner/karabiner.json +++ b/.config/karabiner/karabiner.json @@ -4,6 +4,16 @@ { "complex_modifications": { "rules": [ + { + "description": "Maps F5 to ⌘⇧M in MS Teams or ⌘⇧A to ZOOM. F5 has an MIC symbol on recent MacOS keyboards.", + "manipulators": [ + { + "from": { "key_code": "f5" }, + "to": [{ "shell_command": "if [ $(ps aux | grep -v grep | grep -ci \"Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app\") -gt 0 ]; then osascript -e 'activate application id \"com.microsoft.teams\"' -e 'tell application \"System Events\" to keystroke \"m\" using {command down, shift down}'; fi & if [ $(ps aux | grep -v grep | grep -ci \"zoom.us.app/Contents/Frameworks/cpthost.app/Contents/MacOS/CptHost\") -gt 0 ]; then osascript -e 'activate application id \"us.zoom.xos\"' -e 'tell application \"System Events\" to keystroke \"a\" using {command down, shift down}'; fi" }], + "type": "basic" + } + ] + }, { "description": "Change right_command+hjkl to arrow keys", "manipulators": [