Skip to content

Instantly share code, notes, and snippets.

@bcremer
Last active August 29, 2015 14:04
Show Gist options
  • Save bcremer/9caa54d0432531f80c1e to your computer and use it in GitHub Desktop.
Save bcremer/9caa54d0432531f80c1e to your computer and use it in GitHub Desktop.
.Xmodmap to map Capslock + j/k to brace left / brace right
! Forget any previous Caps Lock
clear Lock
keycode 66 = ISO_Group_Shift ISO_Group_Shift ISO_First_Group NoSymbol
keycode 44 = j J braceleft Down dead_belowdot dead_abovedot dead_belowdot
keycode 45 = k K braceright Up kra ampersand kra
keycode 30 = u U bracketleft U downarrow uparrow downarrow
keycode 31 = i I bracketright I rightarrow idotless rightarrow
keycode 40 = d D less D eth ETH eth
keycode 41 = f F greater F dstroke ordfeminine dstroke

Installation:

wget -O ~/.Xmodmap https://gist.githubusercontent.com/bcremer/9caa54d0432531f80c1e/raw/adf8f333fced594e2ab6ee412afa81a10dd76cf4/.Xmodmap
xmodmap ~/.Xmodmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment