diff --git a/docs/localization/keyboard-multiple-layouts.md b/docs/localization/keyboard-multiple-layouts.md index d42f5c6..14aeb7a 100644 --- a/docs/localization/keyboard-multiple-layouts.md +++ b/docs/localization/keyboard-multiple-layouts.md @@ -40,10 +40,10 @@ Alternatively, you could add the `setxkbmap` command to your profile's `.bashrc` Alternative setups ------------------ -- Configuring a keyboard shortcut in dom0 that would issue `qvm-run vname 'setxkbmap ...'` to the VM whose window is under the mouse pointer (using `xprop -id $(xdotool getactivewindow`) ). This is a bit convoluted and `qvm-run` is sometimes slow when the system is under heavy I/O usage, so the layout switch doesn't happen immediately which is annoying. -- Change the layout in dom0 with `setxkbmap`. This isn't optimal because: - - there's no way to know which layout is used when typing the screensaver's password +- Configure a keyboard shortcut in dom0 that would run `qvm-run vname 'setxkbmap ...'`, where the VM is the one whose window is under the mouse pointer (using `xprop -id $(xdotool getactivewindow`) ). An advantage is that it doesn't require tweaking VMs or templates, but this is a bit convoluted and `qvm-run` is sometimes slow when the system is under heavy I/O usage, so the layout switch doesn't happen immediately which is annoying. +- Change the layout with `setxkbmap` *only in dom0*. This isn't optimal because: + - there is no way to know which layout is used when typing the password in the xscreensaver's password field. - sometimes the keyboard layout would not be propagated to one of the VMs, requiring a reboot of the VM. -- Once Qubes OS gains support for keyboard layout propagation from dom0 to VMs (see [this official issue](https://github.com/QubesOS/qubes-issues/issues/1396)) the desktop environment's keyboard layout switcher (eg. Xfce Keyboard Layout switcher) could be used instead of `setxkbmap`. It is not clear however if this solution won't have the same issues when running `setxkbmap` in dom0 as above. +- Once Qubes OS gains support for keyboard layout propagation from dom0 to VMs (see [this official issue](https://github.com/QubesOS/qubes-issues/issues/1396)) the desktop environment's keyboard layout switcher (eg. Xfce Keyboard Layout switcher) could be used instead of `setxkbmap`. It is not clear however if this solution won't have the same issues as above. - Change the layout in dom0 with `localectl`: it's a no-go as it requires a reboot