<solved> Cinn 17 remap Caps Lock key to SHIFT

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

<solved> Cinn 17 remap Caps Lock key to SHIFT

Post by sadhu »

I've seen lots of posts to various forums on how fiddle with the caps lock key. The easiest is to uses System Settings > Keyboard | Keyboard Layout, then click Options, then make a selection under Caps Lock Key Behaviour. Trouble is, the behaviour I want doesn't appear in the list.

I want the Caps Lock to function as a simple SHIFT key. Because often when I'm typing I hit CapsLock instead of SHIFT -- so I don't want ESC or CTRL mapped there.

I tried all kinds of things with setxkbmap -option caps:____ but haven't figured out to make it work.

if this can't be done, pls let me know, and I'll just turn it off with systems settings or setxkbmap -option caps:none


TIA

-Sadhu
Last edited by sadhu on Fri Sep 11, 2015 5:19 am, edited 1 time in total.
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Cinn 17 remap Caps Lock key to SHIFT

Post by Cosmo. »

There is an option to disable the capslock key. Not precisely what you asked for, but it would in any way prevent doing an effect, that you do not want.
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: Cinn 17 remap Caps Lock key to SHIFT

Post by sadhu »

Thanks cosmo, but I know that I can completely disable it. I know two or three ways to disable it. I can remap it to esc, ctrl, alt, or swap its function with those keys--as I mentioned in the first post.

What i want is the caps lock key to be just another shift key. Press CapsLock and a letter and get the capital letter. Release CapsLock and press a letter and get a lower case letter.

In the meantime I've disabled it. As I've mentioned above.

BTW do you happen to know the name or code for the shift key? If you do, then I could enter

Code: Select all

 setxkbmap -option caps:<code for SHIFT>
in a terminal.
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
User avatar
sadhu
Level 5
Level 5
Posts: 860
Joined: Fri Nov 22, 2013 9:48 am
Location: Sri Lanka
Contact:

Re: <solved> Cinn 17 remap Caps Lock key to SHIFT

Post by sadhu »

Found out how to do it: remap the key using xmodmap. Create a text file containing

Code: Select all

keycode  66 = Shift_L NoSymbol Shift_L
Then run the xmodmap progam:

Code: Select all

xmodemap <textfilename>
Now Shift Lock is just plain Shift_Left key.

Then I have to run that command at startup.

-Sahdu
sabbe sattā bhavantu sukhitattā. LM 21.2-64 Cinn 5.8.4
User avatar
janise
Level 2
Level 2
Posts: 56
Joined: Sat Nov 23, 2013 10:38 am

Re: <solved> Cinn 17 remap Caps Lock key to SHIFT

Post by janise »

Thank you for this solution! It worked (when xmodemap was replaced by xmodmap).

It's odd how keyboard settings offer all those other options, but not acting as the left [Shift]. It shouldn't be hard for the people who know where to look, to add that option.
Locked

Return to “Cinnamon”