summaryrefslogtreecommitdiffstats
path: root/config/karabiner/assets/complex_modifications/command-escape.json
diff options
context:
space:
mode:
Diffstat (limited to 'config/karabiner/assets/complex_modifications/command-escape.json')
-rw-r--r--config/karabiner/assets/complex_modifications/command-escape.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/config/karabiner/assets/complex_modifications/command-escape.json b/config/karabiner/assets/complex_modifications/command-escape.json
new file mode 100644
index 0000000..03c6167
--- /dev/null
+++ b/config/karabiner/assets/complex_modifications/command-escape.json
@@ -0,0 +1,32 @@
+{
+ "title": "Map Command to Escape when pressed alone",
+ "rules": [
+ {
+ "manipulators": [
+ {
+ "description": "Map left command to escape",
+ "type": "basic",
+ "from": {
+ "key_code": "left_command",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "key_code": "left_command",
+ "lazy": true
+ }
+ ],
+ "to_if_alone": [
+ {
+ "key_code": "escape"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}