summaryrefslogtreecommitdiff
path: root/mac/.config/karabiner/assets/complex_modifications/1700711318.json
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 20:35:27 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-01-24 20:35:27 +0900
commitc80a54e42b52ce297f0f2f71af23c562832025c7 (patch)
treedcce8bb977a770f473325d48f6f70b21d9818a40 /mac/.config/karabiner/assets/complex_modifications/1700711318.json
init
Diffstat (limited to 'mac/.config/karabiner/assets/complex_modifications/1700711318.json')
-rw-r--r--mac/.config/karabiner/assets/complex_modifications/1700711318.json95
1 files changed, 95 insertions, 0 deletions
diff --git a/mac/.config/karabiner/assets/complex_modifications/1700711318.json b/mac/.config/karabiner/assets/complex_modifications/1700711318.json
new file mode 100644
index 0000000..970adb0
--- /dev/null
+++ b/mac/.config/karabiner/assets/complex_modifications/1700711318.json
@@ -0,0 +1,95 @@
+{
+ "title": "fn twice -> change input source / fn hold -> iterm",
+ "author": "Ramiro Garcia (https://github.com/ranemirusG)",
+ "rules": [
+ {
+ "description": "fn + ` -> iTerm",
+ "manipulators": [
+ {
+ "type": "basic",
+ "from": {
+ "key_code": 53,
+ "modifiers": { "mandatory": ["fn"] }
+ },
+ "to": [{ "shell_command": "open '/Applications/iTerm.app'" }]
+ }
+ ]
+ },
+ {
+ "description": "Press twice fn to change input source & otherwise held_down and open iterm",
+ "manipulators": [
+ {
+ "conditions": [
+ {
+ "type": "variable_if",
+ "name": "fn pressed",
+ "value": 1
+ }
+ ],
+ "type": "basic",
+ "from": {
+ "key_code": "fn",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "repeat": false,
+ "key_code": "spacebar",
+ "modifiers": ["left_control", "left_alt"],
+ "lazy": true
+ }
+ ]
+ },
+ {
+ "type": "basic",
+ "from": {
+ "key_code": "fn",
+ "modifiers": {
+ "optional": [
+ "any"
+ ]
+ }
+ },
+ "to": [
+ {
+ "set_variable": {
+ "name": "fn pressed",
+ "value": 1
+ }
+ }
+ ],
+ "to_if_held_down": [
+ {
+ "key_code": "fn"
+ }
+ ],
+ "parameters": {
+ "basic.to_if_held_down_threshold_milliseconds": 0
+ },
+ "to_delayed_action": {
+ "to_if_invoked": [
+ {
+ "set_variable": {
+ "name": "fn pressed",
+ "value": 0
+ }
+ }
+ ],
+ "to_if_canceled": [
+ {
+ "set_variable": {
+ "name": "fn pressed",
+ "value": 0
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+}