347.11. plasma-keyboard-6.8.2
Plasma's on-screen keyboard — a Wayland input method over Qt Virtual Keyboard, for the session and the login screen
6.8.2-1 · (LicenseRef-Qt-Commercial OR GPL-3.0-only) AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-2.1-only AND GPL-2.0-or-later · 1.4 SBU · 2.6 MiB, 332 files · 50_desktop, 24 of 92 · ports/core/input/plasma-keyboard
Homepage: https://invent.kde.org/plasma/plasma-keyboard
Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:
The on-screen keyboard, an input method KWin starts for the session and the login screen.
plasma-keyboard is Plasma’s on-screen keyboard. It is a Wayland input method built on qt6-qtvirtualkeyboard, and KWin shows it whenever a text field takes focus on a touch screen or when it is asked for.
- At the login screen it is the input method: SDDM’s KWin is started with
--inputmethod plasma-keyboard(/etc/sddm.conf.d/00-kdos.conf), so a machine with no physical keyboard can still type a password. - In a desktop session the input method is fcitx5. A person who wants the on-screen keyboard instead picks it on System Settings’ Virtual Keyboard page, which writes the choice to
~/.config/kwinrc; see Input methods.
Its settings page, kcm_plasmakeyboard, picks the layouts and the key feedback.
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtvirtualkeyboard, qt6-qtwayland, kcoreaddons, ki18n, kcmutils, kconfig, kcrash, kirigami, kirigami-addons, kitemmodels, libplasma, libxkbcommon, wayland, wayland-protocols.
Required by (2): kde-plasma, plasma-setup.
Sources: plasma-keyboard-6.8.2.tar.xz (132.4 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install plasma-keyboard'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D PLASMA_KEYBOARD_SOUND_ENABLED=ON \
-D PLASMA_KEYBOARD_VIBRATION_ENABLED=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).-D PLASMA_KEYBOARD_SOUND_ENABLED=ON— Compile in the key-press click. The option upstream declares isPLASMA_KEYBOARD_SOUNDS_ENABLED, butsrc/CMakeLists.txtand the generatedconfig-plasma-keyboard.hreadPLASMA_KEYBOARD_SOUND_ENABLED, which nothing sets; left unset, the sound file is not built in, the program turns the setting off each time it starts, and the Sound box on the settings page does nothing. The click stays off until somebody ticks that box.-D PLASMA_KEYBOARD_VIBRATION_ENABLED=OFF— No haptic feedback. Vibration is a request to theorg.sigxcpu.Feedbackservice (feedbackd) on the session bus, which is not a port; built in, and on by default in the settings, every key press would make a D-Bus call to a name nobody owns.
Programs: plasma-keyboard.
Directories: /usr/lib/qt6/qml/QtQuick/VirtualKeyboard/Styles/Breeze, /usr/lib/qt6/qml/org/kde/plasma/keyboard, /usr/share/licenses/plasma-keyboard, /usr/share/plasma/keyboard.
It speaks the input-method-v1 protocol and Qt Wayland’s private client API, so it needs qt6-qtwayland, wayland and wayland-protocols at build time, and links Qt’s private headers: a Qt release change means rebuilding it with the rest of the Qt set.
The click is played by Qt Virtual Keyboard’s own sound effect, which exists only where qt6-qtvirtualkeyboard is built with Qt Multimedia; without it the Sound box is accepted and the keyboard stays silent.
The settings page has a media-centre layout that imports the Plasma Bigscreen shell’s QML; Bigscreen is not ported, and the desktop layout of the page is the one loaded.