Browse Source

Karabiner: add more o mapping

ubuntu_ci
Ein Verne 4 years ago
parent
commit
8f4f8eda8f
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 75
      karabiner/karabiner.edn

75
karabiner/karabiner.edn

@ -18,6 +18,8 @@
;; R | right_shift ;; R | right_shift
;; need to prefix C T O S F with ! or # ;; need to prefix C T O S F with ! or #
;; https://github.com/nikitavoloboev/dotfiles/blob/master/karabiner/karabiner.edn
:profiles :profiles
{:goku {:default true {:goku {:default true
:sim 50 ;; simultaneous_threshold_milliseconds (def: 50) :sim 50 ;; simultaneous_threshold_milliseconds (def: 50)
@ -47,8 +49,9 @@
:chromes ["^com\\.google\\.Chrome$" "^com\\.google\\.Chrome\\.canary$"] :chromes ["^com\\.google\\.Chrome$" "^com\\.google\\.Chrome\\.canary$"]
:ctrlnp ["^md\\.obsidian", :ctrlnp ["^md\\.obsidian",
"^com\\.jetbrains\\.intellij", "^com\\.jetbrains\\.intellij",
"^com\\.electron\\.lark" "com\\.jetbrains\\.pycharm",
"^com\\.tencent\\.xinWeChat" "^com\\.electron\\.lark",
"^com\\.tencent\\.xinWeChat",
"^com\\.google\\.Chrome"] "^com\\.google\\.Chrome"]
:finder ["^com\\.apple\\.finder$"] :finder ["^com\\.apple\\.finder$"]
:terminals ["com\\.apple\\.Terminal", :terminals ["com\\.apple\\.Terminal",
@ -67,41 +70,41 @@
;; recommended for non-typing keys like `.` or tab or space ;; recommended for non-typing keys like `.` or tab or space
;; or keys like z which are used less often ;; or keys like z which are used less often
:simlayers { :simlayers {
:2-mode {:key :2} ;;:2-mode {:key :2}
:3-mode {:key :3} ;;:3-mode {:key :3}
:4-mode {:key :4} ;;:4-mode {:key :4}
:tab-mode {:key :tab} ;;:tab-mode {:key :tab}
:q-mode {:key :q} ;;:q-mode {:key :q}
:w-mode {:key :w} ;;:w-mode {:key :w}
:e-mode {:key :e} ;;:e-mode {:key :e}
:r-mode {:key :r} ;;:r-mode {:key :r}
:t-mode {:key :t} ;;:t-mode {:key :t}
:i-mode {:key :i} ;;:i-mode {:key :i}
:o-mode {:key :o} :o-mode {:key :o}
:caps-mode {:key :caps_lock} ;;:caps-mode {:key :caps_lock}
:a-mode {:key :a} :a-mode {:key :a}
:s-mode {:key :s} :s-mode {:key :s}
:d-mode {:key :d} ;;:d-mode {:key :d}
:f-mode {:key :f} ;;:f-mode {:key :f}
:g-mode {:key :g} ;;:g-mode {:key :g}
:semicolon-mode {:key :semicolon} ;;:semicolon-mode {:key :semicolon}
:tilde-mode {:key :grave_accent_and_tilde} ;;:tilde-mode {:key :grave_accent_and_tilde}
:z-mode {:key :z} ;;:z-mode {:key :z}
:x-mode {:key :x} ;;:x-mode {:key :x}
:c-mode {:key :c} ;;:c-mode {:key :c}
:v-mode {:key :v} ;;:v-mode {:key :v}
:b-mode {:key :b} ;;:b-mode {:key :b}
:n-mode {:key :n} ;;:n-mode {:key :n}
:m-mode {:key :m} ;;:m-mode {:key :m}
:comma-mode {:key :comma} ;;:comma-mode {:key :comma}
:dot-mode {:key :period} ;;:dot-mode {:key :period}
:spacebar-mode {:key :spacebar} ;;:spacebar-mode {:key :spacebar}
:go-mode {:key :period :condi ["in-go" 1]} ;;:go-mode {:key :period :condi ["in-go" 1]}
:js-mode {:key :period :condi ["in-js" 1]} ;;:js-mode {:key :period :condi ["in-js" 1]}
:swift-mode {:key :period :condi ["in-swift" 1]} ;;:swift-mode {:key :period :condi ["in-swift" 1]}
:rust-mode {:key :period :condi ["in-rust" 1]} ;;:rust-mode {:key :period :condi ["in-rust" 1]}
:py-mode {:key :period :condi ["in-python" 1]} ;;:py-mode {:key :period :condi ["in-python" 1]}
:elixir-mode {:key :period :condi ["in-elixir" 1]} ;;:elixir-mode {:key :period :condi ["in-elixir" 1]}
} }
:main [ :main [
;; each manipulator has a description and multiple rules ;; each manipulator has a description and multiple rules
@ -455,11 +458,13 @@
[:2 :!C2] [:2 :!C2]
[:3 :!C3] [:3 :!C3]
[:4 :!C4] [:4 :!C4]
[:i [:open "/Applications/iTerm.app"]] [:t [:open "/Applications/iTerm.app"]]
[:b [:open "/Applications/Obsidian.app"]] [:b [:open "/Applications/Obsidian.app"]]
[:e [:open "/Applications/Lark.app"]] [:e [:open "/Applications/Lark.app"]]
[:w [:open "/Applications/WeChat.app"]] [:w [:open "/Applications/WeChat.app"]]
[:g [:open "/Applications/GoldenDict.app"]] [:g [:open "/Applications/GoldenDict.app"]]
[:t [:open "/Applications/Telegram.app"]]
[:j [:open "/Users/einverne/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app"]]
;[:c [:alfred "search emoji" "com.github.jsumners.alfred-emoji"]] ;[:c [:alfred "search emoji" "com.github.jsumners.alfred-emoji"]]
[:c [:open "/Applications/Google Chrome.app"]] [:c [:open "/Applications/Google Chrome.app"]]
[:spacebar [:alfred "search PDFs" "nikivi.search.files"]]]} [:spacebar [:alfred "search PDFs" "nikivi.search.files"]]]}

Loading…
Cancel
Save