A simple Python script that syncs your system's RGB lighting with the colors generated by pywal, bringing vibrant aesthetics to your setup.
In my Arch Hyprland setup, I have a keybind that runs a bash script. This script changes the wallpaper, generates a color scheme using pywal, and then updates the RGB lighting accordingly. Will upload my dotfiles soon. Stay tuned.
- Sync RGB with Pywal: Automatically adjust the RGB lighting of your system to match the colors generated by
pywal. - Effortless Integration: Integrates seamlessly with your existing
pywalsetup, making it a perfect enhancement for your colorful environment. - Minimal Setup: Simple and easy to use with a few lines of code.
- Python 3.x
pywal(for generating color schemes)- OpenRGB is already installed and OpenRGB server already running the default port.
-
Clone this repository:
git clone https://github.com/UsnikB/pywal-openRGBSync.git cd pywal-openRGBSync -
Install openrgb-python globally, depending on your system requirements: for ARCH linux:
yay -S python-openrgb-git
-
Ensure that
pywalis installed and working on your system:pip install pywal
-
Generate colors with pywal: First, run
pywalto generate your color scheme:wal -i /path/to/your/wallpaper
-
Edit the path to the colors.json file in .cache in the Script
-
Sync RGB lighting: Run the Python script to sync your RGB lights with the generated colors:
python pywal-openrgb.py
This will automatically adjust your RGB lights to match the
pywalcolor palette.
- The script reads the
pywalgenerated colors from the~/.cache/wal/colors.jsonfile. - It extracts the color palette and sends the colors to OpenRGB server to apply the color systemwide.
Feel free to fork, modify, and submit pull requests to enhance the functionality or add new features.
If you encounter any issues, feel free to open an issue in the GitHub issues section.
Distributed under the MIT License. See LICENSE for more information.