Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/kbd-1.12/ drwxr-xr-x |
Viewing file: kbd.FAQ-15.html (6.76 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | 15. Examples of use of loadkeys and xmodmap
Switching Caps Lock and Control on the keyboard (assuming you use
keymaps 0-15; check with
Switching them under X only:
where .xmodmaprc contains lines
What is this about the key numbering? Backspace is 14 under Linux,
22 under X? Well, the numbering can best be regarded as arbitrary;
the Linux number of a key can be found using showkey(1), and the
X number using xev(1). Often the X number will be 8 more than the
Linux number.
Something else people like to change are the bindings of the function keys. Suppose that you want to make F12 produce the string "emacs ". Then
will do this. More explicitly, the procedure is like this:
(i) find the keycodes of the keys to be remapped, using showkey(1).
(ii) save the current keymap, make a copy and edit that:
The format of the table can be guessed by looking at the output
of dumpkeys , and is documented in keymaps(5).
When the new keymap functions as desired, you can put an invocation
in /etc/rc.local or so, to execute it automatically at boot-up.
Note that changing modifier keys is tricky, and a newbie can easily
get into a situation only an expert can get out of.
The default directory for keymaps is
(On my machine)
15.1 `I can use only one finger to type with'
"Can the Shift, Ctrl and Alt keys be made to behave as toggles?" Yes, after saying
the left Control, Shift and Alt keys will act as toggles.
The numbers involved are revealed by showkey
(and usually are 29, 97, 42, 54, 56, 100 for left and right control,
shift and alt, respectively), and the functions are
Control_Lock, Shift_Lock, Alt_Lock, ALtGr_Lock.
"What about `sticky' modifier keys?" Since version 1.3.33, the kernel knows about `sticky' modifier keys. These act on the next key pressed. So, where one earlier needed the 3-symbol sequence Shift_Lock a Shift_Lock to type `A', one can now use the 2-symbol sequence SShift_Lock a. You can say
to make the right Shift, Ctrl, Alt sticky versions of the left ones.
This will allow you to type Ctrl-Alt-Del in three keystrokes with one hand.
The keymaps line in these examples should cover all keymaps you have in use. You find what keymaps you have in use by
15.2 Sticky keys under
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0174 ]-- |