Swap LAlt and LCtrl and also set Caps to Ctrl

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to swap lctl and lalt. I also want caps to also be ctl.



enter image description here



Following various Internet advice, I have edited my /etc/X11/xorg.conf file to include the following:



Section "InputClass"
Identifier "keyboard-layout"
MatchIsKeyboard "on"
Option "XkbOptions" "ctrl:nocaps,ctrl:swap_lalt_lctl"
EndSection


This causes Caps to be remapped as Ctrl, but then LCtrl is mapped to Ctrl-Alt.



I have tried variations, including:



  1. Space or no space after the comma separating the XkbOptions

  2. Two separate lines for each Option "XkbOptions"

  3. Reversing the order in which the options are listed

I notice that my Identifier and bool for MatchIsKeyboard differ from various other resources. Identifier is the only mandatory option. And since I'm able to elicit some behavior, I deduce that keyboard-layout is valid. It seems like "on" and "True" are synonymous.



How can create the keybindings I desire?



I'm running Debian 9.2.







share|improve this question




















  • Have you looked into using xmodmap to accomplish this? I used to accomplish a similar task using xmodmap to swap some keys around.
    – Mountainerd
    Nov 20 '17 at 1:54














up vote
0
down vote

favorite












I want to swap lctl and lalt. I also want caps to also be ctl.



enter image description here



Following various Internet advice, I have edited my /etc/X11/xorg.conf file to include the following:



Section "InputClass"
Identifier "keyboard-layout"
MatchIsKeyboard "on"
Option "XkbOptions" "ctrl:nocaps,ctrl:swap_lalt_lctl"
EndSection


This causes Caps to be remapped as Ctrl, but then LCtrl is mapped to Ctrl-Alt.



I have tried variations, including:



  1. Space or no space after the comma separating the XkbOptions

  2. Two separate lines for each Option "XkbOptions"

  3. Reversing the order in which the options are listed

I notice that my Identifier and bool for MatchIsKeyboard differ from various other resources. Identifier is the only mandatory option. And since I'm able to elicit some behavior, I deduce that keyboard-layout is valid. It seems like "on" and "True" are synonymous.



How can create the keybindings I desire?



I'm running Debian 9.2.







share|improve this question




















  • Have you looked into using xmodmap to accomplish this? I used to accomplish a similar task using xmodmap to swap some keys around.
    – Mountainerd
    Nov 20 '17 at 1:54












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to swap lctl and lalt. I also want caps to also be ctl.



enter image description here



Following various Internet advice, I have edited my /etc/X11/xorg.conf file to include the following:



Section "InputClass"
Identifier "keyboard-layout"
MatchIsKeyboard "on"
Option "XkbOptions" "ctrl:nocaps,ctrl:swap_lalt_lctl"
EndSection


This causes Caps to be remapped as Ctrl, but then LCtrl is mapped to Ctrl-Alt.



I have tried variations, including:



  1. Space or no space after the comma separating the XkbOptions

  2. Two separate lines for each Option "XkbOptions"

  3. Reversing the order in which the options are listed

I notice that my Identifier and bool for MatchIsKeyboard differ from various other resources. Identifier is the only mandatory option. And since I'm able to elicit some behavior, I deduce that keyboard-layout is valid. It seems like "on" and "True" are synonymous.



How can create the keybindings I desire?



I'm running Debian 9.2.







share|improve this question












I want to swap lctl and lalt. I also want caps to also be ctl.



enter image description here



Following various Internet advice, I have edited my /etc/X11/xorg.conf file to include the following:



Section "InputClass"
Identifier "keyboard-layout"
MatchIsKeyboard "on"
Option "XkbOptions" "ctrl:nocaps,ctrl:swap_lalt_lctl"
EndSection


This causes Caps to be remapped as Ctrl, but then LCtrl is mapped to Ctrl-Alt.



I have tried variations, including:



  1. Space or no space after the comma separating the XkbOptions

  2. Two separate lines for each Option "XkbOptions"

  3. Reversing the order in which the options are listed

I notice that my Identifier and bool for MatchIsKeyboard differ from various other resources. Identifier is the only mandatory option. And since I'm able to elicit some behavior, I deduce that keyboard-layout is valid. It seems like "on" and "True" are synonymous.



How can create the keybindings I desire?



I'm running Debian 9.2.









share|improve this question











share|improve this question




share|improve this question










asked Nov 20 '17 at 1:19









Lorem Ipsum

1494




1494











  • Have you looked into using xmodmap to accomplish this? I used to accomplish a similar task using xmodmap to swap some keys around.
    – Mountainerd
    Nov 20 '17 at 1:54
















  • Have you looked into using xmodmap to accomplish this? I used to accomplish a similar task using xmodmap to swap some keys around.
    – Mountainerd
    Nov 20 '17 at 1:54















Have you looked into using xmodmap to accomplish this? I used to accomplish a similar task using xmodmap to swap some keys around.
– Mountainerd
Nov 20 '17 at 1:54




Have you looked into using xmodmap to accomplish this? I used to accomplish a similar task using xmodmap to swap some keys around.
– Mountainerd
Nov 20 '17 at 1:54















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405691%2fswap-lalt-and-lctrl-and-also-set-caps-to-ctrl%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405691%2fswap-lalt-and-lctrl-and-also-set-caps-to-ctrl%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?