🎨 Paletted
A lightweight CLI utility for dynamic theme generation. It derives color palettes from live wallpapers or images and applies them across the system through configurable templates and appliers
Preview
How It Works
- Extract a frame from the wallpaper (or use the image directly)
- Generate a Material Design color palette with Matugen
- Apply colors to templates and appliers
- Execute configured commands and wallpaper backend actions
Installation
Dependencies:
python >= 3.11magentumffmpegpipx
pipx install paletted
Configuration
paletted/
├── appliers/
│ └── hyprland.py # Custom theme applier
├── templates/
│ └── hyprland.lua.template # Example configuration template
├── config.toml # Main configuration file
└── another_config.toml # Included configuration module
Main Configuration
The main configuration file contains global settings, notification options, wallpaper backends, and imported modules
# config.toml
# Include external modular configurations
[[include]]
target = "./another_config.toml"
[settings]
# Fallback static image path (extracted frame or symlink) for tools like hyprlock
source_image = "./wallpaper.png"
[notification]
enable = true
summary = "Paletted-Themes"
text = "Theme applied. Wallpaper updated"
# Executed when the wallpaper source is a video
[[backend]]
type = "video"
exec = "smooth-slapper %wallpaper_path%"
# Executed when the wallpaper source is a static image
[[backend]]
type = "image"
exec = "smooth-slapper %wallpaper_path%"
# Target package application mapping
[[package]]
name = "hyprland"
template = "hyprland.conf.template"
target = "~/.config/hypr/theme.conf"
exec = [["hyprctl", "reload"], ["echo", "Goida"]]
# Theme applier name without .py extension
[[appliers]]
applier = "hyprland"
Theme template
Colors can be referenced using placeholders and modifiers:
{{color.modifier(factory)}}
where color is the base color, modifier is the transformation to apply, and factory is the modifier parameter
Modifiers:
.alpha(factor) -> Sets opacity (0.0 to 1.0) | Example: {primary.alpha(0.5)}
.dark(factor) -> Darkens the color (factor > 1) | Example: {primary.dark(1.2)}
.light(factor) -> Lightens the color (factor > 1) | Example: {secondary.light(1.5)}
.sat(factor) -> Modulates saturation (0.0 - 5) | Example: {tertiary.sat(0.5)}
.rgb -> Formats to CSS rgb/rgba string | Example: {surface.rgb}
.strip -> Removes the '#' prefix symbol | Example: {error.strip}
Palette Colors:
# Primary
accent = "{primary}"
on_accent = "{on_primary}"
container = "{primary_container}"
on_container = "{on_primary_container}"
# Secondary
accent = "{secondary}"
on_accent = "{on_secondary}"
container = "{secondary_container}"
on_container = "{on_secondary_container}"
# Tertiary
accent = "{tertiary}"
on_accent = "{on_tertiary}"
container = "{tertiary_container}"
on_container = "{on_tertiary_container}"
# Surface
background = "{background}"
on_background = "{on_background}"
surface = "{surface}"
on_surface = "{on_surface}"
variant = "{surface_variant}"
on_variant = "{on_surface_variant}"
# Borders
outline = "{outline}"
outline_variant = "{outline_variant}"
# Error
accent = "{error}"
on_accent = "{on_error}"
container = "{error_container}"
on_container = "{on_error_container}"
# Inverse
surface = "{inverse_surface}"
on_surface = "{inverse_on_surface}"
primary = "{inverse_primary}"
Example:
-- hyprland.lua.template
local Colors = {
active_1 = "{{on_secondary}}", -- = "#362d3e"
active_2 = "{{outline}}", -- = "#968e98"
inactive = "{{surface}}", -- = "#151316"
shadow = "{{outline.alpha(0.3)}}", -- = "#968e984c"
}
return Colors
Custom appliers
Appliers provide a programmatic way to generate output when template-based substitution is not flexible enough
Each Applier must define a function whose name matches the file name:
# hyprland.py
def hyprland(color_parser) -> None:
print(color_parser("primary.rgb"))
The provided color_parser callable can be used to resolve any supported color placeholder
Usage
Generate and apply a theme:
palleted apply /path/to/wallpaper # --source-index 0..3 (usually) --config-dir /path/to/paletted_configs/
Restore the previous wallpaper:
palleted restore # --config-dir /path/to/paletted_configs/
Why Paletted?
Unlike traditional wallpaper-based theme generators, Paletted supports both static images and video wallpapers. It combines template-based configuration with custom Python appliers, making it possible to handle complex theming workflows that go beyond simple color substitution.
Designed for highly customizable Linux desktops, Paletted can generate themes, update configurations, execute commands, and integrate with existing wallpaper backends in a single workflow.
Metadata
Release files for paletted 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paletted-1.0.4.tar.gz | 10.6 MB | With provenance | Details for paletted-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paletted-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for paletted-1.0.4-py3-none-any.whl |
Total release size: 10.7 MB
Release files / paletted-1.0.4.tar.gz
| Download URL | paletted-1.0.4.tar.gz |
|---|---|
| Size | 10.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d3b99690b9f1008dfa2decf4090bdad889da61ebe2d171b7cf1093db06f9d09
|
|
BLAKE2b-256 checksum How to use checksums |
9e3377ff5475d6f9d4a5b0b801a8ec7a810667e56ff83bfae0009a71fd8eedfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency logRelease files / paletted-1.0.4-py3-none-any.whl
| Download URL | paletted-1.0.4-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e483aa8761fd4bc6be1f15c472aa6ac444595dc68f25de2b95bea1a373e5378e
|
|
BLAKE2b-256 checksum How to use checksums |
16ef5b05f9ded84e3d4f56625e204905044bdeb78be54b6c3ab22c17bbe75e43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency logSecurity for paletted 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for paletted-1.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.