Custom hotkeys for particular keyboard layouts

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
jakub_ch

Custom hotkeys for particular keyboard layouts

Post by jakub_ch »

Hi! I would like to have separate key bindings for each (or some) layouts I'm using.
I have found a way to do this by assigning a custom hotkey using the command

Code: Select all

setxkbmap -layout ##
It works fine, but then the Keyboard applet crashes. I thought there is a neater way to do things. Indeed, I found another solution. This one uses another command:

Code: Select all

gsettings set org.gnome.desktop.input-sources current #
- depending on what's the order of the layouts you have chosen in the GUI settings. But! It simply does not work.
How to make it work properly? Or is there another solution? Thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Ginir

Re: Custom hotkeys for particular keyboard layouts

Post by Ginir »

I have same problm!

I wanna add that org.gnome.desktop.sources does't contain layouts, I can say more - this conf at all contain any layouts.
In addition, there is a branch org.cinnamon.desktop which the same situation.
It seems like this configuration at all does't use in Mint.

The question is how and where stores information about layouts, and how to change it programmatically or using bash.
nerozero
Level 1
Level 1
Posts: 12
Joined: Sat Jun 03, 2017 1:36 am

Re: Custom hotkeys for particular keyboard layouts

Post by nerozero »

Same problem here,

Does anyone know how to set a shortcut to the language layout?
Locked

Return to “Cinnamon”