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

356.2. kdos-addons-1.0.0

KDOS's curated offline add-ons — wallpapers, Plasma and Konsole colour schemes, KWin scripts and widgets

Version 1.0.0, release 1
Source tree src/art/kdos-addons/
Phase 50_desktop (Desktop), 55 of 92 in build order
Licence MIT
Homepage https://github.com/kunaldawn/kdos
Build time 0.1 SBU
Installed size 129.1 KiB in 45 files
Recipe src/art/kdos-addons/kpkgbuild

About

kdos-addons is the curated set KDOS offers in place of KDE’s online “Get New…” store, which is switched off on every machine ([KDE Action Restrictions][$i] ghns=false in /usr/share/kdos/xdg/kdeglobals). It is installed with the desktop, and every file goes where Plasma already looks, so the Wallpaper, Colours, Konsole, KWin Scripts and Add Widgets pages list it from the first login with no code of KDOS’s in between. Nothing in it is switched on: the look stays the accent’s until a person picks an item, the two KWin scripts ship disabled and the two widgets wait in Add Widgets. Discover lists the set under Add-ons through its AppStream entry as installed host software; it is a kpkg port, which Discover cannot remove.

Installed under /usr/share/ What
wallpapers/org.kdos.{scanlines,blueprint,horizon,eight}/ four wallpaper packages, an SVG each for light (images/) and dark (images_dark/), so each follows Plasma’s light/dark switch
color-schemes/<Name>.colors eight KDE colour schemes: VGA, Nord, Dracula, Gruvbox Dark, Gruvbox Light, Tokyo Night, Catppuccin Mocha, Catppuccin Latte
konsole/<Name>.colorscheme the same eight palettes as Konsole schemes
kwin/scripts/org.kdos.pinpip/ keeps a browser’s picture-in-picture video above every window, on every desktop
kwin/scripts/org.kdos.activescreen/ opens each new window on the screen under the pointer
plasma/plasmoids/org.kdos.plasma.phosphorclock/ the time in the fixed-width face, its separator in the accent
plasma/plasmoids/org.kdos.plasma.focustimer/ focus periods and breaks, with a notification at each change
knotifications6/kdos-addons.notifyrc the Focus Timer’s notification, listed on the Notifications page
metainfo/io.kdos.addons.metainfo.xml the AppStream entry Discover shows, an add-on of org.kde.plasmashell, with Breeze’s preferences-desktop-theme-global as its stock icon

Everything is MIT: KDOS’s own work, and the five palettes the colour schemes are made from, whose copyright lines LICENSE.notice carries and the package installs to /usr/share/licenses/kdos-addons/.

Palette Copyright Source
VGA KDOS, from the IBM VGA text-mode palette —
Nord Arctic Ice Studio and Sven Greb https://www.nordtheme.com
Dracula Dracula Theme https://draculatheme.com
Gruvbox Dark, Gruvbox Light Pavel Pertsev https://github.com/morhetz/gruvbox
Tokyo Night Folke Lemaitre https://github.com/folke/tokyonight.nvim
Catppuccin Mocha, Catppuccin Latte Catppuccin https://github.com/catppuccin/catppuccin

Why it is in KDOS

The comment above it in script/phases/50_desktop/packages.txt:

The curated offline add-ons that stand in for "Get New…": wallpapers, Plasma and Konsole colour schemes, KWin scripts and widgets.

Sources

None: the port builds from its own directory, /kdos/src/art/kdos-addons.

Dependencies

Depends on: python3.

Required by (1): kde-plasma.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install kdos-addons'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /kdos/src/art/kdos-addons.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/kdos-addons
SRC=$SRC_ROOT/kdos-addons-1.0.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

LIBS="$PORT_SRC/../../libs"

python3 -I "$PORT_SRC/genaddons.py" --kcolor "$LIBS/libkcolor/kcolor.h" \
	--palettes "$PORT_SRC/palettes.txt" --out "$PKG/usr/share"

install_tree() {
	(cd "$1" && find . -type f) | while IFS= read -r _f; do
		install -Dm644 "$1/${_f#./}" "$2/${_f#./}"
	done
}

for _d in "$PORT_SRC"/kwin/*/; do
	_d=${_d%/}
	install_tree "$_d" "$PKG/usr/share/kwin/scripts/${_d##*/}"
done
for _d in "$PORT_SRC"/plasmoids/*/; do
	_d=${_d%/}
	install_tree "$_d" "$PKG/usr/share/plasma/plasmoids/${_d##*/}"
done

install -Dm644 "$PORT_SRC/kdos-addons.notifyrc" \
	"$PKG/usr/share/knotifications6/kdos-addons.notifyrc"
install -Dm644 "$PORT_SRC/io.kdos.addons.metainfo.xml" \
	"$PKG/usr/share/metainfo/io.kdos.addons.metainfo.xml"
install -Dm644 "$PORT_SRC/LICENSE.notice" \
	"$PKG/usr/share/licenses/kdos-addons/LICENSE.notice"

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/kdos-addons, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf kdos-addons-1.0.0-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/kdos-addons, and runs the triggers its paths call for.

Other files in the port directory, read by build.sh: LICENSE.notice, genaddons.py, io.kdos.addons.metainfo.xml, kdos-addons.notifyrc, kwin/, palettes.txt, plasmoids/.

Contents

Installed directories: /usr/share/kwin/scripts/org.kdos.activescreen, /usr/share/kwin/scripts/org.kdos.pinpip, /usr/share/licenses/kdos-addons, /usr/share/plasma/plasmoids/org.kdos.plasma.focustimer, /usr/share/plasma/plasmoids/org.kdos.plasma.phosphorclock, /usr/share/wallpapers/org.kdos.blueprint, /usr/share/wallpapers/org.kdos.eight, /usr/share/wallpapers/org.kdos.horizon, /usr/share/wallpapers/org.kdos.scanlines.

Notes

Nothing generated is committed. genaddons.py runs in build.sh with python3 alone and writes the sixteen scheme files and the eight wallpaper SVGs from palettes.txt and from libkcolor’s KCOL_SCHEMES in src/libs/libkcolor/kcolor.h, which it parses as text: the wallpapers are drawn in the KDOS accents, so an accent retuned there is retuned in every wallpaper at the next build, and editing kcolor.h rebuilds this port with every other port of KDOS’s own.

Every text role of every KDE scheme is held at WCAG AA, 4.5:1, against both backgrounds of its colour set, and every decoration at 3:1. A palette’s published colour that falls short is moved toward its set’s text colour in 1% steps until it passes, and a role that cannot reach the floor fails the build; python3 genaddons.py --kcolor … --palettes … --report prints each moved role with its ratio before and after. Low-contrast palettes move the most: Nord’s red on its own grey starts at 2.1:1, and Catppuccin Latte’s orange and green on its light ground at 2.3:1 and 2.5:1.

The view’s text holds the same 4.5:1 on the selection, both solid and with the selection laid 64% over either view background, which is how Dolphin’s and Breeze’s translucent item selection draws it under the view’s own label. Every palette publishes its selection as an accent for its own ink, not for the view’s text, which measures under 3:1 on it, so the generator walks the selection toward the view’s background until the view’s text holds on it and makes that text the selection’s ink, as the KDOS dark accents do (see the colour roles). DecorationFocus keeps the published colour, so focus rings and the other accent marks stay the palette’s own. A palette whose selection already holds keeps it and its ink.

No add-on is named with a KDOS prefix. A colour scheme called KDOS* would be taken for one of the eight accents by kdos theme and by the accent watcher in kded, and a wallpaper package called KDOS-* is the one kdos theme rewrites to the new accent’s on every desktop showing it; an add-on picked by hand must survive an accent switch, so genaddons.py refuses a palette id that starts with kdos.

The wallpapers are SVG because Plasma renders a package’s SVG at the size of each screen, so one file serves every resolution; they use only what QtSvg draws (rectangles, paths, circles, linear and radial gradients), with no filter, pattern or clip path. The KWin scripts are plain JavaScript on KWin’s scripting API, which does not change between Plasma releases the way an effect’s does, and both ship disabled (EnabledByDefault: false) for a person to turn on. The two widgets use only Plasma’s public applet API, Kirigami’s theme colours and the KDE notification module; their i18n domain is Plasma’s own plasma_applet_<id>.