Skip to content

Instantly share code, notes, and snippets.

@homburg
Last active March 25, 2018 16:07
Show Gist options
  • Save homburg/c6ea3d264658dd8b88aaeb3e00fd373b to your computer and use it in GitHub Desktop.
Save homburg/c6ea3d264658dd8b88aaeb3e00fd373b to your computer and use it in GitHub Desktop.
Ubuntu custom keyboard layout
# Custom layout
# Add to /usr/share/X11/xkb/symbols/dk
partial alphanumeric_keys
xkb_symbols "custom" {
include "dk(basic)"
name[Group1]="Danish (custom)";
key <TLDE> { [ dollar, asciitilde, threequartes, paragraph ] };
key <CAPS> { [ Escape ] };
};
# And add
<variant>
<configItem>
<name>custom</name>
<description>Danish (custom)</description>
</configItem>
</variant>
# to /usr/share/X11/xkb/rules/evdev.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment