xkbcli-interactive-x11.1 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. .Dd February 27, 2026
  2. .Dt XKBCLI\-INTERACTIVE\-X11 1
  3. .Os
  4. .
  5. .Sh NAME
  6. .Nm "xkbcli\-interactive\-x11"
  7. .Nd interactive debugger for X Keyboard keymaps
  8. .
  9. .Sh SYNOPSIS
  10. .Nm
  11. .Op Ar options
  12. .
  13. .Sh DESCRIPTION
  14. .Nm
  15. is a commandline tool to interactively debug XKB keymaps by listening to X11 events.
  16. .
  17. .Pp
  18. This requires an X server to be running.
  19. .
  20. .Pp
  21. Press the
  22. .Aq Escape
  23. key to exit.
  24. .
  25. .Pp
  26. This is a debugging tool, its behavior or output is not guaranteed to be stable.
  27. .
  28. .Bl -tag -width Ds
  29. .It Fl h, \-help
  30. Print help and exit
  31. .
  32. .It Fl V, \-version
  33. Print version information and exit
  34. .
  35. .It Fl \-local\-state
  36. Enable local state handling and ignore modifiers/layouts state updates
  37. from the X11 server.
  38. .
  39. .It Fl \-legacy\-state\-api Op Ar =true|false
  40. Use the legacy state API instead of the server machine API.
  41. It implies
  42. .Fl \-local\-state
  43. if explicitly disabled.
  44. .
  45. .It Fl \-controls Ar CONTROLS
  46. Enable or disable controls. It implies
  47. .Fl \-local\-state
  48. and
  49. .Fl \-legacy\-state\-api=false
  50. \&.
  51. .Ar CONTROLS
  52. is a comma-separated-list of the following entries:
  53. .Bl -tag -compact -hang
  54. .It Ar sticky-keys
  55. Enable sticky-keys accessibility feature
  56. .It Ar sticky-keys-no-simultaneous
  57. Deactivate sticky-keys if 2 keys or more are pressed simultaneously.
  58. .It Ar sticky-keys-latch-to-lock
  59. Enable latch-to-lock option for sticky-keys
  60. .It Ar latch-simultaneous
  61. Relax the strict tapping sequence requirement operating key latches.
  62. .It Ar overlay Ns Brq 1-2
  63. Enable the corresponding keyboard overlay
  64. .El
  65. Each entry may be preceded by
  66. .Ar \+
  67. or
  68. .Ar \-
  69. in order to respectively enable or disable the corresponding control.
  70. .
  71. .It Fl \-modifiers\-mapping Ar MAPPING
  72. Use the given modifiers mapping.
  73. .Ar MAPPING
  74. is a comma-separated list of modifiers masks mappings with format
  75. .Ar source:target
  76. , e.g.
  77. .Ar Control+Alt:LevelThree,Alt:Meta
  78. \&.
  79. It implies
  80. .Fl \-local\-state
  81. and
  82. .Fl \-legacy\-state\-api=false
  83. \&.
  84. .
  85. .It Fl \-shortcuts\-mask Ar MASK
  86. Use the given modifier mask to enable selecting a specific
  87. layout (see
  88. .Fl \-shortcuts\-mapping
  89. ) when some of these modifiers are active.
  90. The modifier mask is a plus-separated list of modifiers names, e.g.
  91. .Ar "Control+Alt+Super"
  92. \&.
  93. It implies
  94. .Fl \-local\-state
  95. and
  96. .Fl \-legacy\-state\-api=false
  97. \&.
  98. .
  99. .It Fl \-shortcuts\-mapping Ar MAPPING
  100. Use the given layout indices mapping to enable selecting a specific
  101. layout when some modifiers are active (see
  102. .Fl \-shortcuts\-mask
  103. ).
  104. .Ar MAPPINGS
  105. is a comma-separated list of 1-indexed layout
  106. indices mappings with format
  107. .Ar source:target
  108. , e.g.
  109. .Ar 2:1,3:1
  110. \&. It implies
  111. .Fl \-local\-state
  112. and
  113. .Fl \-legacy\-state\-api=false
  114. \&.
  115. .
  116. .It Fl \-keymap Oo Ar PATH Oc
  117. Load the XKB keymap from a file instead of the keymap from the compositor.
  118. It implies
  119. .Fl \-local\-state
  120. \&. If
  121. .Ar PATH
  122. is empty or
  123. .Dq \- ,
  124. read the stdin.
  125. .
  126. .It Fl \-format Ar KEYMAP_FORMAT
  127. Specify the keymap format (numeric or label, e.g.\&
  128. .Dq v1 )
  129. .
  130. .It Fl \-strict
  131. Parse using the strict mode.
  132. .
  133. .It Fl \-enable\-compose
  134. Enable Compose functionality
  135. .
  136. .It Fl \-verbose
  137. Enable verbose debugging output
  138. .
  139. .It Fl 1, \-uniline
  140. Enable uniline event output
  141. .
  142. .It Fl *, \-multiline
  143. Enable multiline event output
  144. .
  145. .It Fl \-consumed\-mode Brq xkb|gtk
  146. Set the consumed modifiers mode (default: xkb)
  147. .
  148. .It Fl \-no-state-report
  149. Do not report state changes
  150. .El
  151. .
  152. .Sh SEE ALSO
  153. .Xr xkbcli 1 ,
  154. .Xr xkbcli\-interactive\-evdev 1 ,
  155. .Xr xkbcli\-interactive\-wayland 1 ,
  156. .Lk https://xkbcommon.org "The libxkbcommon online documentation"