Browse Source

karabiner: update

ubuntu_ci
Ein Verne 4 years ago
parent
commit
f94def3eb3
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 1
      .gitignore
  2. 2094
      karabiner/assets/complex_modifications/1598152132.json
  3. 189
      karabiner/assets/complex_modifications/1598163341.json
  4. 20
      karabiner/assets/complex_modifications/1598345273.json
  5. 502
      karabiner/assets/complex_modifications/1600571122.json
  6. 2094
      karabiner/assets/complex_modifications/1601100681.json
  7. 191
      karabiner/assets/complex_modifications/1601183511.json
  8. 29
      karabiner/karabiner.edn
  9. 46728
      karabiner/karabiner.json

1
.gitignore vendored

@ -13,5 +13,6 @@ Session.vim
*.ba
karabiner/automatic_backups/*
karabiner/karabiner.json
.idea/*
*.pyc

2094
karabiner/assets/complex_modifications/1598152132.json

File diff suppressed because it is too large Load Diff

189
karabiner/assets/complex_modifications/1598163341.json

@ -1,189 +0,0 @@
{
"title": "Finder",
"rules": [
{
"description": "Use Return as Open",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "return_or_enter",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "o",
"modifiers": ["right_command"]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
}
]
},
{
"description": "Use Return as Open and Use Fn+Return as Rename",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "return_or_enter"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "return_or_enter"
},
"to": [
{
"key_code": "o",
"modifiers": ["right_command"]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
}
]
},
{
"description": "Use F2 as Rename",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f2"
},
"to": [
{
"key_code": "return_or_enter"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
}
]
},
{
"description": "Use Delete as Move to Trash",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_forward",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["left_command"]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
}
]
},
{
"description": "Use Fn+Delete as Move to Trash",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_forward",
"modifiers": {
"mandatory": [
"fn"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["left_command"]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
}
]
},
{
"description": "Use Backspace as Go to Previous Folder",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "delete_or_backspace"
},
"to": [
{
"key_code": "semicolon",
"modifiers": ["left_command"]
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com.apple.finder"
]
}
]
}
]
}
]
}

20
karabiner/assets/complex_modifications/1598345273.json

@ -1,20 +0,0 @@
{
"title": "Prevent unintended command-h hide window (rev 2)",
"rules": [
{
"description": "Disable Cmd+H Hide (rev 2)",
"manipulators": [
{
"type": "basic",
"description": "",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["command"]
}
}
}
]
}
]
}

502
karabiner/assets/complex_modifications/1600571122.json

@ -1,502 +0,0 @@
{
"title": "CapsLock Plus",
"maintainers": ["BryanHoo"],
"homepage": "https://github.com/BryanHoo/Capslock-Plus",
"import_url": "karabiner://karabiner/assets/complex_modifications/import?url=https://raw.githubusercontent.com/BryanHoo/Capslock-Plus/master/capslock-plus.json",
"rules": [
{
"description": "CapsLock to Hyper/Escape",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": ["any"]
}
},
"to": [
{
"key_code": "right_shift",
"modifiers": ["right_command", "right_control", "right_option"]
}
],
"to_if_alone": [
{
"key_code": "escape"
}
]
}
]
},
{
"description": "Hyper Cursor navigation",
"manipulators": [
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_option"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_option"]
}
],
"type": "basic"
}
]
},
{
"description": "Hyper selected Navigation",
"manipulators": [
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_command", "left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_command", "left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": ["left_option", "left_shift"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": ["left_option", "left_shift"]
}
],
"type": "basic"
}
]
},
{
"description": "Hyper More",
"manipulators": [
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "return_or_enter",
"modifiers": ["left_command"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "tab",
"modifiers": ["left_control"]
}
],
"type": "basic"
},
{
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"shell_command": "open -a 'iTerm'"
}
],
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"shell_command": "open -a 'finder'"
}
],
"type": "basic"
}
]
}
]
}

2094
karabiner/assets/complex_modifications/1601100681.json

File diff suppressed because it is too large Load Diff

191
karabiner/assets/complex_modifications/1601183511.json

@ -1,191 +0,0 @@
{
"title": "Prevent unintended command-q (rev 2)",
"rules": [
{
"description": "Quit application by pressing command-q twice",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "variable_if",
"name": "command-q",
"value": 1
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": "left_command"
}
]
},
{
"type": "basic",
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"set_variable": {
"name": "command-q",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
]
}
}
]
},
{
"description": "Quit application by holding command-q",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to_if_held_down": [
{
"key_code": "q",
"modifiers": [
"left_command"
],
"repeat": false
}
]
}
]
},
{
"description": "Quit Safari by pressing command-q twice",
"manipulators": [
{
"type": "basic",
"conditions": [
{
"type": "variable_if",
"name": "command-q",
"value": 1
},
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Safari$"
]
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": "left_command"
}
]
},
{
"type": "basic",
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.apple\\.Safari$"
]
}
],
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"set_variable": {
"name": "command-q",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_invoked": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
],
"to_if_canceled": [
{
"set_variable": {
"name": "command-q",
"value": 0
}
}
]
}
}
]
}
]
}

29
karabiner/karabiner.edn

@ -433,7 +433,7 @@
[:t :quote]
[:o :open_bracket] ; [
[:p :close_bracket] ; ]
[:open_bracket :!Sclose_bracket] ; }
[:open_bracket :!Sclose_bracket]
[:caps_lock [:km "Match symbols"]]
[:a :slash]
[:s :!Shyphen]
@ -449,38 +449,19 @@
[:c :!S7]
[:v :!Scomma]
[:b [:slash :slash :spacebar]]]} ; -> //
{:des "okey (alfred)"
{:des "Open related applications"
:rules [:o-mode
[:1 :!C1]
[:2 :!C2]
[:3 :!C3]
[:4 :!C4]
[:5 :!C5]
[:6 :!C6]
[:q [:alfred "search downloads" "recentdownloads.ddjfreedom"]]
[:w :!CObackslash] ; 1Password search
[:e [:km "Make 2Do task"]]
[:r [:km "Make 2Do task with note as current URL"]]
[:t [:km "Make 2Do task with Safari title as name + note as current URL"]]
;[:i [:alfred "search alfred" "nikivi.utilities" "?"]]
[:i [:open "/Applications/iTerm.app"]]
[:caps_lock [:alfred "search desktop" "com.vitorgalvao.alfred.directories"]]
[:a [:alfred "search files" "nikivi.manage.notes"]] ; TODO: add blog, drafts
[:b [:open "/Applications/Obsidian.app"]]
[:w [:open "/Applications/Lark.app"]]
[:s [:alfred "search code" "nikivi.manage.notes"]]
[:d [:alfred "search repos" "net.deanishe.alfred-git-repos"]]
[:f [:alfred "search folders" "nikivi.search.folders"]]
[:g [:km "2Do with current url as note (github)"]]
[:j [:alfred "run" "iansinnott.keyboardmaestro"]]
[:k [:open "/Applications/kitty.app"]]
[:grave_accent_and_tilde [:alfred "search processes" "com.vitorgalvao.alfred.processcontrol"]]
[:x [:alfred "search workflows" "org.jeef.workflowdirectory"]]
[:e [:open "/Applications/Lark.app"]]
[:w [:open "/Applications/WeChat.app"]]
[:g [:open "/Applications/GoldenDict.app"]]
;[:c [:alfred "search emoji" "com.github.jsumners.alfred-emoji"]]
[:c [:open "/Applications/Google Chrome.app"]]
[:v [:alfred "search clones" "com.vitorgalvao.alfred.directories"]]
[:n [:alfred "search lists" "nikivi.learn.anything"]]
[:m [:alfred "search lists" "nikivi.awesome.lists"]]
[:spacebar [:alfred "search PDFs" "nikivi.search.files"]]]}
{:des "capskey (todo + trello)"
:rules [:caps-mode

46728
karabiner/karabiner.json

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save