Skip to content

Instantly share code, notes, and snippets.

@BashkaMen
Created June 25, 2025 06:17
Show Gist options
  • Save BashkaMen/2ba2d3fd75afa8670a7185afa26daae1 to your computer and use it in GitHub Desktop.
Save BashkaMen/2ba2d3fd75afa8670a7185afa26daae1 to your computer and use it in GitHub Desktop.
#################################################
# This file is a sample of some things you
# can do with this leader key setup. It's active
# right now! Set leader_key below and try it! The
# lua prioritizes home.toml, then work.toml,
# then falls back to this sample.toml. If you
# want different profile names, you can add it
# to the list in ~/.hammerspoon/init.lua.
################################################
# settings
leader_key = "f18" # required, the leader key that starts the sequence
leader_key_mods = "" # optional, default "", not recommended - a dedicated leader key is better
# supports cmd ctrl alt shift
auto_reload = true # optional, default true, reload when any file in this directory is saved
toast_on_reload = true # optional, default false, show a toast when the config is reloaded
show_ui = true # option al, default true, show the ui with your key maps
l = ["hs:switchInputSource()", "switch language"]
[o]
label = "[open]"
t = ["Ghostty", "terminal"]
a = ["Arc", "arc"]
m = ["Telegram", "telegram"]
e = ["raycast://extensions/raycast/emoji-symbols/search-emoji-symbols", "emoji"]
f = ["Finder", "finder"]
# [o.l]
# label = "[links]" # the "label" key is reserved to change the label of the group
# g = "https://github.com"
# b = "https://bsky.app"
# t = "https://twitter.com"
[s]
label = "[search]"
f = ["raycast://extensions/raycast/file-search/search-files", "files"]
b = ["raycast://extensions/nhojb/brew/search", "brew"]
s = ["raycast://extensions/raycast/snippets/search-snippets", "snippets"]
[t]
label = "[tools]"
s = ["shortcut:cmd shift 1", "Screenshot"]
a = ["https://gemini.google.com/app?pli=1", "ask AI"]
[c]
label = "[code]"
c = ["Visual Studio Code", "vs code"]
z = ["Zed", "zed"]
f = ["Fork", "fork"]
r = ["Rider", "rider"]
[r]
label = "[raycast]"
c = ["raycast://extensions/raycast/raycast/confetti", "confetti"]
e = ["raycast://extensions/raycast/emoji-symbols/search-emoji-symbols", "emoji"]
# use prefixes for special actions
[p]
label = "[prefixes]"
e = ["text:[email protected]", "email"]
p = ["text:your phone", "phone"]
#z = "cmd:code ~/.zshrc" # run any terminal command
#x = "code: ~/.zshrc" # open a file or directory in VS Code
#s = "shortcut:cmd shift 4" # trigger a keyboard shortcut
#r = "reload" # reserved for reloading your hammerspoon config (helpful when auto_reload is false)
#i = "input:https://google.com/search?q={input}" # capture input and insert it into any other action
# we have window management too!
[w]
label = "[window]"
left = ["raycast://extensions/raycast/window-management/left-half", "left half"]
right = ["raycast://extensions/raycast/window-management/right-half", "right half"]
c = ["raycast://extensions/raycast/window-management/center", "center"]
f = ["raycast://extensions/raycast/window-management/maximize", "maximize"]
# this group is handy to copy over
# for quick access to your config
[h]
label = "[hammerspoon]"
c = ["code: ~/.hammerspoon", "open config"]
r = "reload" # reserved for reloading your hammerspoon config (helpful when auto_reload is false)
# for advanced hammerspoon users, you can use
# the hs: prefix as an escape hatch to run any
# hammerspoon command you want.
[z]
label = "[cmd]"
z = "hs:hs.alert('Hello, bashkamen!')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment