This file contains hidden or 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
| -- This is a Hammerspoon script. | |
| local mappings = { | |
| -- The extra space in front of the output for 'a' is to deal with dead-keys condition | |
| -- triggered by Option + A producing å by default. | |
| { from = 'a', to = ' ä', mods = {'alt'} }, | |
| { from = 'a', to = ' Ä', mods = {'alt', 'shift'} }, | |
| { from = 'o', to = 'ö', mods = {'alt'} }, | |
| { from = 'o', to = 'Ö', mods = {'alt', 'shift'} }, | |
| { from = 'u', to = 'ü', mods = {'alt'} }, |