Open revolter opened 1 year ago
A temporary workaround would be to use notifications:
{
"title": "Caps Lock useful",
"rules": [
{
"description": "Caps Lock to mute/unmute",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock"
},
"to": [
{
"set_variable": {
"name": "is_caps_lock_active",
"value": 1
}
},
{
"shell_command": "osascript -e 'tell application \"System Events\" to set volume input volume 100'; osascript -e 'display notification \"🔈 Unmuted\" with title \"Microphone state changed\"'"
}
],
"conditions": [
{
"type": "variable_if",
"name": "is_caps_lock_active",
"value": 0
}
]
},
{
"type": "basic",
"from": {
"key_code": "caps_lock"
},
"to": [
{
"set_variable": {
"name": "is_caps_lock_active",
"value": 0
}
},
{
"shell_command": "osascript -e 'tell application \"System Events\" to set volume input volume 0'; osascript -e 'display notification \"🔇 Muted\" with title \"Microphone state changed\"'"
}
],
"conditions": [
{
"type": "variable_if",
"name": "is_caps_lock_active",
"value": 1
}
]
}
]
}
]
}
Revival of #1257.
Having this complex modification:
causes the Caps Lock key's LED to stop working.
I also tried adding
under the
to
key, with the idea that the complex modification would then act as a proxy. But instead, you now have to press caps lock twice to toggle the LED once.