Home | History | Annotate | Line # | Download | only in compat
misc revision 1.1.1.3
      1      1.1   mrg // $XdotOrg: xc/programs/xkbcomp/compat/misc,v 1.1.4.4 2004/03/05 13:41:28 eich Exp $
      2      1.1   mrg // $Xorg: misc,v 1.3 2000/08/17 19:54:34 cpqbld Exp $
      3      1.1   mrg //
      4      1.1   mrg //
      5      1.1   mrg //
      6      1.1   mrg // $XFree86: xc/programs/xkbcomp/compat/misc,v 1.4 2003/05/15 13:31:57 pascal Exp $
      7      1.1   mrg 
      8      1.1   mrg default partial xkb_compatibility "misc"  {
      9      1.1   mrg 
     10      1.1   mrg     virtual_modifiers	Alt,Meta,Super,Hyper,ScrollLock;
     11      1.1   mrg 
     12      1.1   mrg     // Interpretations for some other useful keys
     13      1.1   mrg 
     14      1.1   mrg     interpret Terminate_Server {
     15      1.1   mrg         action = Terminate();
     16      1.1   mrg     };
     17      1.1   mrg 
     18      1.1   mrg     setMods.clearLocks= True;
     19      1.1   mrg 
     20      1.1   mrg     // Sets the "Alt" virtual modifier
     21      1.1   mrg 
     22      1.1   mrg     interpret Alt_L+Any     {
     23      1.1   mrg         //useModMapMods= level1;
     24      1.1   mrg 	virtualModifier= Alt;
     25      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     26      1.1   mrg     };
     27      1.1   mrg 
     28      1.1   mrg     interpret Alt_L	{
     29      1.1   mrg 	action = SetMods(modifiers=Alt);
     30      1.1   mrg     };
     31      1.1   mrg 
     32      1.1   mrg     interpret Alt_R+Any     {
     33      1.1   mrg         //useModMapMods= level1;
     34      1.1   mrg 	virtualModifier= Alt;
     35      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     36      1.1   mrg     };
     37      1.1   mrg 
     38      1.1   mrg     interpret Alt_R	{
     39      1.1   mrg 	action = SetMods(modifiers=Alt);
     40      1.1   mrg     };
     41      1.1   mrg 
     42      1.1   mrg     // Sets the "Meta" virtual modifier
     43      1.1   mrg 
     44      1.1   mrg     interpret Meta_L+Any     {
     45      1.1   mrg //        useModMapMods= level1;
     46      1.1   mrg 	virtualModifier= Meta;
     47      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     48      1.1   mrg     };
     49      1.1   mrg 
     50      1.1   mrg     interpret Meta_L	{
     51      1.1   mrg 	action = SetMods(modifiers=Meta);
     52      1.1   mrg     };
     53      1.1   mrg 
     54      1.1   mrg     interpret Meta_R+Any     {
     55      1.1   mrg         //useModMapMods= level1;
     56      1.1   mrg 	virtualModifier= Meta;
     57      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     58      1.1   mrg     };
     59      1.1   mrg 
     60      1.1   mrg     interpret Meta_R	{
     61      1.1   mrg 	action = SetMods(modifiers=Meta);
     62      1.1   mrg     };
     63      1.1   mrg 
     64      1.1   mrg     // Sets the "Super" virtual modifier
     65      1.1   mrg 
     66      1.1   mrg     interpret Super_L+Any     {
     67      1.1   mrg //        useModMapMods= level1;
     68      1.1   mrg 	virtualModifier= Super;
     69      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     70      1.1   mrg     };
     71      1.1   mrg 
     72      1.1   mrg     interpret Super_L	{
     73      1.1   mrg 	action = SetMods(modifiers=Super);
     74      1.1   mrg     };
     75      1.1   mrg 
     76      1.1   mrg     interpret Super_R+Any     {
     77      1.1   mrg         //useModMapMods= level1;
     78      1.1   mrg 	virtualModifier= Super;
     79      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     80      1.1   mrg     };
     81      1.1   mrg 
     82      1.1   mrg     interpret Super_R	{
     83      1.1   mrg 	action = SetMods(modifiers=Super);
     84      1.1   mrg     };
     85      1.1   mrg 
     86      1.1   mrg     // Sets the "Hyper" virtual modifier
     87      1.1   mrg 
     88      1.1   mrg     interpret Hyper_L+Any     {
     89      1.1   mrg //        useModMapMods= level1;
     90      1.1   mrg 	virtualModifier= Hyper;
     91      1.1   mrg 	action = SetMods(modifiers=modMapMods);
     92      1.1   mrg     };
     93      1.1   mrg 
     94      1.1   mrg     interpret Hyper_L	{
     95      1.1   mrg 	action = SetMods(modifiers=Hyper);
     96      1.1   mrg     };
     97      1.1   mrg 
     98      1.1   mrg     interpret Hyper_R+Any     {
     99      1.1   mrg         //useModMapMods= level1;
    100      1.1   mrg 	virtualModifier= Hyper;
    101      1.1   mrg 	action = SetMods(modifiers=modMapMods);
    102      1.1   mrg     };
    103      1.1   mrg 
    104      1.1   mrg     interpret Hyper_R	{
    105      1.1   mrg 	action = SetMods(modifiers=Hyper);
    106      1.1   mrg     };
    107      1.1   mrg 
    108      1.1   mrg     // Sets the "ScrollLock" virtual modifier and
    109      1.1   mrg     // makes it actually lock when pressed.  Sets
    110      1.1   mrg     // up a map for the scroll lock indicator.
    111      1.1   mrg     interpret Scroll_Lock+Any	{
    112      1.1   mrg 	virtualModifier= ScrollLock;
    113      1.1   mrg 	action = LockMods(modifiers=modMapMods);
    114      1.1   mrg     };
    115      1.1   mrg 
    116      1.1   mrg     include "ledscroll"
    117  1.1.1.3   mrg 	
    118  1.1.1.3   mrg     include "misc(assign_shift_left_action)"
    119      1.1   mrg };
    120  1.1.1.2  ghen 
    121  1.1.1.2  ghen partial xkb_compatibility "assign_shift_left_action"  {
    122  1.1.1.2  ghen     // Because of the irrevertable modifier mapping in symbols/pc <LFSH> is 
    123  1.1.1.2  ghen     // getting bound to the Lock modifier when using 
    124  1.1.1.2  ghen     // symbols/shift(both_capslock), creating unwanted behaviour. 
    125  1.1.1.2  ghen     // This is a quirk, to circumvent the problem.
    126  1.1.1.2  ghen     interpret Shift_L {
    127  1.1.1.2  ghen         action = SetMods(modifiers = Shift);
    128  1.1.1.2  ghen     };
    129  1.1.1.2  ghen };
    130