Skip to content

Instantly share code, notes, and snippets.

@aaronlifton
Forked from andrewvmail/karabiner.edn
Created July 10, 2023 02:31
Show Gist options
  • Save aaronlifton/35f05f9e94fda612cbc658e59b42d7a8 to your computer and use it in GitHub Desktop.
Save aaronlifton/35f05f9e94fda612cbc658e59b42d7a8 to your computer and use it in GitHub Desktop.
my-goku-file
{
;; my-goku
;; in hammerspoon console hs.ipc.cliInstall()
;; gokuw
;; gh gist edit d496e18751ddea5a9cb310755535389c -a karabiner.edn /Users/momo/.config/karabiner.edn
:templates {
:open "open \"%s\""
:hs "/usr/local/bin/hs -c \"%s\""
}
:layers {}
:simlayers {
:aaa {:key :a}
:ccc {:key :c}
:launch-mode {:key :f}
:windows-mgmt {:key :w}
}
:main [
{:des "aaa"
:rules [:aaa
[:n [:hs "nextLayout()"]] ;; hammerspoo
]}
{:des "ccc"
:rules [:ccc
[:h :!CTleft_arrow ] ;; cmd + ctrl + > (xcode)
[:l :!CTright_arrow ] ;; cmd + ctrl + < (xcode)
[:n [:hs "nextLayout()"]] ;; hammerspoon
[:equal_sign :!Of12 ] ;; Option + F12 (jetbrains, open terminal)
]}
{:des "launch mode"
:rules [:launch-mode
[:s [:open "/Applications/Sublime Text.app"]]
[:o [:open "/Applications/Google Chrome.app"]]
[:i [:open "/Applications/iTerm.app"]]
[:grave_accent_and_tilde [:open "/Applications/iTerm.app"]]
[:l [:open "/Applications/Trello.app"]]
[:w [:open "/Applications/Webstorm.app"]]
[:a [:open "/Applications/Android Studio.app"]]
[:d [:open "/Applications/Docker.app"]]
[:x [:open "/Applications/Xcode.app"]]
]}
{:des "windows-mgmt"
:rules [:windows-mgmt
[:j [:hs "nextLayout()"]] ;; hammerspoon
]}
]
}
;; make a + something to toggle between windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment