setxkbmap only works on X11/XWayland, and even on XWayland does not correctly change the Wayland keyboard layout. The "modern" way to control the system keyboard layout is via the locale1 DBus interface (or the localectl frontend). On compositors like KWin, this will update the keyboard layout on the fly, which is what we want. Implement support for setting the layout/model configs using locale1. This is enabled by default when Calamares runs under Wayland, and can be controlled via a config setting. Signed-off-by: Hector Martin <marcan@marcan.st>
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
# SPDX-FileCopyrightText: no
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
#
|
|
# NOTE: you must have ckbcomp installed and runnable
|
|
# on the live system, for keyboard layout previews.
|
|
---
|
|
# The name of the file to write X11 keyboard settings to
|
|
# The default value is the name used by upstream systemd-localed.
|
|
# Relative paths are assumed to be relative to /etc/X11/xorg.conf.d
|
|
xOrgConfFileName: "/etc/X11/xorg.conf.d/00-keyboard.conf"
|
|
|
|
# The path to search for keymaps converted from X11 to kbd format.
|
|
# Common paths for this are:
|
|
# - /lib/kbd/keymaps/xkb
|
|
# - /usr/share/kbd/keymaps/xkb
|
|
# Leave this empty if the setting does not make sense on your distribution.
|
|
#
|
|
convertedKeymapPath: "/lib/kbd/keymaps/xkb"
|
|
|
|
# Write keymap configuration to /etc/default/keyboard, usually
|
|
# found on Debian-related systems.
|
|
# Defaults to true if nothing is set.
|
|
#writeEtcDefaultKeyboard: true
|
|
|
|
# Use the Locale1 service instead of directly managing configuration files.
|
|
# This is the modern mechanism for configuring the systemwide keyboard layout,
|
|
# and works on Wayland compositors to set the current layout.
|
|
# Defaults to false on X11 and true otherwise.
|
|
#useLocale1: true
|