Skip to main content

Simple wallpaper manager for tiling window managers.

Project description

KADAI

Simple wallpaper manager for tiling window managers.

Run Tests

ko-fi

This project is heavily inspired by pywal with the main color generator being based off of it. KADAI is a project aimed at making theme alignment easier for the entire desktop experience, and is aimed towards users of tiling window managers (mainly i3wm). The main philosophy behind KADAI is to not edit any predefined configuration files, but instead works as an extra layer to your customised layout.

Usage

To get the usage for the command, use $ kadai --help. You can also the find the usage directly below.

usage: kadai [-h] [-v] [-q] [-g] [-i "path/to/dir"] 
			 [-p] [--override][--clear]

Generate and switch wallpaper themes

optional arguments:
  -h, --help        show this help message and exit
  -q                Allow only error logging
  -g                generate themes
  -i "path/to/dir"  the input file
  -p                Use last set theme
  --override        Override exisiting themes
  --clear           Clear all data relating to KADAI
  --backend         Switches to a different backend (hue/vibrance/k_means)
  --progress        Shows the progress of the command
  --warrenty        Shows the programs warrenty
  --light           Switch to using a light theme varient

Important Note

kadai does not work out of the box, as it relies on templates and hooks to be functional. This is covered in depth here.

Basic commands

The Update Command

This is the command that you would most likely be using the most. This command should be used to update the theme. The command is as follows.

$ kadai -i /path/to/file/or/directory

There are two ways this command can be used. The first instance is to directly apply the theme to a specified wallpaper. This would look like

$ kadai -i ~/Wallpapers/a-cool-wallpaper.png

The other way this command could be applied is to have it pick a random wallpaper from a directory. This would look like

$ kadai -i ~/Wallpapers/

The Generate Command

The update command generates the colorschemes automatically for the wallpaper parsed. However, if you wanted to save an extra few seconds every time the wallpaper is updated, it might be necessary to pre-generate the themes beforehand. The command to do this is as follows

$ kadai -gi /path/to/file/or/directory

The most often use-case scenario would be to pre-generate a folder of Wallpapers that will be randomly picked by the update command. This would look like

$ kadai -gi ~/Wallpapers/

The Preserve Command

If you are a user that likes to have a consistant wallpaper, then having the same wallpaper load up is a must. Using the preserve command allows for you to load up the last used wallpaper. The command is as follows

$ kadai -p

If you've never loaded a wallpaper with kadai before, this command will fail as it relies on applying the last used wallpaper.

Backends

There are multiple different backends currently supported which change the way the colors are generated.

Engine Description
hue For hue based generation. The generator picks the most dominant color and generates the other colors based off of that to compliment it. This stops the unknown color problem where you don't know which color is which in X
vibrance Generates colors by choosing the top 16 most dominant colors and sorting them into the top 7 most vibrant colors
k_means An experimental backend that uses k-means to find the most dominant colors, the output is very similar to vibrance backend

Installation

Dependencies

  • Linux
  • A X11 compatible terminal emulator
  • Python 3+

Notes

All tests have been performed on Ubuntu and Arch, so there is no guarentee that it will work on any other distribution.

Installation

From PyPI (The Python Package Index)

This gets updated with every release I push, which is usually when I find the script to be stable enough to work without issues.

For a system wide install (requires superuser permissions), issue the command

# pip install kadai

For a user only install, issue the command

$ pip install --user kadai

This method requires $HOME/.local/bin/ to be registered in the PATH environmental variable. This can be achieved by adding export PATH=$PATH:$HOME/.local/bin/ into your .bashrc or .profile.

From source (github repo)

Installing from source is not recommended, as it may contain bugs or problems that I haven't fixed. If you still want to go ahead issue the following commands

$ git clone https://github.com/slapelachie/kadai.git
$ cd kadai

If you want to install it system wide (requires superuser permissions), run

# pip install .

If you want to install it for the user, run

$ pip install --user .

Running Tests

If you find the need to run tests, execute the following commands

$ git clone https://github.com/slapelachie/kadai.git
$ cd kadai
$ python setup.py develop
$ pip install --user pytest
$ pytest

TODO

  • Allow printing colors to stout

Links

[Required Files] [Required Files - Applications]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

KADAI-1.0.0rc2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

KADAI-1.0.0rc2-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file KADAI-1.0.0rc2.tar.gz.

File metadata

  • Download URL: KADAI-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for KADAI-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 f7c8dd461378bf0c8ee4a624428c6c35b6272ffe39d579db9a3ea02f55eb58f1
MD5 01826cc26f5bafdd40318abb2e6d642b
BLAKE2b-256 6440d2378211bc45a0d07a361e55ab68298039aafde6bbdaf91c419051949910

See more details on using hashes here.

File details

Details for the file KADAI-1.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: KADAI-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for KADAI-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 85319045b9e9ca5d13d6aa22f7da5f535e1d3a567898675f016850490b917c85
MD5 d31468dc1bdfa0c5c421f9c842491d7e
BLAKE2b-256 6a527ae7a417c1300b8c8b0c1e81d912ebae9d6a255be4e029fa351f66948827

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page