Hi,

On 08/25/2016 01:49 PM, [email protected] wrote:
Hi,
its more than three years later now, but it seems this problem is still
unsolved.
I am unable to switch between keyboard layouts in personal VM.
I am not programmer, I am just regular person who would love to be able to
send email in different language using Qubes.
Could you, please, explain in layman terms how can I activate different
layout so it really works?
Thank you very much for your exceptional work on this OS.
Solving this detail would make big difference in usability of Qubes for me
and others who are not computer geeks.
With best regards
Martin

the following workaround has been working well for me for many years, in stock fedora and now in Qubes: in a terminal in dom0, type the following (obviously replace the bg(phonetic) version with whatever layout you're using)

setxkbmap -layout "us,bg(phonetic)" -option "grp:shifts_toggle"

then you'll be able to press both shift keys to switch the layout in specific VMs.

you can automate this by putting this line in a script called by the window manager during startup.

caveats:
- no layout notification; not a problem for me, if you don't remember which layout you've enabled, in the worst case you'll type a letter, see that you're in the wrong layout, press both shift keys, and continue. It takes 1 second. - my biggest gripe: when the screensaver kicks in (xscreensaver here), there's no way to know in which layout you're typing your password. Typing your English password with - say - Cyrillic letters will obviously fail, so you'll have to press both shift keys and try again.

hope this helps

ivan

PS: copy/pasted in issue #1396 (I wasn't even aware of that issue).



Dne čtvrtek 7. března 2013 13:32:12 UTC+1 Olivier Médoc napsal(a):

Hello,

The keyboard layouts are not propagated to the appvm (I user azerty
keyboard, but when I start a VM, the keyboard is set to qwertz). This
problem only appears for fedora-18 appvms but not for the fedora-18
template.

1/ It is not possible to define default keyboard layout once the user
selected one from the qubes manager. I attached a patch to the qubes-gui
repo in order to allow selection of a 'none' layout (Qubes default
layout).

2/ I finally found the real culprit:
/etc/xdg/autostart/gnome-settings-daemon.desktop, which ends with
OnlyShowIn=GNOME;AppVM;

As a consequence, when running an appvm, gnome-settings starts (after
/etc/X11/xinit/xinitrc.d/qubes-keyboard.sh). If not specific keyboard
settings are found (which is the case if the user want to use default
qubes keymap), gnome-settings apparently set the keyboard layout to 'us'.

You can just remove AppVM from gnome-settings-daemon.desktop to fix this.


Is gnome-settings-daemon really necessary in our case ? What is the
correct way to fix this problem ?


Thanks in advance for your help,
Olivier



--
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/225851c2-c187-bb76-fff2-2e8a44622a2f%40c3i.bg.
For more options, visit https://groups.google.com/d/optout.

Reply via email to