Skip to content

Instantly share code, notes, and snippets.

@spinscale
Created May 16, 2018 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spinscale/24b94b103e3737d88cb83be599883118 to your computer and use it in GitHub Desktop.
Save spinscale/24b94b103e3737d88cb83be599883118 to your computer and use it in GitHub Desktop.
hammerspoon - german umlauts on us keyboard
-- Umlaute without the hassle, hell yeah
hs.hotkey.bind({'alt'}, 'u', function ()
hs.eventtap.keyStrokes('ü')
end)
hs.hotkey.bind({'shift', 'alt'}, 'u', function ()
hs.eventtap.keyStrokes('Ü')
end)
hs.hotkey.bind({'alt'}, 'a', function ()
hs.eventtap.keyStrokes(' ä')
end)
hs.hotkey.bind({'shift', 'alt'}, 'a', function ()
hs.eventtap.keyStrokes(' Ä')
end)
hs.hotkey.bind({'alt'}, 'o', function ()
hs.eventtap.keyStrokes('ö')
end)
hs.hotkey.bind({'shift', 'alt'}, 'o', function ()
hs.eventtap.keyStrokes('Ö')
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment