Skip to content

Instantly share code, notes, and snippets.

@metainfa
Created May 31, 2017 10:42
Show Gist options
  • Save metainfa/db01be2b6bc4b4bfa8706a6a9291bc1f to your computer and use it in GitHub Desktop.
Save metainfa/db01be2b6bc4b4bfa8706a6a9291bc1f to your computer and use it in GitHub Desktop.
//
// To install:
// * patch evdev.lst
// * patch evdev
// * patch evdev.xml
// * patch base.lst
// * patch base
// * patch base.xml
// done!
//
// gsettings set org.gnome.desktop.input-sources xkb-options "['terminate:ctrl_alt_bksp', 'MYKB:MYKB']"
//
default partial modifier_keys
xkb_symbols "MYKB" {
replace key <CAPS> { [ Control_L, Control_L ] };
replace key <LCTL> { [ Escape ] };
modifier_map Control { <CAPS>, Control_R } ;
};
// in rules/base.xml evdev.xml
// <group allowMultipleSelection="true">
// <configItem>
// <name>MYKB</name>
// <description>My modifications</description>
// </configItem>
// <option>
// <configItem>
// <name>MYKB:MYKB</name>
// <description>my modifs</description>
// </configItem>
// </option>
// </group>
// in rules/base.lst evdev.lst
// MYKB My modifications
// MYKB:MYKB My modifications
// in rules/base evdev
// MYKB:MYKB = +MYKB(MYKB)
//
// if you're on gnome (or derivatives), then run:
// gsettings set org.gnome.desktop.input-sources xkb-options "['terminate:ctrl_alt_bksp', 'MYKB:MYKB']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment