sohotcall

Programmer Workman Linux XKB

Aug 12th, 2020
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Add these lines to /usr/share/X11/xkb/symbols/us
  2.  
  3. partial alphanumeric_keys
  4. xkb_symbols "wmp" {
  5. include "us(workman)"
  6. name[Group1] = "English (Programmer Workman)";
  7. key <TLDE> { [ dollar, asciitilde ] };
  8. key <AE01> { [ ampersand, percent ] };
  9. key <AE02> { [ bracketleft, 1 ] };
  10. key <AE03> { [ braceleft, 2 ] };
  11. key <AE04> { [ braceright, 3 ] };
  12. key <AE05> { [ parenleft, 4 ] };
  13. key <AE06> { [ equal, 5 ] };
  14. key <AE07> { [ asterisk, 6 ]};
  15. key <AE08> { [ parenright, 7 ]};
  16. key <AE09> { [ plus, 8 ]};
  17. key <AE10> { [ bracketright, 9 ]};
  18. key <AE11> { [ exclam, 0 ]};
  19. key <AE12> { [ numbersign, grave ] };
  20. key <BKSP> { [ BackSpace, BackSpace ] };
  21.  
  22. // AD01..AD12 BKSL
  23. key <AD01> { [ q, Q ] };
  24. key <AD02> { [ d, D ] };
  25. key <AD03> { [ r, R ] };
  26. key <AD04> { [ w, W ] };
  27. key <AD05> { [ b, B ] };
  28. key <AD06> { [ j, J ] };
  29. key <AD07> { [ f, F ] };
  30. key <AD08> { [ u, U ] };
  31. key <AD09> { [ p, P ] };
  32. key <AD10> { [ semicolon, colon ] };
  33. key <AD11> { [ minus, underscore ] };
  34. key <AD12> { [ at, asciicircum ] };
  35. key <BKSL> { [ backslash, bar ] };
  36.  
  37. // AC01..AC11
  38. key <AC01> { [ a, A ] };
  39. key <AC02> { [ s, S ] };
  40. key <AC03> { [ h, H ] };
  41. key <AC04> { [ t, T ] };
  42. key <AC05> { [ g, G ] };
  43. key <AC06> { [ y, Y ] };
  44. key <AC07> { [ n, N ] };
  45. key <AC08> { [ e, E ] };
  46. key <AC09> { [ o, O ] };
  47. key <AC10> { [ i, I ] };
  48. key <AC11> { [ apostrophe, quotedbl ] };
  49.  
  50. // AB01..AB10
  51. key <AB01> { [ z, Z ] };
  52. key <AB02> { [ x, X ] };
  53. key <AB03> { [ m, M ] };
  54. key <AB04> { [ c, C ] };
  55. key <AB05> { [ v, V ] };
  56. key <AB06> { [ k, K ] };
  57. key <AB07> { [ l, L ] };
  58. key <AB08> { [ comma, less ] };
  59. key <AB09> { [ period, greater ] };
  60. key <AB10> { [ slash, question ] };
  61. };
  62.  
  63. // Then edit /usr/share/X11/xkb/rules/evdev.xml, add this variant after workman variant
  64. // <variant>
  65. // <configItem>
  66. // <name>wmp</name>
  67. // <description>English (Programmer Workman)</description>
  68. // </configItem>
  69. // </variant>
RAW Paste Data