On Wednesday, January 16, 2019 at 1:14:45 AM UTC-6, Ivan Mitev wrote:
> On 1/15/19 11:04 PM, John Goold wrote:
> > On Tuesday, January 15, 2019 at 9:08:48 AM UTC-6, Ivan Mitev wrote:
> >> On 1/15/19 2:42 PM, unman wrote:
> >>> On Tue, Jan 15, 2019 at 09:26:31AM +0200, Ivan Mitev wrote:
> >>>>
> >>>>
> >>>> On 1/15/19 3:36 AM, jrg.desk...@gmail.com wrote:
> >>>>> KEYBOARD
> >>>>>
> >>>>> How do I set the "compose" key on the keyboard? I have run several 
> >>>>> Linux distributions (base on Debian/Ubuntu) for several years and have 
> >>>>> had no problems setting a compose key so that I could enter 
> >>>>> diacriticals and symbols like the em-dash and the Spanish upside down 
> >>>>> exclamation and question marks.
> >>>>
> >>>> IIRC there's no gui setting in XFCE for setting a compose key. I don't
> >>>> use such key myself but I guess you can edit dom0's
> >>>> /etc/X11/xorg.conf.d/00-keyboard.conf and add XkbOptions there (eg.
> >>>> Option "XkbOptions" "compose:menu"). Run `grep "compose:"
> >>>> /usr/share/X11/xkb/rules/base.lst` to find what keys you can use.
> >>>>
> >>>
> >>> The default key combo is Shift+AltGR - enabled by default in X
> >>> You can also set XkbOptions compose: in /etc/default/keyboard
> >>
> >> I thought that /etc/default/keyboard was only for debian and
> >> derivatives. Are you sure it works for fedora ?
> > 
> > First things first :-)  When trying out keyboard changes, I wanted them to 
> > apply globally (they work just fine when I use setxkbmap..., thanks) and so 
> > made a change in dom0. Since the test change did not seem to work, I 
> > thought I would try a complete reboot (imagining that when dom0 starts up, 
> > it reads its configuration files and then doesn't reread them after that).
> 
> Indeed, tweaking X conf files will require a reboot in Qubes OS. With a
> standard distribution you'd log off, kill/restart the X server, and log
> in again, but if you do so in Qubes OS your VM apps won't be displayed
> anymore (not sure if it's a bug or a feature - I never log off anyway so
> it doesn't bother me).
> 
> 
> > What a surprise -- my mouse reverted to being left-handed! I have no idea 
> > why (other than the reboot) or why it reverted to right-handed (other than 
> > the sys-usb VM being set up). Any way, the problem has "gone away".
> 
> Magic :)
> 
> 
> > Now for the keyboard changes. As I indicated, I wanted to turn off the Caps 
> > Lock key and set a "compose" key.
> > 
> > I launched a dom0 terminal and sudo'ed to root. Then I edited the file 
> > "/etc/X11/xorg.conf.d/00-keyboard.conf" and added the XkbOptions line. It 
> > now reads:
> > 
> > Section "InputClass"
> >     Identifier "system-keyboard"
> >     MatchIsKeyboard "on"
> >     Option "XkbLayout" "us"
> >     Option "XkbOptions" "caps:none"
> > EndSection
> > 
> > After rebooting, the Caps Lock key is now off in all Qubes :-)  However, I 
> > am not sure of the syntax of this file and do not want to make an error in 
> > the file in case it makes my keyboard inactive.
> > 
> > Can I change that last Option line to:
> > 
> >         Option "XkbOptions" "caps:none compose:menu"
> > 
> > or do need to use a comma to separate the two options (could not find this 
> > information in the Wikipedia article) OR, possibly use:
> > 
> >         Option "XkbOptions" "caps:none"
> >         Option "XkbOptions" "compose:menu"
> > 
> 
> You'll have to use commas - eg.
> 
> Option "XkbOptions" "caps:none,compose:menu"
> 
> In case you mess up your X config and X won't start you should see a
> text login prompt instead the graphical login; you can login and fix
> conf files from there like you did from a terminal in dom0.

Perfect! Now my keyboard settings really are global and, as such things should 
be, set in one place.

Thank you for all the help you have been giving me.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/f4913ca1-6443-4d2a-bacc-bd38b4a7ff99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to