Code Monkey home page Code Monkey logo

kde-material-you-colors's Introduction

๐ŸŽจ KDE Material You Colors

Screenshot

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

AUR version PyPI - Version Dynamic JSON Badge

Screenshots

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 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 background color tint
  • 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

1. Backend

Using pypi with pipx (recommended) using this command,

pipx install kde-material-you-colors
# Optional
# pywal to theme other programs using Material You Colors
pipx inject kde-material-you-colors pywal

or pip using this command

pip install kde-material-you-colors
# Optional
# pywal to theme other programs using Material You Colors
pip install pywal

Important

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

2. Plasma widget and desktop screenshot helper (support for all wallpaper plugins)

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

User install

cmake -B build -S . -DCMAKE_INSTALL_PREFIX=~/.local -DINSTALL_PLASMOID=ON
cmake --build build
cmake --install build

System-wide install

cmake -B build -S . -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_PLASMOID=ON
cmake --build build
sudo cmake --install build

Note

You can also install the widget from the KDE Store Plasma 6 version and set -DINSTALL_PLASMOID=OFF in the command above

  1. Right click on panel > Add Widgets > Get New Widgets > Download New Plasma Widgets
  2. Search for "KDE Material You Colors"

Arch Linux

  • AUR use your preferred AUR helper

Optional features

Running from terminal to debug your configuration

  • Run kde-material-you-colors

  • Flags take precedence over configuration file, run kde-material-you-colors -h to see the list of available options

Starting/Stopping Desktop entries

Note

If not installed by your package manager, run kde-material-you-colors -cl to copy desktop entries to ~/.local/share/applications/

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

Running on Startup

After finishing the setup, you can make it run automatically on boot

  1. Copy the default configuration to ~/.config/kde-material-you-colors/config.conf:

    kde-material-you-colors -c

  2. Set the program to automatically start with Plasma:

    kde-material-you-colors -a

  3. Reboot or logout/login and test the changes

Removing from autostart

  1. Open System Settings > Startup and Shutdown
  2. Remove kde-material-you-colors by clicking on the - button.

Configuration file

  • Copy default configuration: run kde-material-you-colors -c
  • Edit ~/.config/kde-material-you-colors/config.conf
  • Run kde-material-you-colors with no arguments from terminal to test it.
  • You can view the sample configuration file here

Notes

  • 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 this the program creates two 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.

  • The wallpaper is obtained in the following order:

Bug reporting / Feature requests / Contributing

Please read the Contributing guidelines in this repository

Credits

kde-material-you-colors's People

Contributors

charlieqle avatar dawetmaster avatar luisbocanegra avatar shatteredskies avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.