[arch-general] Setting xkb options (xkb_symbols) via hal?
Judging from my findings on the interwebs it is possible to pass options for the X11 keyboard via hal's policies. This seems very useful for system-wide keyboards settings. However, I'm having problems making them stick. I can do the setup via xkbcomp, and the relevant line is xkb_symbols { include "pc+gb+inet(evdev)+level3(ralt_alt)+level3(enter_switch)+compose(menu)" }; but how do I pass that onto the evdev keyboard via hal? /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
Judging from my findings on the interwebs it is possible to pass options for the X11 keyboard via hal's policies. This seems very useful for system-wide keyboards settings. However, I'm having problems making them stick.
I can do the setup via xkbcomp, and the relevant line is
xkb_symbols { include "pc+gb+inet(evdev)+level3(ralt_alt)+level3(enter_switch)+compose(menu)" };
This is what I have in /etc/hal/fdi/policy/mouse-wheel.fdi : <match key="info.product" string="TPPS/2 IBM TrackPoint"> <merge key="input.x11_options.EmulateWheel" type="string">true</merge> <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge> <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge> <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge> </match> so extrapolated from that, it should be something like <merge key="input.x11_options.XkbLayout" type="string">gb</merge> <merge key="input.x11_options.XkbOptions" type="string">compose(menu)</merge> for ex. Afaik you don't need pc and inet(evdev), since those are defaults. -- damjan
Damjan Georgievski wrote:
Judging from my findings on the interwebs it is possible to pass options for the X11 keyboard via hal's policies. This seems very useful for system-wide keyboards settings. However, I'm having problems making them stick.
I can do the setup via xkbcomp, and the relevant line is
xkb_symbols { include "pc+gb+inet(evdev)+level3(ralt_alt)+level3(enter_switch)+compose(menu)" };
This is what I have in /etc/hal/fdi/policy/mouse-wheel.fdi :
<match key="info.product" string="TPPS/2 IBM TrackPoint"> <merge key="input.x11_options.EmulateWheel" type="string">true</merge> <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge> <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge> <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge> </match>
so extrapolated from that, it should be something like <merge key="input.x11_options.XkbLayout" type="string">gb</merge> <merge key="input.x11_options.XkbOptions" type="string">compose(menu)</merge> for ex. Afaik you don't need pc and inet(evdev), since those are defaults.
Yes, that much I got working. But I'm failing to add the level3 settings (ralt_alt and enter_switch). /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
xkb_symbols { include "pc+gb+inet(evdev)+level3(ralt_alt)+level3(enter_switch)+compose(menu)" }; ... so extrapolated from that, it should be something like <merge key="input.x11_options.XkbLayout" type="string">gb</merge> <merge key="input.x11_options.XkbOptions" type="string">compose(menu)</merge>
Yes, that much I got working. But I'm failing to add the level3 settings (ralt_alt and enter_switch).
Doesn't <merge key="input.x11_options.XkbOptions" type="string">level3(ralt_alt)</merge> work? -- damjan
participants (2)
-
Damjan Georgievski
-
Magnus Therning