Merge branch 'master' of git+ssh://git.freedesktop.org/git/xkeyboard-config
[xorg/xkeyboard-config] / symbols / altwin
1 // $XKeyboardConfig$
2
3 // $XFree86: xc/programs/xkbcomp/symbols/altwin,v 1.5 2003/12/03 14:09:08 pascal Exp $
4
5 partial modifier_keys 
6 xkb_symbols "meta_alt" {
7     key <LALT> {        [       Alt_L,  Meta_L          ]       };
8     key <RALT> {        [       Alt_R,  Meta_R          ]       };
9     modifier_map Mod1   { Alt_L, Alt_R, Meta_L, Meta_R };
10 //  modifier_map Mod4   {};
11 };
12
13 // Control is mapped to the Win-keys (and the usual Ctrl keys).
14 partial modifier_keys 
15 xkb_symbols "ctrl_win" {
16     key <LWIN> {        [       Control_L               ]       };
17     key <RWIN> {        [       Control_R               ]       };
18     modifier_map Control { <LWIN>, <RWIN> };
19 };
20
21 // Ctrl is mapped to the Alt-keys, Alt is mapped to the Win-keys,  Win is mapped to the Ctrl-keys.
22 partial modifier_keys 
23 xkb_symbols "ctrl_alt_win" {
24     key <LALT> {        [       Control_L, Control_L            ]       };
25     key <RALT> {        [       Control_R, Control_R            ]       };
26     key <LWIN> {        [       Alt_L, Meta_L           ]       };
27     key <RWIN> {        [       Alt_R, Meta_R           ]       };
28     modifier_map Control { <RALT>, <LALT> };
29     modifier_map  Mod1 { <LWIN>, <RWIN> };
30 };
31
32
33 partial modifier_keys 
34 xkb_symbols "meta_win" {
35     key <LALT> {        [       Alt_L,  Alt_L           ]       };
36     key <RALT> {        [       Alt_R,  Alt_R           ]       };
37     key <LWIN> {        [       Meta_L                  ]       };
38     key <RWIN> {        [       Meta_R                  ]       };
39     modifier_map Mod1   { Alt_L, Alt_R };
40     modifier_map Mod4   { <META>, Meta_L, Meta_R };
41 };
42
43 partial modifier_keys 
44 xkb_symbols "left_meta_win" {
45     key <LALT> {        [       Alt_L,  Alt_L           ]       };
46     key <LWIN> {        [       Meta_L                  ]       };
47     modifier_map Mod1   { Alt_L };
48     modifier_map Mod4   { <META>, Meta_L };
49 };
50
51 partial modifier_keys 
52 xkb_symbols "super_win" {
53     key <LWIN> {        [       Super_L                 ]       };
54     key <RWIN> {        [       Super_R                 ]       };
55     modifier_map Mod4   { Super_L, Super_R };
56 };
57
58 partial modifier_keys 
59 xkb_symbols "hyper_win" {
60     key <LWIN> {        [       Hyper_L                 ]       };
61     key <RWIN> {        [       Hyper_R                 ]       };
62     modifier_map Mod4   { Hyper_L, Hyper_R };
63 };
64
65 // Use Menu for the menu key
66 partial modifier_keys 
67 xkb_symbols "menu" {
68     key <MENU> {        [       Menu            ]       };
69 };
70
71 // Layout for Tux key caps with additional right Alt key
72 partial modifier_keys 
73 xkb_symbols "alt_super_win" {
74     key <LALT> {        [       Alt_L,  Meta_L          ]       };
75     key <RWIN> {        [       Alt_R,  Meta_R          ]       };
76     key <LWIN> {        [       Super_L                 ]       };
77     key <MENU> {        [       Super_R                 ]       };
78     modifier_map Mod1   { Alt_L, Alt_R, Meta_L, Meta_R };
79     modifier_map Mod4   { Super_L, Super_R };
80 };
81
82 partial modifier_keys 
83 xkb_symbols "swap_lalt_lwin" {
84     key <LALT> {        [       Super_L                 ]       };
85     key <LWIN> {        [       Alt_L,  Meta_L          ]       };
86     modifier_map Mod1 { <LWIN> };
87     modifier_map Mod4 { <LALT> };
88 };