Skip to content

Instantly share code, notes, and snippets.

@roktas
Created October 14, 2023 22:44
Show Gist options
  • Save roktas/76676ae2b7520d7d36855ecbdb51ef4d to your computer and use it in GitHub Desktop.
Save roktas/76676ae2b7520d7d36855ecbdb51ef4d to your computer and use it in GitHub Desktop.
dpkg-divert --add --rename --divert /usr/share/X11/xkb/symbols/pc.orig /usr/share/X11/xkb/symbols/pc
patch <<-EOF
--- pc.orig 2020-07-09 15:13:44.428924012 +0300
+++ pc 2020-07-09 15:50:21.658899698 +0300
@@ -19,7 +19,7 @@
key <TAB> { [ Tab, ISO_Left_Tab ] };
key <RTRN> { [ Return ] };
- key <CAPS> { [ Caps_Lock ] };
+ key <CAPS> { [ backslash ] };
key <NMLK> { [ Num_Lock ] };
key <LFSH> { [ Shift_L ] };
@@ -33,7 +33,6 @@
// Beginning of modifier mappings.
modifier_map Shift { Shift_L, Shift_R };
- modifier_map Lock { Caps_Lock };
modifier_map Control{ Control_L, Control_R };
modifier_map Mod2 { Num_Lock };
modifier_map Mod4 { Super_L, Super_R };
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment