Skip to content

Instantly share code, notes, and snippets.

@andrewvmail
Last active March 22, 2024 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrewvmail/d496e18751ddea5a9cb310755535389c to your computer and use it in GitHub Desktop.
Save andrewvmail/d496e18751ddea5a9cb310755535389c 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\""
:sh "/opt/homebrew/bin/bash -c \"%s\""
}
:layers {}
:simlayers {
:ggg {:key :g}
:ccc {:key :c}
:launch-mode {:key :f}
; :windows-mgmt {:key :w}
}
:main [
{:des "ggg"
:rules [:ggg
[:s [:open "https://gmail.com"]] ;; hammerspoo
]}
{:des "ccc"
:rules [:ccc
[:s [:open "https://chat.openai.com"]]
; [:h :!CTleft_arrow ] ;; cmd + ctrl + > (xcode)
; [:l :!CTright_arrow ] ;; cmd + ctrl + < (xcode)
; [:n [:hs "clipboard_to_chatgpt()"]] ;; hammerspoon
]}
{: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"]]
[:equal_sign [:open "/Applications/Signal.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