1
0

misc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. default partial xkb_compatibility "misc" {
  2. virtual_modifiers Alt,Meta,Super,Hyper,ScrollLock;
  3. // Interpretations for some other useful keys.
  4. interpret Terminate_Server {
  5. action = Terminate();
  6. };
  7. setMods.clearLocks= True;
  8. // Sets the "Alt" virtual modifier.
  9. interpret Alt_L+Any {
  10. //useModMapMods= level1;
  11. virtualModifier= Alt;
  12. action = SetMods(modifiers=modMapMods);
  13. };
  14. interpret Alt_L {
  15. action = SetMods(modifiers=Alt);
  16. };
  17. interpret Alt_R+Any {
  18. //useModMapMods= level1;
  19. virtualModifier= Alt;
  20. action = SetMods(modifiers=modMapMods);
  21. };
  22. interpret Alt_R {
  23. action = SetMods(modifiers=Alt);
  24. };
  25. // Sets the "Meta" virtual modifier.
  26. interpret Meta_L+Any {
  27. //useModMapMods= level1;
  28. virtualModifier= Meta;
  29. action = SetMods(modifiers=modMapMods);
  30. };
  31. interpret Meta_L {
  32. action = SetMods(modifiers=Meta);
  33. };
  34. interpret Meta_R+Any {
  35. //useModMapMods= level1;
  36. virtualModifier= Meta;
  37. action = SetMods(modifiers=modMapMods);
  38. };
  39. interpret Meta_R {
  40. action = SetMods(modifiers=Meta);
  41. };
  42. // Sets the "Super" virtual modifier.
  43. interpret Super_L+Any {
  44. //useModMapMods= level1;
  45. virtualModifier= Super;
  46. action = SetMods(modifiers=modMapMods);
  47. };
  48. interpret Super_L {
  49. action = SetMods(modifiers=Super);
  50. };
  51. interpret Super_R+Any {
  52. //useModMapMods= level1;
  53. virtualModifier= Super;
  54. action = SetMods(modifiers=modMapMods);
  55. };
  56. interpret Super_R {
  57. action = SetMods(modifiers=Super);
  58. };
  59. // Sets the "Hyper" virtual modifier.
  60. interpret Hyper_L+Any {
  61. //useModMapMods= level1;
  62. virtualModifier= Hyper;
  63. action = SetMods(modifiers=modMapMods);
  64. };
  65. interpret Hyper_L {
  66. action = SetMods(modifiers=Hyper);
  67. };
  68. interpret Hyper_R+Any {
  69. //useModMapMods= level1;
  70. virtualModifier= Hyper;
  71. action = SetMods(modifiers=modMapMods);
  72. };
  73. interpret Hyper_R {
  74. action = SetMods(modifiers=Hyper);
  75. };
  76. // Sets the "ScrollLock" virtual modifier and
  77. // makes it actually lock when pressed. Sets
  78. // up a map for the scroll lock indicator.
  79. interpret Scroll_Lock+Any {
  80. virtualModifier= ScrollLock;
  81. action = LockMods(modifiers=modMapMods);
  82. };
  83. include "ledscroll"
  84. include "misc(assign_shift_left_action)"
  85. };
  86. partial xkb_compatibility "assign_shift_left_action" {
  87. // Because of the irrevertable modifier mapping in symbols/pc,
  88. // <LFSH> is getting bound to the Lock modifier when using
  89. // symbols/shift(both_capslock), creating unwanted behaviour.
  90. // This is a quirk, to circumvent the problem.
  91. setMods.clearLocks= True;
  92. interpret Shift_L {
  93. action = SetMods(modifiers = Shift);
  94. };
  95. };