Skip to content

Instantly share code, notes, and snippets.

View lmBored's full-sized avatar
:electron:
Ricing

Kkoi lmBored

:electron:
Ricing
View GitHub Profile

Karabiner layouts for symbols and navigation

Gavin Sinclair, January 2022

Introduction

I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.

The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.

@justinmklam
justinmklam / configs-for-karabiner-layers.md
Last active December 7, 2025 17:00
Karabiner configs for macOS

Instructions:

  1. In GUI, add rule under complex modifications
  2. Change to_if_alone_timeout_milliseconds from 1000 to 500 ms

See blog post or KeymapDB for more details.

@ismyrnow
ismyrnow / mac-clear-icon-cache.sh
Created May 5, 2017 19:28
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder