ashwal is a fast and lightweight command-line tool for generating dynamic color schemes from images. It extracts dominant colors from your chosen image and applies them to your terminal, applications, and other system components, providing a cohesive and visually appealing desktop experience.
For more details see the Wiki page.
- Dynamic Color Generation: Extracts a vibrant 16-color palette from any image
- Advanced Backend Support: Utilizes
imagemagickorlibimagequantfor efficient color quantization - Lua Scripting Support: Create custom backends using Lua scripts for advanced color quantization
- Extensive Customization: Fine-tune saturation, contrast, alpha transparency, and theme mode (dark/light)
- Template-Based Output: Generates color schemes for various applications using customizable templates
- Automatic Application Reloading: Seamlessly integrates with your system to apply changes instantly
- Palette Preview: View the generated color palette directly in your terminal
- Random Image Selection: Automatically pick a random image from any specified directory
- Theme Management: Load predefined themes or select random themes based on mode (dark/light/all)
- Dark mode
- Light mode
ashwal requires imagemagick, libimagequant, and lua as dependencies.
Ensure the following libraries are installed on your system:
imagemagicklibimagequantlua(orliblua-dev)
Ubuntu/Debian:
sudo apt install imagemagick libimagequant-dev liblua5.4-devArch Linux:
sudo pacman -S imagemagick libimagequant luaFedora/RHEL:
sudo dnf install ImageMagick-devel libimagequant-devel lua-develmacOS
brew install imagemagick libimagequant luaInstall directly from the AUR:
yay -S ashwal
# or
paru -S ashwal- Clone the repository:
git clone https://github.com/shadowash8/ashwal.git
cdashwal- Build and install:
User-specific:
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
make
make installSystem-wide:
mkdir build && cd build
cmake ..
make
sudo make installReport issues, request features, or contribute via PRs. See the GitHub repository for more info.
Licensed under GNU GPL v3.0 — always free and open-source.
Star the project on GitHub if you find it useful!
-
cwal by nitinbhat972
-
pywal by dylanaraps












