Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polywall

This script is designed to extract main colors from an image and use them as a color scheme for configuration files of certain Linux applications.

Usage

Requirements

  • Python 3.x
  • Python libraries: argparse, logging, PIL, sklearn, numpy, configparser

Installation of Dependencies

Run the following command to install all necessary dependencies:

pip install argparse Pillow scikit-learn numpy

Commands

--image_path: Path to the input image (default: 'default.jpg')
--num_colors: Number of main colors to extract (default: 3)
--action: Action (backup/restore configuration)
--random: Use a random image from the specified directories

Usage Examples

  1. Extracting main colors and updating configurations:
python polywall.py --image_path example.jpg
  1. Backup and restore configurations:
python polywall.py --action backup
python polywall.py --action restore
  1. Setting desktop wallpaper:
python polywall.py --image_path wallpaper.jpg
  1. Using a random image for color extraction:
python polywall.py --random

Note

  • When using backup or restore action, the script saves/restores current configuration files from the 'backup' folder.
  • Now, with the --random flag, you can use random images for color extraction.

изображение изображение изображение изображение

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages