DEV Community

[Comment from a deleted post]
Collapse
 
denolfe profile image
Elliot DeNolf • Edited

I went a little crazy with my keyboard mappings using Karabiner and Hammerspoon. I use CapsLock as a Hyper key to create shortcuts.

  • Hyper Key modifier, Esc when pressed alone
    • CapsLock
    • CapsLock+cmd
  • Directional Bindings (CapsLock) w/ Selection (+cmd)
    • hjkl - VIM arrows
    • n - Home
    • p - End
    • m - Left one word
    • . - Right one word
    • i - Page Up
    • u - Page Down
    • cmd+i - Top of page
    • cmd+u - End of page
  • Remappings
    • CapsLock+delete - Forward delete
    • CapsLock+cmd+delete - Forward delete word
    • CapsLock+a - Spaces left
    • CapsLock+d - Spaces right
    • CapsLock+s - Mission Control
    • CapsLock +cmd+s - Show all app window
  • PC-Style remappings for non-Apple keyboards

I use Hammerspoon to make CapsLock shortcuts for window management and "launch or focus" app shortcuts.