You are not logged in.

#1 2014-07-27 13:02:48

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 220
Website

Switching CAPS key with Ctrl Key is not working

I read  Arch wiki page on changing caps key int ctrl key : 

but even after making the necessary change I can't seem to change my caps key into ctrl key. Though I am using "Ctrl + Alt + Backspace" without any issues.

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
        Option "XkbModel" "pc104"
        Option "XkbVariant" "dvorak"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
	Option "XkbOptions" "ctrl:swapcaps"
EndSection

Offline

#2 2014-07-29 02:03:13

billows
Member
Registered: 2014-07-26
Posts: 8

Re: Switching CAPS key with Ctrl Key is not working

Does it work if you manually set this option? try

setxkbmap -layout us -option ctrl:swapcaps

If this does work, you can just add that line to your .xinitrc file to set it each time you start X.

Last edited by billows (2014-07-29 02:15:21)

Offline

#3 2014-07-29 02:45:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Switching CAPS key with Ctrl Key is not working

I'm not sure if multiple lines of the XkbOptions line is allowed.  Using localectl, this is what is generated.

% cat /etc/X11/xorg.conf.d/00-keyboard.conf 
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
        Option "XkbOptions" "caps:super, compose:prsc, terminate:ctrl_alt_bksp"
EndSection 

Offline

Board footer

Powered by FluxBB