GithubHelp home page GithubHelp logo

gullmar / kolor-generator Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 1.0 880 KB

Generate a KDE Plasma color scheme from an xresource color palette

License: MIT License

Python 100.00%
kde plasma theme color scheme palette script automatic

kolor-generator's Introduction

kolor-generator

Screenshot

This script generates a KDE Plasma color scheme from an xresource color palette, like the ones you can generate from terminal.sexy.

Requires Python 3.

Basic usage

Clone this repository in a directory of your choice.

Place the color schemes in .xresources format in "themes.xresources/". Some demo schemes are already available in the folder.

Then run the command:

python generator.py generate-all

This will generate a Plasma color theme for each .xresources file and will place them in ~/.local/share/color-schemes/. Now you just need to go to System Settings -> Colors to select the color scheme just created.

If you want to generate the color scheme just for one specific .xresources file, run:

python generator.py generate FILENAME (without .xresources)

If you want to generate a light color scheme, put -l at the end of the command:

python generator.py generate-all -l

How does it (simply) work

The script uses the two files "template-dark" and "template-light" to generate respectively dark and light schemes.

It does so by replacing each color with the closest color from the palette obtained from the .xresources file.

This means that the colors in the template affect the final result, which depends also on the number and variety of colors in the .xresources file palette.

kolor-generator's People

Stargazers

 avatar  avatar  avatar  avatar farhan. avatar Alex DeLorenzo avatar franners avatar Elia Perantoni avatar  avatar Victor Musienko avatar Savino Basanisi avatar Vinícius Gonçalves de Oliveira avatar Taylan Tatlı avatar  avatar  avatar Alessandro Fort avatar Miloslav Nosek avatar Ege Alp avatar Luis Pérez avatar Kevin Sandom avatar

Watchers

Marco Gullo avatar

Forkers

mareofnights

kolor-generator's Issues

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.