This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hs.application.enableSpotlightForNameSearches(true) | |
hs.notify.new({title="Hammerspoon", informativeText="Config loaded"}):send() | |
hs.window.animationDuration = 0 -- Animations are silly | |
-- Load Spoons | |
hs.loadSpoon("WinWin") | |
hs.loadSpoon("ReloadConfiguration") | |
spoon.ReloadConfiguration:start() | |
-- Bind the Hyper key |
I wanted my Home and End keys to behave as they do in Windows. I found a nice solution here and thought I would update with the recomended changes for modern OS versions.
- If not present, create directory
~/Library/KeyBindings
. - Create file
~/Library/KeyBindings/DefaultKeyBinding.dict
3. Paste the following contents:
{
"\UF729" = moveToBeginningOfLine:; // home
"\UF72B" = moveToEndOfLine:; // end
NewerOlder