Skip to content

Instantly share code, notes, and snippets.

@yograf
Created June 18, 2016 19:27
Show Gist options
  • Save yograf/fd802bae68b5aaaeffa98df179f72745 to your computer and use it in GitHub Desktop.
Save yograf/fd802bae68b5aaaeffa98df179f72745 to your computer and use it in GitHub Desktop.
sudo vim /usr/share/X11/xkb/symbols/us
--------------------------------------------------
key <AC06> { [ h, H, Left ] };
key <AC07> { [ j, J, Down ] };
key <AC08> { [ k, K, Up ] };
key <AC09> { [ l, L, Right ] };
key <AC10> { [ semicolon, colon, BackSpace ] };
key <AC04> { [ f, F, Escape ] };
key <CAPS> {[ISO_Level3_Shift]};
------------------------------------------------------------------------
spare_modifier="ISO_Level3_Shift"
xmodmap -e "keycode 65 = $spare_modifier"
xmodmap -e "keycode any = space"
xcape -e "$spare_modifier=space"
http://kongjiaming.blogspot.co.il/2013/05/hjkl-for-direction-keys-in-ubuntu.html
https://github.com/alols/xcape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment