Skip to content

Instantly share code, notes, and snippets.

@flipsi
Created December 12, 2014 23:01
Show Gist options
  • Save flipsi/6617fa49d51fe84e92b4 to your computer and use it in GitHub Desktop.
Save flipsi/6617fa49d51fe84e92b4 to your computer and use it in GitHub Desktop.
XKB Keyboad Layout
// based on a keyboard map from an 'xkb/symbols/de' file
// this file should be named de_sflip
// X keyboard layout mod by Philipp Moers <soziflip funny character gmail dot com>
// (i place this in /usr/share/X11/xkb/symbols/ and update /usr/share/X11/xkb/rules/xfree86.lst)
// change to this layout with 'setxkbmap -layout de_sflip basic'
default basic
xkb_symbols "basic" {
include "de"
// vim movements with AltGr
key <AC06> { [ h, H, Left, Hstroke ] };
key <AC07> { [ j, J, Down, dead_horn ] };
key <AC08> { [ k, K, Up, ampersand ] };
key <AC09> { [ l, L, Right, Lstroke ] };
// numbers with left hand
key <AD02> { [ w, W, 7, Lstroke ] };
key <AD03> { [ e, E, 8, EuroSign ] };
key <AD04> { [ r, R, 9, registered ] };
key <AC02> { [ s, S, 4, section ] };
key <AC03> { [ d, D, 5, ETH ] };
key <AC04> { [ f, F, 6, ordfeminine ] };
key <AB01> { [ y, Y, 0, ampersand ] };
key <AB02> { [ x, X, 1, greater ] };
key <AB03> { [ c, C, 2, copyright ] };
key <AB04> { [ v, V, 3, leftsinglequotemark ] };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment