Skip to main content

🎨 KDE Material You Colors

AUR version PyPI - Version KDE Store OBS Fedora 40 OBS Fedora 41 OBS Fedora 42 OBS Fedora 43 OBS Fedora 44 OBS Fedora 45 OBS Fedora Rawhide OBS openSUSE Tumbleweed OBS openSUSE Slowroll

Automatically generate light/dark color themes for KDE (and pywal if installed) from your current wallpaper, using @T-Dynamos Python implementation of Google's Material Color Utilities

Screenshots

If you enjoy using the project consider sponsoring or donating to support the maintenance of this and my other projects.

GitHub Sponsors Ko-fi "Buy Me A Coffee" PayPal Patreon

Join our Discord / Matrix

Help/Support/Discussion about my projects

Discord Discord

Features

Plasma specific

  • Plasma Widget (Plasma 6 version)
  • Support for all Wallpaper plugins (color, image, slideshows, animated, Plasma 5.26+ dark wallpaper variants)
  • Update automatically on wallpaper change
  • Change icon themes
  • Start automatically on login
  • Make titlebar darker to match specified applications like terminals, code editors and other programs themed by pywal
  • Follow Plasma Material You Dark/Light change to work with theme schedulers like Koi
  • Plasma addons

Themeable programs

  • Konsole color scheme
    • opacity & blur control
  • Pywal support to theme other programs using Material You Colors
  • Basic KSyntaxHighlighting support (Kate, KWrite, KDevelop...)

Theming options

  • Alternative Material You color selection if the wallpaper provides more than one
  • Use your favorite color to generate Material You color schemes
  • Custom colors list used for konsole/pywal
  • Custom amount for colorfulness and brightness of theme
  • Color scheme variants from Material You (Vibrant, Monochrome, Neutral...)
  • Dark/light Color schemes (Plasma and pywal/konsole independently)
  • Set a script that will be executed on start or wallpaper/dark/light/settings change
  • Configuration file

Installing

Arch Linux

yay -S kde-material-you-colors

Maintained by me at https://aur.archlinux.org/packages/kde-material-you-colors

openSUSE Build Service packages (Fedora, openSUSE)

Install instructions: https://software.opensuse.org//download.html?project=home%3Aluisbocanegra&package=kde-material-you-colors

Packaged by me at https://build.opensuse.org/package/show/home:luisbocanegra/kde-material-you-colors

Manual install

  1. Install pipx system packages from your distribution packages.

  2. Install the backend

    For Plasma 5 this is the last version, development has switched to plasma 6

    pipx install kde-material-you-colors==1.7.1
    pipx inject kde-material-you-colors pywal
    

    For Plasma 6

    pipx install kde-material-you-colors
    pipx inject kde-material-you-colors pywal16
    # to upgrade to newer version
    pipx upgrade kde-material-you-colors
    

    Note: You may need to install gcc python-dbus-dev libglib2.0-dev system packages or their equivalent for your distribution. Additionally, installing some libraries for Pillow may be necessary, see Pillow docs

  3. Install the widget from the KDE Store Plasma 6 version | Plasma 5 version

    1. Right click on the Panel > Add Widgets > Get New Widgets > Download New Plasma Widgets
    2. Search for "KDE Material You Colors", install & add it to your Panel/Desktop.
  4. Install the screenshot helper. Optional but recommended if you use other than default Image wallpaper plugin

    Plasma 6

    Install git extra-cmake-modules system packages or their equivalent for your distribution.

    git clone https://github.com/luisbocanegra/kde-material-you-colors
    cd kde-material-you-colors
    ./install-screenshot-helper.sh
    

    NOTE: Reboot if you get The process is not authorized to take a screenshot error

    Plasma 5

    Install git extra-cmake-modules system packages or their equivalent for your distribution.

    git clone https://github.com/luisbocanegra/kde-material-you-colors -b plasma5
    cd kde-material-you-colors
    ./install-screenshot-helper.sh
    

To upgrade to a new version repeat these steps.

Note: When you upgrade te widget to a newer version it will inform you if it requires a new version of the backend.

Running

You can Start and change the configuration from the widget.

From terminal

kde-material-you-colors

Run kde-material-you-colors -h to see the list of available options (Flags take precedence over configuration file)

Starting/Stopping Desktop entries

If not installed by your install method, run kde-material-you-colors -cl

  • To start the program launch KDE Material You Colors from your applications list
  • To stop, launch Stop KDE Material You Colors from your applications list

Running on Startup

kde-material-you-colors -a

Removing from autostart

  1. Open System Settings > Autostart
  2. Remove kde-material-you-colors by clicking on the Trash button.

Configuration file

The preferred way to change the configuration is from the widget. If the configuration doesn't exist, it will be automatically created by the widget.

Editing manually

The default configuration file can be created by running kde-material-you-colors -c the location is ~/.config/kde-material-you-colors/config.conf

Run kde-material-you-colors with no arguments from terminal to test your changes in real time.

Due to Qt limitations, comments are removed from the configuration file by the widget. You can view the sample configuration file with comments here.

FAQ

Q. How does this different from Plasma's "Accent Color From Wallpaper" and "Tint all colors with accent color"?

There are some key differences:

  • Brighter accent/buttons colors
  • Option to choose another color if the wallpaper returns more than one
  • Can also apply colors to Konsole and pywal (both from wallpaper and custom ones)
  • Colors comparison https://imgur.com/a/a28uZka (kde-material-you-colors top, default tint option bottom)

Q. Why are there duplicated color schemes in System Settings?

To update color with plasma-apply-colorscheme (utility provided by KDE developers), the file containing the new color scheme must have a different name than the current one, to workaround that, this program creates two color scheme files with different names, then applies one after the other. As a result you end up with duplicated color schemes and maybe some lag while updating schemes.

Q. Can't get wallpaper colors of the default wallpaper

If you are using the default Image wallpaper plugin try changing the image to something else at least once first.

Q. Slideshow wallpaper (or any other Plugin) doesn't update colors correctly

Try enabling Only use screenshot method from the widget Advanced settings

Q. How does wallpaper detection work and why it fails sometimes?

The wallpaper is obtained in the following order:

  1. Uses the Plasma Wallpaper DBus API to read Wallpaper plugin configuration.
  2. If that does not return a usable image or color, the screenshot helper (if installed) is used.

The backend uses the KWin Scripting API and calls the screenshot helper to take a Screenshot of the Desktop view using the KWin's Screenshot plugin

Both methods are somewhat robust but there are edge cases when detection will fail, which are explained here

Q. Broken theming in Qt5 applications #220

Install plasma5-integration or the equivalent from your distribution packages.

Bug reporting / Feature requests / Contributing

Please read the Contributing guidelines in this repository

Acknowledgements

Metadata

Release files for kde-material-you-colors 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kde-material-you-colors 2.3.0
File Size Uploaded Provenance Actions
kde_material_you_colors-2.3.0.tar.gz 66.8 kB Without provenance Details for kde_material_you_colors-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kde-material-you-colors 2.3.0
File Interpreter ABI Platform Actions
kde_material_you_colors-2.3.0-py3-none-any.whl Python 3 none any Details for kde_material_you_colors-2.3.0-py3-none-any.whl

Total release size: 137.9 kB

Release files / kde_material_you_colors-2.3.0.tar.gz

Download URL kde_material_you_colors-2.3.0.tar.gz
Size 66.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e5d09acd5ea0a0228be14df84fc8d70997c45d2edec3a30dbf75eee0a1ddd5b4
BLAKE2b-256 checksum
How to use checksums
541b494e873dcc8e96e74481b78a6ecfb942e6184c7c647dee905812a5d46ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / kde_material_you_colors-2.3.0-py3-none-any.whl

Download URL kde_material_you_colors-2.3.0-py3-none-any.whl
Size 71.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3772ef1f1f3b9010d1a4dc7660d5743efd12fab477547738690f964bf6eff618
BLAKE2b-256 checksum
How to use checksums
816888f95ae73d0275ed948cdde6e43e822c39e0b7c7bea3942bafd45d616c3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for kde-material-you-colors 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page