Skip to content

Instantly share code, notes, and snippets.

@therealmarv
Created November 21, 2017 14:28
Show Gist options
  • Save therealmarv/224515917abd072425933552b0a41be9 to your computer and use it in GitHub Desktop.
Save therealmarv/224515917abd072425933552b0a41be9 to your computer and use it in GitHub Desktop.
hammerspoon Umlaute
-- Umlaute
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)
-- Euro
hs.hotkey.bind({'alt'}, 'e', function ()
hs.eventtap.keyStrokes('€')
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment