Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to use multiple keyboard layouts #3578
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
shunju
Feb 13, 2018
Why not use the Xfce Keyboard Layout switcher?
To add it, right-click on the top panel > Panel > Add New Items. In the opening window, pick “Keyboard Layouts”.
Customize the switcher by right-clicking > Keyboard settings. In the opening window, pick Layout tab. There you can add new keyboard layouts, define the order in which they can be scrolled though and even define a keyboard shortcut for switching layouts.
Edit: After trying this out, I realized that this will only be a solution once #1396 is solved.
shunju
commented
Feb 13, 2018
•
|
Why not use the Xfce Keyboard Layout switcher? To add it, right-click on the top panel > Panel > Add New Items. In the opening window, pick “Keyboard Layouts”. Customize the switcher by right-clicking > Keyboard settings. In the opening window, pick Layout tab. There you can add new keyboard layouts, define the order in which they can be scrolled though and even define a keyboard shortcut for switching layouts. Edit: After trying this out, I realized that this will only be a solution once #1396 is solved. |
andrewdavidwong
added
C: doc
task
labels
Feb 14, 2018
andrewdavidwong
added this to the
Documentation/website milestone
Feb 14, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
taradiddles
Feb 14, 2018
Why not use the Xfce Keyboard Layout switcher?
As you saw, it doesn't work :)
But if #1396 is solved the graphical switcher would likely fall under case 2. ii.
taradiddles
commented
Feb 14, 2018
As you saw, it doesn't work :) But if #1396 is solved the graphical switcher would likely fall under case 2. ii. |
taradiddles
changed the title from
documentation / how to use multiple keyboard layouts
to
How to use multiple keyboard layouts
Feb 16, 2018
andrewdavidwong
added
the
help wanted
label
Mar 18, 2018
taradiddles
referenced this issue
in Qubes-Community/Contents
Apr 5, 2018
Closed
Doc suggestion: multiple keyboard layouts #16
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hugoncosta
Jun 27, 2018
I believe I've found a way around this. Follow me:
-
Go to Settings - Keyboard. Make sure you have at least 2 types of keyboard.
-
Set the "Change layout option" to something, I chose alt + shift because windows.
-
Click on "Use system defaults"
-
Restart VM
Seems odd, but it has worked for me.
hugoncosta
commented
Jun 27, 2018
|
I believe I've found a way around this. Follow me:
Seems odd, but it has worked for me. |
taradiddles commentedFeb 13, 2018
•
edited
Edited 3 times
-
taradiddles
edited May 2, 2018 (most recent)
-
taradiddles
edited Feb 14, 2018
-
taradiddles
edited Feb 13, 2018
EDIT: a draft doc is available at https://github.com/Qubes-Community/Contents/blob/master/docs/localization/keyboard-multiple-layouts.md ; with enough interest and testing, it may get into the official qubes doc
Qubes OS version:
R4.0 (should be applicable to R3 too).
Background:
The official docs only cover how to change the layout globally - ie. both for dom0 and VMs, with a single layout [1]; issue #1396 mentioned in the FAQ entry is only about keyboard layout propagation from dom0 to VMs.
Using multiple keyboard layouts and being able to quickly switch between them (*) isn't covered. One would imagine that this use-case is ubiquitous amongst qubes users communicating both in a language with a non-latin alphabet (eg. cyrillic) and in English.
(*) changing layouts has to be fast: for instance when writing mixed cyrillic/latin emails I always have to switch back and forth between layouts at least a dozen times a minute.
[1] https://www.qubes-os.org/faq/#my-keyboard-layout-settings-are-not-behaving-correctly-what-should-i-do
Proposed improvements to documentation:
Maybe we should have a page dedicated to keyboard layouts (or maybe more generally, to internationalization) and have the keyboard FAQ point to it.
The following solutions exist for the multiple layouts use-case:
setxkbmap -layout "us,bg(phonetic)" -option "grp:shifts_toggle". This workaround proved to work more or less OK over the past 2 years but wasn't optimal:qvm-run vname 'setxkbmap...'to the VM whose window is under the mouse pointer (usingxprop -id $(xdotool getactivewindow) ). I tried it, it works, but is a bit convoluted andqvm-runis sometimes slow when the system is under heavy I/O usage, so the layout switch doesn't happen immediately which is annoying.setxkbmap ...command in each VM. This works surprisingly well. The downsides are that:setxkbmapcommand, or tweaking the VM's template(s). Alternatively, maybe there's a way to issue the command from dom0 after the VM is started (I didn't investigate that yet).setxkbmap...in dom0 would probably interfere with the VMs).ideas ?