xkbcli-compile-keymap.1 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. .Dd February 27, 2026
  2. .Dt XKBCLI\-COMPILE\-KEYMAP 1
  3. .Os
  4. .
  5. .Sh NAME
  6. .Nm "xkbcli\-compile\-keymap"
  7. .Nd compile an X Keyboard keymap
  8. .
  9. .Sh SYNOPSIS
  10. .Nm
  11. .Op Ar options
  12. .Op Ar KEYMAP_PATH
  13. .
  14. .Sh DESCRIPTION
  15. .Nm
  16. compiles and prints a keymap based on the given options.
  17. .
  18. .Bl -tag -width Ds
  19. .It Ar KEYMAP_PATH
  20. Path to a keymap file, or
  21. .Dq \-
  22. to read the standard input
  23. .
  24. .It Fl h, \-help
  25. Print help and exit
  26. .
  27. .It Fl V, \-version
  28. Print version information and exit
  29. .
  30. .It Fl \-verbose
  31. Enable verbose debugging output
  32. .
  33. .It Fl \-test
  34. Test compilation but do not print the keymap
  35. .
  36. .It Fl \-rmlvo
  37. Print the full RMLVO with the defaults filled in for missing elements
  38. in YAML format
  39. .
  40. .It Fl \-kccgst
  41. Print a keymap which only includes the KcCGST component names instead
  42. of the full keymap
  43. .
  44. .It Fl \-kccgst-yaml
  45. Print the KcCGST component names in YAML format.
  46. .
  47. .It Fl \-modmaps
  48. Print real and virtual key modmaps and modifiers encodings in YAML format.
  49. .
  50. .It Fl \-include Ar PATH
  51. Add the given path to the include path list.
  52. This option is order\-dependent, include paths given first are searched first.
  53. If an include path is given, the default include path list is not used.
  54. Use
  55. .Fl \-include\-defaults
  56. to add the default include paths.
  57. .
  58. .It Fl \-include\-defaults
  59. Add the default set of include directories.
  60. This option is order-dependent, include paths given first are searched first.
  61. .
  62. .It Fl \-input\-format Ar keymap_format
  63. The keymap format (numeric or label, e.g.\&
  64. .Dq v1 )
  65. for parsing
  66. .
  67. .It Fl \-output\-format Ar keymap_format
  68. The keymap format (numeric or label, e.g.\&
  69. .Dq v1 )
  70. for serializing
  71. .
  72. .It Fl \-format Ar keymap_format
  73. The keymap format (numeric or label, e.g.\&
  74. .Dq v1 )
  75. for both parsing and serializing
  76. .
  77. .It Fl \-input-strict
  78. Parse using the strict mode.
  79. .
  80. .It Fl \-output-strict
  81. Serialize using the strict mode.
  82. .
  83. .It Fl \-strict
  84. Parse and serialize using the strict mode.
  85. .
  86. .It Fl \-no\-pretty
  87. Disable pretty-printing for keymap serialization.
  88. .
  89. .It Fl \-drop\-unused
  90. Disable unused bits serialization.
  91. .
  92. .It Fl \-explicit\-defaults
  93. Force serializing default values.
  94. .
  95. .It Fl \-explicit\-vmods
  96. Force serializing virtual modifiers encodings.
  97. .
  98. .It Fl \-explicit\-keys
  99. Force serializing keys values.
  100. .
  101. .It Fl \-explicit\-values
  102. Force serializing all values.
  103. .
  104. .It Fl \-layouts\-mask
  105. Hexadecimal mask of the layouts indices to select for serializing.
  106. .
  107. .It Fl \-keymap Oo Ar PATH Oc , Fl \-from\-xkb Oo Ar PATH Oc
  108. Load the XKB keymap from a file, ignore RMLVO options. If
  109. .Ar PATH
  110. is empty or
  111. .Dq \- ,
  112. read the stdin.
  113. .
  114. .It Fl \-rules Ar rules
  115. The XKB ruleset
  116. .
  117. .It Fl \-model Ar model
  118. The XKB model
  119. .
  120. .It Fl \-layout Ar layout
  121. The XKB layout
  122. .
  123. .It Fl \-variant Ar variant
  124. The XKB layout variant
  125. .
  126. .It Fl \-options Ar options
  127. The XKB options
  128. .
  129. .It Fl \-enable\-environment\-names
  130. Allow to set the default RMLVO values via the following environment variables:
  131. .Bl -dash -compact -hang
  132. .It
  133. .Ev XKB_DEFAULT_RULES
  134. .It
  135. .Ev XKB_DEFAULT_MODEL
  136. .It
  137. .Ev XKB_DEFAULT_LAYOUT
  138. .It
  139. .Ev XKB_DEFAULT_VARIANT
  140. .It
  141. .Ev XKB_DEFAULT_OPTIONS
  142. .El
  143. Note that this option may affect the default values of the previous options.
  144. .
  145. .El
  146. .
  147. .Sh SEE ALSO
  148. .Xr xkbcli 1 ,
  149. .Lk https://xkbcommon.org "The libxkbcommon online documentation"