xkbcli-interactive-evdev.1 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. .Dd February 27, 2026
  2. .Dt XKBCLI\-INTERACTIVE\-EVDEV 1
  3. .Os
  4. .
  5. .Sh NAME
  6. .Nm "xkbcli\-interactive\-evdev"
  7. .Nd interactive debugger for X Keyboard keymaps
  8. .
  9. .Sh SYNOPSIS
  10. .Nm
  11. .Op Ar options
  12. .Op Ar KEYMAP_PATH
  13. .
  14. .Sh DESCRIPTION
  15. .Nm
  16. is a commandline tool to interactively debug XKB keymaps by listening to
  17. .Pa /dev/input/eventX
  18. evdev devices.
  19. .
  20. .Pp
  21. .Nm
  22. requires permission to open the evdev device nodes.
  23. This usually requires being the
  24. .Dq root
  25. user or belonging to the
  26. .Dq input
  27. group.
  28. .
  29. .Ppr
  30. Press the
  31. .Aq Escape
  32. key to exit.
  33. .
  34. .Pp
  35. This is a debugging tool, its behavior or output is not guaranteed to be stable.
  36. .
  37. .Bl -tag -width Ds
  38. .It Ar KEYMAP_PATH
  39. Path to a keymap file, or
  40. .Dq \-
  41. to read the standard input
  42. .
  43. .It Fl h, \-help
  44. Print help and exit
  45. .
  46. .It Fl V, \-version
  47. Print version information and exit
  48. .
  49. .It Fl \-verbose
  50. Enable verbose debugging output
  51. .
  52. .It Fl \-include Ar PATH
  53. Add the given path to the include path list.
  54. This option is order\-dependent, include paths given first are searched first.
  55. If an include path is given, the default include path list is not used.
  56. Use
  57. .Fl \-include\-defaults
  58. to add the default include paths.
  59. .
  60. .It Fl \-include\-defaults
  61. Add the default set of include directories.
  62. This option is order-dependent, include paths given first are searched first.
  63. .
  64. .It Fl \-format Ar KEYMAP_FORMAT
  65. Specify the keymap format (numeric or label, e.g.\&
  66. .Dq v1 )
  67. .
  68. .It Fl \-strict
  69. Parse using the strict mode.
  70. .
  71. .It Fl \-rules Ar RULES
  72. The XKB ruleset
  73. .
  74. .It Fl \-model Ar MODEL
  75. The XKB model
  76. .
  77. .It Fl \-layout Ar LAYOUT
  78. The XKB layout
  79. .
  80. .It Fl \-variant Ar VARIANT
  81. The XKB layout variant
  82. .
  83. .It Fl \-option Ar OPTIONS
  84. The XKB options
  85. .
  86. .It Fl \-enable\-environment\-names
  87. Allow to set the default RMLVO values via the following environment variables:
  88. .Bl -dash -compact -hang
  89. .It
  90. .Ev XKB_DEFAULT_RULES
  91. .It
  92. .Ev XKB_DEFAULT_MODEL
  93. .It
  94. .Ev XKB_DEFAULT_LAYOUT
  95. .It
  96. .Ev XKB_DEFAULT_VARIANT
  97. .It
  98. .Ev XKB_DEFAULT_OPTIONS
  99. .El
  100. Note that this option may affect the default values of the previous options.
  101. .
  102. .It Fl \-legacy\-state\-api Op Ar =true|false
  103. Use the legacy state API instead of the server machine API.
  104. .
  105. .It Fl \-controls Ar CONTROLS
  106. Enable or disable controls. It implies
  107. .Fl \-legacy\-state\-api=false
  108. \&.
  109. .Ar CONTROLS
  110. is a comma-separated-list of the following entries:
  111. .Bl -tag -compact -hang
  112. .It Ar sticky-keys
  113. Enable sticky-keys accessibility feature
  114. .It Ar sticky-keys-no-simultaneous
  115. Deactivate sticky-keys if 2 keys or more are pressed simultaneously.
  116. .It Ar sticky-keys-latch-to-lock
  117. Enable latch-to-lock option for sticky-keys
  118. .It Ar latch-simultaneous
  119. Relax the strict tapping sequence requirement operating key latches.
  120. .It Ar overlay Ns Brq 1-8
  121. Enable the corresponding keyboard overlay
  122. .El
  123. Each entry may be preceded by
  124. .Ar \+
  125. or
  126. .Ar \-
  127. in order to respectively enable or disable the corresponding control.
  128. .
  129. .It Fl \-modifiers\-mapping Ar MAPPING
  130. Use the given modifiers mapping.
  131. .Ar MAPPING
  132. is a comma-separated list of modifiers masks mappings with format
  133. .Ar source:target
  134. , e.g.
  135. .Ar Control+Alt:LevelThree,Alt:Meta
  136. \&.
  137. It implies
  138. .Fl \-legacy\-state\-api=false
  139. \&.
  140. .
  141. .It Fl \-shortcuts\-mask Ar MASK
  142. Use the given modifier mask to enable selecting a specific
  143. layout (see
  144. .Fl \-shortcuts\-mapping
  145. ) when some of these modifiers are active.
  146. The modifier mask is a plus-separated list of modifiers names, e.g.
  147. .Ar "Control+Alt+Super"
  148. \&.
  149. It implies
  150. .Fl \-legacy\-state\-api=false
  151. \&.
  152. .
  153. .It Fl \-shortcuts\-mapping Ar MAPPING
  154. Use the given layout indices mapping to enable selecting a specific
  155. layout when some modifiers are active (see
  156. .Fl \-shortcuts\-mask
  157. ).
  158. .Ar MAPPINGS
  159. is a comma-separated list of 1-indexed layout
  160. indices mappings with format
  161. .Ar source:target
  162. , e.g.
  163. .Ar 2:1,3:1
  164. \&.
  165. It implies
  166. .Fl \-legacy\-state\-api=false
  167. \&.
  168. .
  169. .It Fl \-keymap Ar FILE
  170. Specify a keymap path.
  171. This option is mutually exclusive with the RMLVO options.
  172. .
  173. .It Fl \-enable\-compose
  174. Enable Compose functionality
  175. .
  176. .It Fl \-consumed\-mode Brq xkb|gtk
  177. Set the consumed modifiers mode (default: xkb)
  178. .
  179. .It Fl \-without\-x11\-offset
  180. Don't add an offset of 8 when converting an evdev keycode to an XKB keycode.
  181. You probably don't want this option.
  182. .
  183. .It Fl \-report\-state\-changes
  184. Report changes to the keyboard state
  185. .It Fl 1, \-uniline
  186. Enable uniline event output.
  187. .
  188. .It Fl *, \-multiline
  189. Enable multiline event output.
  190. .
  191. .It Fl \-short
  192. Print shorter event output.
  193. .
  194. .It Fl \-no-state-report
  195. Do not report state changes
  196. .
  197. .El
  198. .
  199. .Sh SEE ALSO
  200. .Xr xkbcli 1 ,
  201. .Xr xkbcli\-interactive\-wayland 1 ,
  202. .Xr xkbcli\-interactive\-x11 1 ,
  203. .Lk https://xkbcommon.org "The libxkbcommon online documentation"