Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Welp. I don't know what I'm talking about. But at least for key remapping, I use `hidutil`. For example, to remap right ctrl to fn:

  hidutil property --set '
    {
      "UserKeyMapping": [
        {
          "HIDKeyboardModifierMappingSrc": 0x7000000E4,
          "HIDKeyboardModifierMappingDst": 0xFF00000003
        }
      ]
    }
  '
To make it stick through reboots, you can run it in a launch agent. Posted my notes and plist file here: https://gist.github.com/andelink/9df452c8cafb6790f196277705c...

For window tiling, can't say I've ever looked into it.



I was using Karabiner for years just to remap caps to a hyper key. A few months ago replaced it with a launchagent to run something like this remapping caps to F19 (and using F19 instead of hyper, in hammerspoon) -- has been working great.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: