Last active
May 27, 2022 13:38
-
-
Save mtso/1a85146da3e9d3a85cb4eb57d7cc3b12 to your computer and use it in GitHub Desktop.
Revisions
-
mtso revised this gist
May 27, 2022 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,3 +7,5 @@ From caps_lock to left_command. Complex: Double left_command to caps lock! Location: `$HOME/.config/karabiner/assets/complex_modifications` -
mtso created this gist
May 27, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,73 @@ { "title": "Double left_command to become caps_lock", "rules": [ { "description": "Double left_command to become caps_lock.", "manipulators": [ { "conditions": [ { "name": "left_command pressed", "type": "variable_if", "value": 1 } ], "from": { "key_code": "left_command", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "caps_lock" } ], "type": "basic" }, { "from": { "key_code": "left_command", "modifiers": { "optional": [ "any" ] } }, "to": [ { "set_variable": { "name": "left_command pressed", "value": 1 } }, { "key_code": "left_command" } ], "to_delayed_action": { "to_if_canceled": [ { "set_variable": { "name": "left_command pressed", "value": 0 } } ], "to_if_invoked": [ { "set_variable": { "name": "left_command pressed", "value": 0 } } ] }, "type": "basic" } ] } ] } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ https://github.com/pqrs-org/KE-complex_modifications https://github.com/pqrs-org/Karabiner-Elements Simple Modifications: From caps_lock to left_command. Complex: Double left_command to caps lock!