Skip to content

Instantly share code, notes, and snippets.

@lega911
Created October 30, 2019 11:15
Show Gist options
  • Save lega911/b0df82c77d2cdd71ab2fbe4855ffebc6 to your computer and use it in GitHub Desktop.
Save lega911/b0df82c77d2cdd71ab2fbe4855ffebc6 to your computer and use it in GitHub Desktop.
keyboard layout se for ubuntu 19+
// file /usr/share/X11/xkb/symbols/se
partial alphanumeric_keys
xkb_symbols "se" {
name[Group1]="Swedish";
// tool: xev
// mapping key file: /usr/share/X11/xkb/keycodes/evdev
// reload conf: setxkbmap -layout se
// key <code> {[ default, +shift, +altGr, +shit +altgr ]};
key <AE05> { [ 5, percent, EuroSign, cent ] };
key <AC10> { [odiaeresis, Odiaeresis, oslash, Ooblique ] };
key <AC11> { [adiaeresis, Adiaeresis, ae, AE ] };
key <SPCE> { [ space, space, space, nobreakspace ] };
key <LSGT> { [ less, greater, bar, brokenbar ] };
include "level3(ralt_switch)"
key <TLDE> { [asciicircum, asciitilde, grave]};
key <AE12> { [slash, bar, backslash] };
key <BKSL> { [apostrophe, quotedbl, grave, acute] };
key <AD11> { [bracketleft, braceleft, aring, Aring] };
key <AD12> { [bracketright, braceright] };
key <AE11> { [equal, plus, question] };
key <AE02> { [2, at] };
key <AE04> { [4, dollar] };
include "kpdl(dot)"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment