Skip to content

UsnikB/pywal-openRGBSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

System RGB Sync with Pywal Colors

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.

Features

  • 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 pywal setup, making it a perfect enhancement for your colorful environment.
  • Minimal Setup: Simple and easy to use with a few lines of code.

Requirements

  • Python 3.x
  • pywal (for generating color schemes)
  • OpenRGB is already installed and OpenRGB server already running the default port.

Installation

  1. Clone this repository:

    git clone https://github.com/UsnikB/pywal-openRGBSync.git
    cd pywal-openRGBSync
  2. Install openrgb-python globally, depending on your system requirements: for ARCH linux:

    yay -S python-openrgb-git
  3. Ensure that pywal is installed and working on your system:

    pip install pywal

Usage

  1. Generate colors with pywal: First, run pywal to generate your color scheme:

    wal -i /path/to/your/wallpaper
  2. Edit the path to the colors.json file in .cache in the Script

  3. 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 pywal color palette.

How it Works

  • The script reads the pywal generated colors from the ~/.cache/wal/colors.json file.
  • It extracts the color palette and sends the colors to OpenRGB server to apply the color systemwide.

Contributing

Feel free to fork, modify, and submit pull requests to enhance the functionality or add new features.

Issues

If you encounter any issues, feel free to open an issue in the GitHub issues section.

License

Distributed under the MIT License. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages