You are not logged in.

#1 2012-10-19 07:58:57

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

[SOLVED] KDE: Remap Caps Lock

Hi,

I've mapped the Caps Lock key as keyboard layout switch; it works, but somehow I can't disable the Caps Lock function (I've got English in all caps, unless I lower them with Shift-Caps Lock). I suppose I should check some option in Keyboard Settings->Advanced->Caps Lock Key Behavior, but I can't find the right one.

Last edited by Llama (2012-10-21 15:54:32)

Offline

#2 2012-10-20 15:34:40

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED] KDE: Remap Caps Lock

Offline

#3 2012-10-20 17:49:18

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [SOLVED] KDE: Remap Caps Lock

Eh. Thus I don't have to repeat myself? ;-(

Offline

#4 2012-10-20 21:14:28

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

Re: [SOLVED] KDE: Remap Caps Lock

That is really funny. 

You know I disliked the caps lock so much, I actually just customized my keymap and made it F13 instead.  Now I use it as a second Mod4 in X because that is what I use for the modifier in i3.

Offline

#5 2012-10-20 23:17:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] KDE: Remap Caps Lock

Mine is the compose key. (It is rather a waste - AltGr does only one thing on my machine which is enable the euro symbol because I can't figure out how to get it to serve as the compose key as well.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-10-21 02:24:32

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

Re: [SOLVED] KDE: Remap Caps Lock

I don't have an AltGr key, but I would assume it must show up in xmodmap as some kind of a Mod key.  If so, you have to remove the Mod assignment, then change the key.

Offline

#7 2012-10-21 02:32:29

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED] KDE: Remap Caps Lock

On topic again. The right Caps Lock Key Behavior checkbox turned out to be Make Caps Lock an additional Control but keep the Caps_Lock keysym. Sounds cryptic to me. Would anybody care to comment on this incantation?

Offline

#8 2012-10-21 03:04:21

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

Re: [SOLVED] KDE: Remap Caps Lock

Oh, I thought you had this figured out since you linked back to your old post.  I have no idea about KDE checkboxes, as I am a simple WM user myself.  Thus I have to do such things with xmodmap (or as stated above, modfying my keymap).  I fail to understand how you could possibly have the caps lock be a control key while still being a caps lock.  Does it not activate caps lock if you use it as a ctrl+something keycombo?

Offline

#9 2012-10-21 03:21:55

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED] KDE: Remap Caps Lock

Now that you mention it... It still doesn't work properly: Shift-CapsLock should work as the simple Caps Lock normally does, but no such luck. No locking.

Offline

#10 2012-10-21 03:34:10

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

Re: [SOLVED] KDE: Remap Caps Lock

So what is it you would like to achieve?  Is it the functionality that this checkbox apparently offers?  Or do you simply want to remap your caps lock key to something else like your title says?

Offline

#11 2012-10-21 04:06:51

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED] KDE: Remap Caps Lock

WonderWoofy wrote:

So what is it you would like to achieve?  Is it the functionality that this checkbox apparently offers?  Or do you simply want to remap your caps lock key to something else like your title says?

I'd like to achieve what I once had, even with KDE smile : CapsLock toggles the keyboard layout, Shift-CapsLock works as a substitute for Caps Lock.

The first part I've got, but not the second one.

Last edited by Llama (2012-10-21 04:08:30)

Offline

#12 2012-10-21 04:15:09

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

Re: [SOLVED] KDE: Remap Caps Lock

Yeah, okay, that is the half I have no idea about... sorry man.  Maybe a KDE user might be able to chime in here and help you out.

Offline

#13 2012-10-21 04:20:23

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED] KDE: Remap Caps Lock

lucke wrote:

Eh. Thus I don't have to repeat myself? ;-(

Sorry, lucke, your 2008 tweak doesn't work any more. Which does not come as a big surprise.

Last edited by Llama (2012-10-21 04:35:04)

Offline

#14 2012-10-21 15:53:47

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: [SOLVED] KDE: Remap Caps Lock

It's unbelievably easy smile . Start right at the Advanced; check Key(s) to change layout->Caps Lock. That's all. Caps Lock will appear in Layouts->Shortcuts for switching layout->Main shortcuts: all by itself.

Offline

#15 2012-10-21 21:26:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] KDE: Remap Caps Lock

WonderWoofy wrote:

I don't have an AltGr key, but I would assume it must show up in xmodmap as some kind of a Mod key.  If so, you have to remove the Mod assignment, then change the key.

The problem is, I can't figure out how to retain its use for the euro in this case.

@OP: I'm glad you found a solution.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#16 2012-10-21 22:54:07

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

Re: [SOLVED] KDE: Remap Caps Lock

Seeing that I don't have these keys, I am not sure, but would something like this work?

$ xmodmap -e "remove Mod3 = AltGr"
$xmodmap -e "keysym AtlGr = euro" 

This is how I originally got my caps lock to be F13 before I changed the keymap.  Just removed the lock first and then assigned it to be F13.

Offline

Board footer

Powered by FluxBB