summaryrefslogtreecommitdiff
path: root/config/hammerspoon/local-example.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/hammerspoon/local-example.lua')
-rw-r--r--config/hammerspoon/local-example.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/hammerspoon/local-example.lua b/config/hammerspoon/local-example.lua
index 967c14e..19dcc2a 100644
--- a/config/hammerspoon/local-example.lua
+++ b/config/hammerspoon/local-example.lua
@@ -43,3 +43,12 @@ hotkey(spc, cs, execute('open -a Finder'))
hotkey('m', hyp, function()
hs.alert.show(hs.host.localizedName())
end)
+
+-- Caps Lock is F20 on every Mac here (see dotlib.capslock_f20, called from
+-- init.lua), and nothing is bound to it by default. Give it a job:
+hotkey('f20', {}, focus("Ghostty"))
+
+-- Or give the key back on this machine only. A side effect cannot be shadowed
+-- the way a hotkey can -- the remap has already happened by the time this file
+-- loads -- so there is a function for it, which also clears the live mapping.
+-- lib.capslock_off()