Skip to content

Instantly share code, notes, and snippets.

@richbs
Created March 22, 2018 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richbs/fec99cec3b90ae54c96225d89ca65dac to your computer and use it in GitHub Desktop.
Save richbs/fec99cec3b90ae54c96225d89ca65dac to your computer and use it in GitHub Desktop.
vim /usr/share/X11/xkb/symbols/command_ctrl
// Ctrl is mapped to the Command keys (and the usual Ctrl keys).
partial modifier_keys
xkb_symbols "command_ctrl_mac" {
key <LWIN> { [ Control_L ] };
key <RWIN> { [ Control_R ] };
key <LALT> { [ Super_L ] };
modifier_map Control { <LWIN>, <RWIN> };
// modifier_map Mod1 { Alt_L, Alt_R };
modifier_map Mod4 { <LALT> };
};
// Ctrl is mapped to the Alt and Alt mapped to win
partial modifier_keys
xkb_symbols "command_ctrl_pc" {
//key <LWIN> { [ Alt_L ] };
key <LALT> { [ Control_L, Control_L ] };
modifier_map Control { <LALT> };
//modifier_map Mod1 { <LWIN> };
};
~
~
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment