Skip to content

Instantly share code, notes, and snippets.

View rbolekr's full-sized avatar
🦕
Alive... probably.

Rafal Rybak rbolekr

🦕
Alive... probably.
  • Switzerland
  • 18:36 (UTC +02:00)
View GitHub Profile
@rbolekr
rbolekr / init.lua
Last active February 4, 2026 14:02
Remapping MX Keys (alternative to using Karabiner)
-- 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'} },