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.

4 Answers4

10

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
  • 328
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
  • 122,292
  • 133
  • 301
  • 332
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,677