Added rule for mutting a teams call via F5

This commit is contained in:
Marcin Woźniak 2024-12-29 00:35:17 +01:00
parent e173812267
commit 615ac8def9
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -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": [