| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A command-line utility for changing the primary accent color in your desktop rice (customized Linux desktop setup). Palettro allows you to quickly switch between different accent colors across all your configured applications with a single command.
yay -S palettro-bin
# or
paru -S palettro-bin wget https://github.com/arithefirst/palettro/releases/download/v1.0.0/palettro-linux-x86_64 -O palettro
# Optional sha256sum check
echo "41cf04b6ac6418ae489e623d328b270f72c1ebf3fa0beff0aaa3585f00c18067 palettro" | sha256sum --check
chmod +x ./palettro
sudo mv palettro /usr/local/bin/git clone https://github.com/arithefirst/palettro
cd palettro
go build -o palettro
sudo mv palettro /usr/local/bin/# Apply a color theme
palettro -color blue
# Show all available colors
palettro -showcolors
# Show all configured applications
palettro -showconfigs
# Use a custom config file
palettro -config /path/to/custom/config.json -color red| Flag | Description | Default |
|---|---|---|
| -color | Color name to apply to your desktop theme | Required |
| -config | Path to configuration file | ~/.config/palettro/config.json |
| -showcolors | Display all available color names | false |
| -showconfigs | Show all registered application configs | false |
Palettro uses a JSON configuration file located at ~/.config/palettro/config.json. If this file doesn't exist, it will be created automatically with default settings.
{
"colors": {
"colorname": {
"hex": "#ffffff",
"rgb": "rgb(255, 255, 255)",
"hsl": "hsl(0deg, 0%, 100%)"
}
},
"configs": [
{
"name": "application-name",
"path": "~/.config/app/",
"restart": "application-binary"
// The "restart" option is optional. Only put the name
// of the binary if it dosen't auto-update config
// files. Waybar, for example needs to be restarted
// for config changes to take affect. Hyprland, for
// example auto-updates when changes are detected.
}
]
}Palettro ships with the following color palette:
To add support for a new application:
Template Variables:
Example:
{
"name": "waybar",
"path": "~/.config/waybar/",
"restart": "waybar"
}When you run palettro -color blue, it reads template files from ~/.config/palettro/waybar/, replaces the color variables with blue's values, and writes the processed files to ~/.config/waybar/.
## Examples 💡 ### Switching Themes ```bash # Apply a blue theme to all configured applications palettro -color blue # Apply a red theme with custom config palettro -config ~/my-themes.json -color red
# See all available colors
palettro -showcolors
# See all configured applications
palettro -showconfigsWe welcome contributions to palettro! This project is licensed under the GNU GPL 3.0.
git clone https://github.com/arithefirst/palettro
cd palettrogit checkout -b feature/your-feature-namego test ./...
go build -o palettro
./palettro -showcolorsPlease report bugs and feature requests through GitHub Issues. Include:
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |