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

solaris (4304B)


  1. //
  2. // Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a
  5. // copy of this software and associated documentation files (the
  6. // "Software"), to deal in the Software without restriction, including
  7. // without limitation the rights to use, copy, modify, merge, publish,
  8. // distribute, and/or sell copies of the Software, and to permit persons
  9. // to whom the Software is furnished to do so, provided that the above
  10. // copyright notice(s) and this permission notice appear in all copies of
  11. // the Software and that both the above copyright notice(s) and this
  12. // permission notice appear in supporting documentation.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  15. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  16. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
  17. // OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  18. // HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
  19. // INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
  20. // FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  21. // NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  22. // WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  23. //
  24. // Except as contained in this notice, the name of a copyright holder
  25. // shall not be used in advertising or otherwise to promote the sale, use
  26. // or other dealings in this Software without prior written authorization
  27. // of the copyright holder.
  28. //
  29. partial
  30. xkb_symbols "defaults_common" {
  31. key <MUTE> { [ XF86AudioMute ] };
  32. key <VOL-> { [ XF86AudioLowerVolume ] };
  33. key <VOL+> { [ XF86AudioRaiseVolume ] };
  34. key <POWR> { [ XF86PowerOff ] };
  35. key <STOP> { [ Cancel ] };
  36. key <AGAI> { [ Redo ] };
  37. key <PROP> { [ SunProps ] };
  38. key <UNDO> { [ Undo ] };
  39. key <FRNT> { [ SunFront ] };
  40. key <COPY> { [ XF86Copy ] };
  41. key <OPEN> { [ SunOpen ] };
  42. key <PAST> { [ XF86Paste ] };
  43. key <FIND> { [ Find ] };
  44. key <CUT> { [ XF86Cut ] };
  45. key <HELP> { [ Help ] };
  46. key <LNFD> { [ Linefeed ] };
  47. key <LALT> { [ Alt_L, Alt_L ] };
  48. key <LWIN> { [ Meta_L ] };
  49. key <RWIN> { [ Meta_R ] };
  50. // The following is needed for virtual hotkeys
  51. key <I150> { [ XF86Sleep ] };
  52. key <I160> { [ XF86ScreenSaver ] };
  53. key <I235> { [ XF86Display ] };
  54. // Common Sun Modifiers
  55. modifier_map Shift { Shift_R, Shift_L };
  56. modifier_map Mod2 { Num_Lock };
  57. modifier_map Mod4 { Meta_L, Meta_R };
  58. };
  59. default partial
  60. xkb_symbols "defaults" {
  61. include "sun_vndr/solaris(defaults_common)"
  62. modifier_map Mod1 { Alt_L };
  63. };
  64. partial
  65. xkb_symbols "defaults_type7jp" {
  66. include "sun_vndr/solaris(defaults_common)"
  67. modifier_map Mod1 { Alt_L, Alt_R };
  68. };
  69. partial
  70. xkb_symbols "sun_compat" {
  71. key <STOP> { [ L1, L1, SunStop ] };
  72. key <AGAI> { [ L2, L2, SunAgain ] };
  73. key <PROP> { [ L3, L3, SunProps ] };
  74. key <UNDO> { [ L4, L4, SunUndo ] };
  75. key <FRNT> { [ L5, L5, SunFront ] };
  76. key <COPY> { [ L6, L6, SunCopy ] };
  77. key <OPEN> { [ L7, L7, SunOpen ] };
  78. key <PAST> { [ L8, L8, SunPaste ] };
  79. key <FIND> { [ L9, L9, SunFind ] };
  80. key <CUT> { [ L10, L10, SunCut ] };
  81. // F11 & F12 are mapped to SunF36 and SunF37 since they were added
  82. // after F11-F35 were already assigned on Sun keyboards
  83. key <FK11> { [ SunF36 ], [ F11 ] };
  84. key <FK12> { [ SunF37 ], [ F12 ] };
  85. // These were added to the keyboard much later and simply got mapped
  86. // to their logical names
  87. key <HELP> { [ Help ] };
  88. key <MUTE> { [ SunAudioMute, SunVideoDegauss ] };
  89. key <VOL-> { [ SunAudioLowerVolume, SunVideoLowerBrightness ] };
  90. key <VOL+> { [ SunAudioRaiseVolume, SunVideoRaiseBrightness ] };
  91. key <POWR> { [ XF86Sleep, XF86Hibernate ] };
  92. };