Make Super usable by remapping it to Mod3
[ucwcs-xkb.git] / README
blob9d231444fb24dc08e9fb793603c70ea1bd322994
2                              UCW XKB 2.0
3                              ===========
6 UCW XKB is a little set of keyboard layouts for XFree86 4.3.x and Xorg. These
7 maps offer new possibilities for the user. The main one is to type accented
8 characters via LEVEL_3 shift - so with ANY change to the basic keyboard layout. 
10 LEVEL_3 shift can be mapped to a key on user's choice (right Alt etc.), the
11 original idea was to map it to CapsLock key (original CapsLock function can be
12 obtained with Alt-CapsLock) which solves two problems at once: avoid the
13 accidentaly CAPSlOCK PRESS (DO YOU KNOW WHAT i MEAN?) and how to type the
14 accented characters without any modifications of the original US keymap.
17 Usage:
18 ------
20 These maps can be freely combined with the original XFree ones and both ways work:
22 setting on-the-fly via setxkbmap command  and default setting in Xorg.conf or
23 XF86Config-4 config files.
25 Example 1:
27           $ setxkbmap -rules ucw -layout ucw,cz-type            \
28                       -option "lv3:caps,grp:shift_sclk,grp_led:scroll"
30 creates a keymap with two groups changeable via Shift-ScrollLock: ucw(qwerty)
31 and cz-type(qwertz). UCW keyboard is same as original US (just with L3 shift
32 added), cz-type is a layout used by Czech typewriters. If the groups is changed
33 to the second one, the ScrollLock LED will be turned on.
35 (on the fly means that you can change the layouts without the restart of X
36 server, even the files in XKB directories changed. See the Installation chapter.)
39 Example 2:
41 default setting in an X conf file:
43         Section "InputDevice"
44                 Driver       "kbd"
45                 Identifier   "Keyboard[0]"
46                 Option       "Protocol" "Standard"
48                 Option       "XkbRules" "ucw"
49                 Option       "XkbModel" "pc104"
50                 Option       "XkbLayout"        "ucw,cz-prog"
51                 Option       "XkbOptions"       "lv3:caps,grp:shift_sclk,grp_led:scroll"
52         EndSection
55 3) Installation
56 ---------------
58 3.1) Debian (root)
60         dpkg -i ucw-xkb_2.0-1_all.deb
62 3.2) other distros (root)
64    Copy the content of directories compat/ and symbols/ to the
65 corresponding directories in system xkb directory (/etc/X11/xkb or
66 /usr/share/X11/xkb) and execute rules/setup.sh with appropriate arguments.
68 Then you can use new configuration possibilities as shown above in the examples.
69 You can immediately run setxkbmap without any restart of X server.
71 Example:
73 Suppose you are using US and DE layouts now. You can copy UCW files to
74 /etc/X11/xkb (as root) and immediately call:
76         setxkbmap -layout ucw,ucwde -option lv3:caps -option grp:shift_sclk
78 and get the same, but with L3 shift support. Now caps+a gives aacute,
79 caps+shift+a gives Aacute etc. And because DE layout has initialized Right Alt
80 as L3 Shift too, you can use both CapsLock or Right Alt.
84 5) Layout
85 ---------
87    Layout possibilities:
89         ucw             - US keyboard
90         ucwde           - DE keyboard
91         cz-prog         - CZ for programmers
92         cz-type         - CZ for typewriters
93         sk-prog         - SK for programmers
94         sk-type         - SK for typewriters
96    At all UCW layouts you can get the accented chars by pressing L3 Shift with
97 the key of the base char (or a key near this one):
99         lv3 + S         => Š
100         lv3 + e         => é
101         lv3 + w         => ě
102         lv3 + x         => ß
104 The second function of L3 Shift is used in "layouts for programmers": L3 Shift
105 pressed with some key gives the original (US) char of that key instead of the
106 accented char.
108         lv3 + ě         => 2
109         lv3 + shift + ě => @
114 6) Variants
115 -----------
117    You can freely choose qwerty OR qwertz variant for every UCW layout: ucwde
118 with qwerty, ucw with qwertz etc.
121 7) Options
122 ----------
124 7a) options to set a "change group" key
126   grp:shift_sclk        - Shift + ScrollLock (ucw)
127   grp:sclk_toggle       - Scroll Lock (xfree)
129      .... a many others from XFree/Xorg distribution
131 7b) Level3 Shift
133   lv3:caps              - CapsLock (ucw)
135   lv3:switch            - pravý Control (xfree)
136   lv3:menu_switch       - klávesa Menu (xfree)
137   lv3:win_switch        - libovolná z "Win" kláves (xfree)
138   lv3:lwin_switch       - levá "Win" klávesa (xfree)
139   lv3:rwin_switch       - pravá "Win" klávesa (xfree)
140   lv3:ralt_switch       - pravý Alt (xfree)
142 7c ) others
144    grp_led - turn on LED on the keyboard if the second group is choosen
146   grp_led:num           - NumLock
147   grp_led:caps          - CapsLock
148   grp_led:scroll        - ScrollLock
152 Milan Vancura <milan@ucw.cz> ; Fri Jan 19 11:43:45 CET 2007