pc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // File must rely at /usr/share/X11/xkb/symbols/pc
  2. default partial alphanumeric_keys modifier_keys
  3. xkb_symbols "pc105" {
  4. key <ESC> { [ Escape ] };
  5. // The extra key on many European keyboards:
  6. key <LSGT> { [ Escape ] };
  7. // The following keys are common to all layouts.
  8. key <BKSL> { [ backslash, bar ] };
  9. key <SPCE> { [ space ] };
  10. include "srvr_ctrl(fkey2vt)"
  11. include "pc(editing)"
  12. include "keypad(x11)"
  13. key <BKSP> { [ BackSpace, BackSpace ] };
  14. key <TAB> { [ Tab, ISO_Left_Tab ] };
  15. key <RTRN> { [ Return ] };
  16. key <CAPS> { [ Caps_Lock ] };
  17. key <NMLK> { [ Num_Lock ] };
  18. key <LFSH> { [ Shift_L ] };
  19. key <LCTL> { [ Control_L ] };
  20. key <LWIN> { [ Super_L ] };
  21. key <RTSH> { [ Shift_R ] };
  22. key <RCTL> { [ Control_R ] };
  23. key <RWIN> { [ Super_R ] };
  24. key <MENU> { [ Menu ] };
  25. // Beginning of modifier mappings.
  26. modifier_map Shift { Shift_L, Shift_R };
  27. modifier_map Lock { Caps_Lock };
  28. modifier_map Control{ Control_L, Control_R };
  29. modifier_map Mod2 { Num_Lock };
  30. modifier_map Mod4 { Super_L, Super_R, Print };
  31. // Fake keys for virtual<->real modifiers mapping:
  32. key <LVL3> { [ ISO_Level3_Shift ] };
  33. key <MDSW> { [ Mode_switch ] };
  34. modifier_map Mod5 { <LVL3>, <MDSW> };
  35. key <ALT> { [ NoSymbol, Alt_L ] };
  36. include "altwin(meta_alt)"
  37. key <META> { [ NoSymbol, Meta_L ] };
  38. modifier_map Mod1 { <META> };
  39. key <SUPR> { [ NoSymbol, Super_L ] };
  40. modifier_map Mod4 { <SUPR> };
  41. key <HYPR> { [ NoSymbol, Hyper_L ] };
  42. modifier_map Mod4 { <HYPR> };
  43. // End of modifier mappings.
  44. key <OUTP> { [ XF86Display ] };
  45. key <KITG> { [ XF86KbdLightOnOff ] };
  46. key <KIDN> { [ XF86KbdBrightnessDown ] };
  47. key <KIUP> { [ XF86KbdBrightnessUp ] };
  48. };
  49. hidden partial alphanumeric_keys
  50. xkb_symbols "editing" {
  51. key <PRSC> {
  52. type= "PC_ALT_LEVEL2",
  53. symbols[Group1]= [ Print, Sys_Req ]
  54. };
  55. key <SCLK> { [ Scroll_Lock ] };
  56. key <PAUS> {
  57. type= "PC_CONTROL_LEVEL2",
  58. symbols[Group1]= [ Pause, Break ]
  59. };
  60. key <INS> { [ Insert ] };
  61. key <HOME> { [ Home ] };
  62. key <PGUP> { [ Prior ] };
  63. key <DELE> { [ Delete ] };
  64. key <END> { [ End ] };
  65. key <PGDN> { [ Next ] };
  66. key <UP> { [ Up ] };
  67. key <LEFT> { [ Left ] };
  68. key <DOWN> { [ Down ] };
  69. key <RGHT> { [ Right ] };
  70. };