Skip to content

Instantly share code, notes, and snippets.

@i5ar
Forked from edliaw/custom_xkb.desktop
Created July 9, 2018 04:30
Show Gist options
  • Save i5ar/c73a26341c910869bf296b84a07c2121 to your computer and use it in GitHub Desktop.
Save i5ar/c73a26341c910869bf296b84a07c2121 to your computer and use it in GitHub Desktop.
Custom keyboard layout for GNOME
[Desktop Entry]
Name=Keyboard Layout
Type=Application
Exec=sh -c "sleep 10 && [ -f \\$HOME/.Xkeymap ] && xkbcomp \\$HOME/.Xkeymap \\$DISPLAY 2> /dev/null"
Terminal=false
NoDisplay=true
X-GNOME-Autostart-enabled=true
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us_custom+inet(evdev)" };
};
default partial alphanumeric_keys modifier_keys
xkb_symbols "us_custom" {
include "us(basic)"
name[Group1]= "English (custom layout)";
key.type[Group1]="ONE_LEVEL";
key <ESC> { [ Caps_Lock ] };
key <CAPS> { [ Control_L ] };
key <LCTL> { [ Escape ] };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment