258.17. libkscreen-6.8.2
Display configuration library over KWin's output protocols, and kscreen-doctor
6.8.2-1 · LGPL-2.1-or-later AND GPL-2.0-or-later · 1.4 SBU · 1.2 MiB, 44 files · 43_toolkits, 188 of 344 · ports/core/kde/libkscreen
Homepage: https://invent.kde.org/plasma/libkscreen
libkscreen is the display configuration library of Plasma: it reads the outputs, their modes, scale, position, rotation and priority from KWin over the kde-output-device-v2 and kde-output-management-v2 protocols, and applies a new arrangement as one change. The Display page of System Settings, the display OSD and PowerDevil use it. It also installs kscreen-doctor, which prints the current arrangement and changes it from a shell (kscreen-doctor output.HDMI-A-1.scale.1.25), and a library for DPMS.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtwayland, wayland, plasma-wayland-protocols, jq.
Required by (5): kscreen, kscreenlocker, plasma-setup, plasma-workspace, powerdevil.
Sources: libkscreen-6.8.2.tar.xz (79.5 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install libkscreen'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_QCH=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Skips building the library’s Qt translation catalogues, which the package-wide English-only rule would remove anyway (see Size and language policy).-D BUILD_QCH=OFF— No API documentation in Qt Help format; no port builds QCH.
Programs: kscreen-doctor.
Libraries: libKF6Screen.so, libKF6ScreenDpms.so.
Directories: /usr/include/KF6/KScreen, /usr/lib/cmake/KF6Screen, /usr/share/licenses/libkscreen.
The only backend built is KWin’s Wayland one; the library has no X11 backend. Its zsh completion for kscreen-doctor asks jq for the output names when it completes, and the configure warns when jq is absent, so jq is in depends for run time.