Xkb: xkbcomp compatible file

master
Pierre Neidhardt 2014-03-16 20:48:23 +01:00
parent f1de6e29e1
commit d450498ecc
1 changed files with 72 additions and 67 deletions

View File

@ -1,20 +1,17 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// XKB Custom us keyboard // XKB us improved
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
//
// Description: This keyboard layout is based on Xorg's "us intl". We set Caps // Description: This keyboard layout is based on Xorg's "us" and inspired by
// Lock to act as Left Control. // "us(intl)". We switch Caps Lock and Left Control.
//
// Installation: copy this file to '/usr/{local/,}share/X11/xkb/symbols'. You // User setup: run `xkbcomp $thisfile $DISPLAY`.
//
// System setup: copy this file to '/usr/{local/,}share/X11/xkb/symbols'. You
// can use it by selecting the "usex" layout from Xorg configuration file, or by // can use it by selecting the "usex" layout from Xorg configuration file, or by
// using the following command: // using the following command:
// $ setxkbmap usex // $ setxkbmap usex
// //
// It is also possible to generate an xmodmap-compatible keymap with
// $ xmodmap -pke >> ~/.xmodmap_usex
// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓ // ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓
// │ ~ ~ │ ! ¡ │ @ ˝ │ # ¯ │ $ ¤ │ % ¢ │ ^ ^ │ & ¼ │ * ˛ │ ( ˘ │ ) ÷ │ _ × │ + ± ┃ ⌫ Back ┃ // │ ~ ~ │ ! ¡ │ @ ˝ │ # ¯ │ $ ¤ │ % ¢ │ ^ ^ │ & ¼ │ * ˛ │ ( ˘ │ ) ÷ │ _ × │ + ± ┃ ⌫ Back ┃
// │ ` ` │ 1 ¹ │ 2 ² │ 3 ³ │ 4 £ │ 5 € │ 6 ¥ │ 7 ½ │ 8 ¾ │ 9 │ 0 │ - ⋅ │ = ≠ ┃ space ┃ // │ ` ` │ 1 ¹ │ 2 ² │ 3 ³ │ 4 £ │ 5 € │ 6 ¥ │ 7 ½ │ 8 ¾ │ 9 │ 0 │ - ⋅ │ = ≠ ┃ space ┃
@ -32,9 +29,15 @@
// ┃Lock ⇬ ┃Meta ┃Alt ┃ ␣ Space ␣ ┃AltGr ⇮┃Menu ┃Ctrl ┃ // ┃Lock ⇬ ┃Meta ┃Alt ┃ ␣ Space ␣ ┃AltGr ⇮┃Menu ┃Ctrl ┃
// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛ // ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛
partial alphanumeric_keys xkb_keymap {
xkb_symbols "basic" {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
partial alphanumeric_keys xkb_symbols "usim" {
include "pc"
name[Group1]= "English international with dead keys extended"; name[Group1]= "English international with dead keys extended";
// Alphanumeric section // Alphanumeric section
@ -89,11 +92,13 @@ xkb_symbols "basic" {
key <AB10> { [ slash, question, paragraph, questiondown ] }; key <AB10> { [ slash, question, paragraph, questiondown ] };
key <BKSL> { [ backslash, bar, notsign, brokenbar ] }; key <BKSL> { [ backslash, bar, notsign, brokenbar ] };
key <SPCE> { [ spce, space, space, nobreakspace ] }; key <SPCE> { [ space, space, space, nobreakspace ] };
key <LSGT> { [ less, greater, lessthanequal, greaterthanequal ] }; key <LSGT> { [ less, greater, lessthanequal, greaterthanequal ] };
key <CAPS> { [ Control_L ] }; key <CAPS> { [ Control_L ] };
key <LCTL> { [ Caps_Lock ] }; key <LCTL> { [ Caps_Lock ] };
include "level3(ralt_switch)" include "level3(ralt_switch)"
include "inet(evdev)"
};
}; };