2014-05-05 12:05:33 -06:00
|
|
|
default partial xkb_compatibility "misc" {
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
virtual_modifiers Alt,Meta,Super,Hyper,ScrollLock;
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
// Interpretations for some other useful keys.
|
2009-06-06 11:52:23 -06:00
|
|
|
|
|
|
|
interpret Terminate_Server {
|
2014-05-05 12:05:33 -06:00
|
|
|
action = Terminate();
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
setMods.clearLocks= True;
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
// Sets the "Alt" virtual modifier.
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Alt_L+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
|
|
|
virtualModifier= Alt;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Alt_L {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Alt);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Alt_R+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
|
|
|
virtualModifier= Alt;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Alt_R {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Alt);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
// Sets the "Meta" virtual modifier.
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Meta_L+Any {
|
|
|
|
//useModMapMods= level1;
|
2009-06-06 11:52:23 -06:00
|
|
|
virtualModifier= Meta;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Meta_L {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Meta);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Meta_R+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
|
|
|
virtualModifier= Meta;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Meta_R {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Meta);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
// Sets the "Super" virtual modifier.
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Super_L+Any {
|
|
|
|
//useModMapMods= level1;
|
2009-06-06 11:52:23 -06:00
|
|
|
virtualModifier= Super;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Super_L {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Super);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Super_R+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
|
|
|
virtualModifier= Super;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Super_R {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Super);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
// Sets the "Hyper" virtual modifier.
|
2009-06-06 11:52:23 -06:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Hyper_L+Any {
|
|
|
|
//useModMapMods= level1;
|
2009-06-06 11:52:23 -06:00
|
|
|
virtualModifier= Hyper;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Hyper_L {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Hyper);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Hyper_R+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
//useModMapMods= level1;
|
|
|
|
virtualModifier= Hyper;
|
|
|
|
action = SetMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Hyper_R {
|
2009-06-06 11:52:23 -06:00
|
|
|
action = SetMods(modifiers=Hyper);
|
|
|
|
};
|
|
|
|
|
|
|
|
// Sets the "ScrollLock" virtual modifier and
|
|
|
|
// makes it actually lock when pressed. Sets
|
|
|
|
// up a map for the scroll lock indicator.
|
2014-05-05 12:05:33 -06:00
|
|
|
interpret Scroll_Lock+Any {
|
2009-06-06 11:52:23 -06:00
|
|
|
virtualModifier= ScrollLock;
|
|
|
|
action = LockMods(modifiers=modMapMods);
|
|
|
|
};
|
|
|
|
|
|
|
|
include "ledscroll"
|
2014-05-05 12:05:33 -06:00
|
|
|
|
2011-03-12 03:16:01 -07:00
|
|
|
include "misc(assign_shift_left_action)"
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
2011-01-10 07:25:56 -07:00
|
|
|
|
2014-05-05 12:05:33 -06:00
|
|
|
partial xkb_compatibility "assign_shift_left_action" {
|
|
|
|
// Because of the irrevertable modifier mapping in symbols/pc,
|
|
|
|
// <LFSH> is getting bound to the Lock modifier when using
|
|
|
|
// symbols/shift(both_capslock), creating unwanted behaviour.
|
2011-01-10 07:25:56 -07:00
|
|
|
// This is a quirk, to circumvent the problem.
|
|
|
|
interpret Shift_L {
|
2014-05-05 12:05:33 -06:00
|
|
|
action = SetMods(modifiers = Shift);
|
2011-01-10 07:25:56 -07:00
|
|
|
};
|
|
|
|
};
|