Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

306.22. kruler-26.08.2

Screen ruler — measure distances on screen in pixels, from the tray

26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-or-later · 0.5 SBU · 238.5 KiB, 25 files · 44_apps, 242 of 422 · ports/core/graphics/kruler

Homepage: https://apps.kde.org/kruler/

KRuler is an on-screen ruler: a translucent strip, horizontal or vertical, that measures distances in pixels and shows the colour under its marker, for checking the layout of a dialog or a page. It lives in the system tray between uses, through kstatusnotifieritem.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, ki18n, knotifications, kstatusnotifieritem, kwindowsystem, kxmlgui, kcrash, kdoctools.

Required by (1): kde-gear-graphics.

Sources: kruler-26.08.2.tar.xz (280.3 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install kruler'

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 WITHOUT_X11=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: kruler.

Directories: /usr/share/doc/HTML/en/kruler, /usr/share/kruler, /usr/share/licenses/kruler.

On Wayland a client cannot place its own window or keep it above others, so KWin decides where the ruler goes and the ruler is moved by dragging it like any window.