Gate Wayland modifier autodiscovery behind an environment variable

This commit is contained in:
Ravi R Kiran
2021-08-17 21:46:09 -05:00
parent 1b88a68b55
commit 75df0cbcf5
3 changed files with 13 additions and 4 deletions

View File

@@ -64,6 +64,13 @@ Variables that influence kitty behavior
Same as :envvar:`VISUAL`. Used if :envvar:`VISUAL` is not set.
.. envvar:: KITTY_WAYLAND_DETECT_MODIFIERS
When set to a non-empty value, kitty attempts to autodiscover XKB
modifiers under Wayland. It is possible for the autodiscovery to
fail; the default Wayland XKB mappings are used in this case.
Variables that kitty sets when running child programs
.. envvar:: LANG

View File

@@ -145,8 +145,8 @@ Modifiers
This protocol supports six modifier keys, :kbd:`shift, alt, ctrl, super, hyper
and meta` as well as :kbd:`num_lock and caps_lock`. Here :kbd:`super` is either
the *Windows/Linux* key or the *Cmd* key on mac keyboards. :kbd:`hyper` and
:kbd:`meta` are typically present only on X11 based systems with special XKB
rules. Modifiers are encoded as a bit field with::
:kbd:`meta` are typically present only on X11/Wayland based systems with
special XKB rules. Modifiers are encoded as a bit field with::
shift 0b1 (1)
alt 0b10 (2)