Shortcut to change keyboard layout in linux mint (cinnamon)

7


I would like to have a keyboard shortcut that goes to the next keyboard layout I have "saved". Like "windows+space" in microsoft windows and gnome.
Thank you in advance.

user869304

Posted 2018-02-04T16:33:38.343

Reputation:

Answers

20

This was a pain to find, but if you left-click the system icon, then choose "keyboard settings" and then "Layouts", there is an "Options..." button. Click that, then a popup will show where you can scroll down to set the shortcut to just about anything:

keyboard options popup

Travis Low

Posted 2018-02-04T16:33:38.343

Reputation: 201

2

The shortcut is shift + capslock in mint 19.1

niels kristian schmidt

Posted 2018-02-04T16:33:38.343

Reputation: 21

1

I'm not sure if this is what you mean, but when you open Keyboard layouts, there are shortcuts for switching between them. Default alternative shortcut is Ctrl+Alt+K.

Samuel Novelinka

Posted 2018-02-04T16:33:38.343

Reputation: 11

0

If, like me, you don't like any of the shortcuts on the list then you can do the following:

  1. Install xkb-switch:

    1. Install the dependencies:

      • sudo apt install libxkbfile-dev
      • sudo apt install cmake
      • sudo apt install g++
      • sudo apt install git
    2. Clone the repository:

      • git clone xkb-switch
      • cd xkb-switch-master/
    3. Build and install:

      • mkdir build && cd build
      • cmake ..
      • make
      • sudo make install
    4. Update the program cache

      • sudo ldconfig
    5. Test it's working

      • Running xkb-switch -p should display gb (or whatever your current layout is)
  2. Set up your desired keyboard shortcut

    1. Navigate to keyboard settings (System Settings -> Keyboard)

    2. Switch to the "Shortcuts" tab and select "Custom Shortcuts" under "Categories"

    3. Press "Add custom shortcut", and set the command to xkb-switch -n

    4. Set the shortcut you want using the "Keyboard bindings" section (I use Crl+Alt+K)

  3. Test the shortcut to make sure it's working!


Hope this helps someone, it took me ages to find this solution.

sonrad10

Posted 2018-02-04T16:33:38.343

Reputation: 113