12

I get used to turn Caps Lock off by Shift in Windows. That way I never need to check whether Caps Lock is on when I just want to type a first letter in uppercase. But how can I do the same in Ubuntu?

iF sHIFT CANCELS cAPS lOCK YOU RARELY NEED TO FIX YOUR TEXT TYPED IN WRONG CASE.

Evgeny Mikhaylov
  • 129
  • 1
  • 10
  • 1
    Even though your question applies to Ubuntu 14.04 and answer was about 20.04 as you last were seen 14 minutes ago, kindly accept it. BTW 55 points in 5 years is close to a record. – WinEunuuchs2Unix Apr 04 '21 at 19:46
  • I agree to accept an answer. But first I want to make sure it works! The problem is I don't have that system installed any more, so I am now installing gnome on my father's computer :-) – Evgeny Mikhaylov Apr 04 '21 at 20:07

4 Answers4

9

First install gnome-tweak-tool by using this command:

$ sudo apt-get install gnome-tweak-tool

Now open 'Tweaks' application, then go to : Keyboard & Mouse → Keyboard → Additional Layout Options → Miscellaneous compatibility options → check 'Shift cancels Caps Lock'. Close window.

Works fine in Ubuntu 20.04.

'Additional Layout Options' screenshot


Update for Ubuntu 22.04:

First install gnome-tweaks by using this command (thanks @Paul P)

$ apt-get install gnome-tweaks

Then open "Tweaks", find option within Keyboard & Mouse → Keyboard → Additional Layout Options → Compatibility options → and check 'Both Shift together enable Caps Lock; one Shift key disables it.'.

Mauricio
  • 210
  • 2
  • 9
  • 1
    This is the exact solution OP was looking for! – Levente Apr 04 '21 at 19:40
  • This is in the advanced keyboard options. I don't think one need to install anything additional to get these options. – Max N Jun 27 '22 at 11:12
  • 1
    On newer Ubuntu version (e.g. 22.04) you may have to use sudo apt-get install gnome-tweaks. – Paul P Aug 16 '22 at 12:27
  • User @walter-monroe suggested change with argument "Shift cancels Caps Lock" in Gnome Tweaks only works when Shift is pressed and released. The intended solution is for Shift to be pressed in combination with another key when starting a new sentence. which I agree, but his proposed option "Both Shift together enable Caps Lock; one Shift key disables it." do not meet that behaviour (I tested within Ubuntu 20.04.5). It think there not exist such an option currently. – Mauricio Mar 14 '23 at 13:15
2

I have also been searching for the same functionality. It's easy to use, you never have to delete those uppercase characters when you don't need them. Just by pressing Shift to start the sentence with an uppercase character, you "automatically" deactivate CapsLock.

Here are the instructions for Linux Mint:

Go to System Settings > Keyboard.

Next, choose your keyboard layout, then click Options...

Under "Miscellaneous compatibility options", check the box next to "Both Shift keys together activate Caps Lock, one Shift key deactivates".

I have no Ubuntu available to test, but hopefully the instructions are equally valid.

twan163
  • 763
0

For me, the easiest keybinding for my fingers to enable Caps Lock is to remap it to double Shift. You can achieve that using the gnome-tweaks tool mentioned in the first answer: Keyboard & Mouse -> Additional Layout Options -> Miscellaneous compatibility options -> check Both Shift together enable Caps Lock.

Image

karel
  • 114,770
0

You can do it the same way, just try it. Open any text editor (gedit, Libre Office Writer,etc) and write with Shift pressed.

As for Shift turning off Caps Lock, I don't know if there's such an option, but if you want to get notified every time Caps Lock changes try installing indicator-keylock.

sudo add-apt-repository ppa:tsbarnes/indicator-keylock

sudo apt-get update

sudo apt-get install indicator-keylock indicator-keylock-icons

Muzaffar
  • 5,597
  • 1
    I mean I want to switch Caps Lock off by just pressing and releasing Shift. There is such an option in Windows XP. In common I need to press Caps Lock once again to switch it off when it is on, that's why I must always know its state or start typing. It is inconvenient when you get used to switch it off always by just pressing Shift. – Evgeny Mikhaylov Dec 17 '14 at 10:24