This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Multiple keyboard layouts switching issues

Tags: keyboard layout keyboard layout keyboard layout
(comma "," separated)
User avatar
pterion
Registered Member
Posts
2
Karma
0
OS
Hello!

I am using at least 4 keyboard layouts and still looking for a more convenient way to switch between them. :-\

Now I user a keyboard shortcut. However, as I haven't found a way to easily assign a specific shortcut for every single layout, the shortcut only changes them in a row/circle.

1) Can one assign one keyboard shortcut for every keyboard layout? In Windows it was possible. :<

2) I also like the auto-hiding the panel. Is there a way to make it reappear shortly anytime I am switching the layout so that I could see which layout is currently set? Otherwise it is always a guesswork.

Thank you for your attention and eventual help!

Cheers,
Daniel
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
For 1) This doesn't appear to be possible in trunk ( assuming you mean a particular shortcut will switch to a particular layout ) at least not directly

For 2) This doesn't appear to be possible.

As a workaround for 1) do the following:

Open Konsole, and enter "qdbus org.kde.keyboard /Layouts getLayoutsList" then run it, keep the output for now.

Open System Settings > Shortcuts and Gestures > Custom Shortcuts. Select Edit > New > Global Shortcut > Command / URL. On the trigger tab, set your desired first layout shortcut. On Action enter: "qdbus org.kde.keyboard /Layouts setLayout <name of layout>". Replace "<name of layout>" with the first entry from the output from the first command. Repeat for the other lines.

Example: Output from command:
Code: Select all
us
uk


Two entries to be created, with the commands:
Code: Select all
qdbus org.kde.keyboard /Layouts setLayout us
qdbus org.kde.keyboard /Layouts setLayout uk


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
pterion
Registered Member
Posts
2
Karma
0
OS
Thanks for your quick reply!

However, I get the following error:
Code: Select all
qdbus org.kde.keyboard /Layouts getLayoutsList
Service 'org.kde.keyboard' does not exist.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which version of KDE do you use? That interface should be available in 4.5...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
next_ghost
Registered Member
Posts
4
Karma
0
OS
The command that works for me in 4.5.4 is
Code: Select all
qdbus org.kde.KXKB /kxkb org.kde.Keyboard.getLayoutsList


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]