logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

misc (2456B)


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