summaryrefslogtreecommitdiff
path: root/src/SW/my-layout/document.en.rest.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/SW/my-layout/document.en.rest.txt')
-rw-r--r--src/SW/my-layout/document.en.rest.txt48
1 files changed, 33 insertions, 15 deletions
diff --git a/src/SW/my-layout/document.en.rest.txt b/src/SW/my-layout/document.en.rest.txt
index 2c90144..48c404c 100644
--- a/src/SW/my-layout/document.en.rest.txt
+++ b/src/SW/my-layout/document.en.rest.txt
@@ -13,13 +13,18 @@ I use a `Dvorak layout
Gentoo Linux PC.
I could *mostly* do with the `xorg`-provided dvorak layout, by putting
-this in my ``/etc/hal/fdi/policy/10-x11-input.fdi`` file::
-
- <match key="input.product" string="Apple, Inc Apple Keyboard">
- <merge key="input.x11_options.XkbLayout" type="string">us</merge>
- <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
- <merge key="input.x11_options.XkbVariant" type="string">dvorak</merge>
- </match>
+this in my ``xorg.conf`` file::
+
+ Section "InputClass"
+ Identifier "keyboard-generic"
+ Driver "evdev"
+ Option "XkbOptions" "compose:ralt,altwin:meta_win,terminate:ctrl_alt_bksp"
+ Option "XkbLayout" "us"
+ Option "XkbModel" "evdev"
+ Option "XkbVariant" "dvorak"
+
+ MatchIsKeyboard "on"
+ EndSection
but a few keys were wrong: the "tilde" and "section" keys were
swapped, the "fn" key was not recognized, and most function keys did
@@ -29,14 +34,27 @@ For the "fn" key, I had to `write a bit of code
<../xf86-input-evdev/>`_, but for the rest I only had to configure
`XKB` properly.
-Now my `HAL` policy file contains::
-
- <match key="input.product" string="Apple, Inc Apple Keyboard">
- <merge key="input.x11_options.XkbLayout" type="string">dakkar</merge>
- <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
- <merge key="input.x11_options.XkbVariant" type="string">dvorak-apple-al</merge>
- <merge key="input.x11_options.event_key_remap" type="string">464=118 120=210 204=211</merge>
- </match>
+Now my ``xorg.conf`` file contains::
+
+ Section "InputClass"
+ Identifier "keyboard-generic"
+ Driver "evdev"
+ Option "XkbOptions" "compose:ralt,altwin:meta_win,terminate:ctrl_alt_bksp"
+
+ MatchIsKeyboard "on"
+ EndSection
+
+ Section "InputClass"
+ Identifier "keyboard-apple-alu"
+ Driver "evdev"
+ Option "XkbLayout" "dakkar"
+ Option "XkbModel" "applealu_iso"
+ Option "XkbVariant" "dvorak-apple-al"
+ Option "event_key_remap" "464=118 120=210 204=211"
+
+ MatchIsKeyboard "on"
+ MatchProduct "Apple, Inc Apple Keyboard"
+ EndSection
and I have a ``/usr/share/X11/xkb/symbols/dakkar`` file with::