Skip to content

[ryoku] hyprland: add wallpaper theme sync for keyboard RGB - #226

Closed
Shreyas-cpu wants to merge 1 commit into
Ryoku-dev:mainfrom
Shreyas-cpu:feat/sync-keyboard-rgb
Closed

Shreyas-cpu wants to merge 1 commit into
Ryoku-dev:mainfrom
Shreyas-cpu:feat/sync-keyboard-rgb

Conversation

@Shreyas-cpu

@Shreyas-cpu Shreyas-cpu commented Sep 21, 2026 •

Copy link
Copy Markdown

Summary

Adds `ryoku-cmd-keyboard-rgb` to synchronize laptop keyboard backlights (ASUS ROG, TUF, Zephyrus via `asusctl` / sysfs, and OpenRGB devices) to the active

wallpaper Material palette.

Details

- **Palette Extraction & Boost**: Reads active Material You tone `70`/`80` from `~/.cache/ryoku/material-colors.json` or `~/.cache/ryoku/colors.json`, boosting

HSV saturation for vivid, readable keyboard backlighting.
- Hardware Integration:
- Queries asusctl led-mode -c <hex> (ASUS Aura laptops).
- Falls back to direct sysfs control (/sys/class/leds/asus::kbd_backlight/kbd_rgb_mode).
- Broadcasts to ryoku-hub lighting accent <hex> for peripheral ecosystem sync.
- Event Hooks:
- Hooked into ryoku/shell/matugen/config.toml (post_hook) to instantly transition colors when wallpapers change.
- Hooked into ryoku/hyprland/modules/autostart.lua on compositor startup.

### Testing & Verification
- Validated with `bin/ryoku-dev-scan-slop` (clean).
- Validated with `bin/ryoku-dev-verify-delivery` (clean).
- Commit message conforms to `[area]` subject prefix and trailer rules.
- Tested on ASUS hardware with Hyprland + Matugen.

Note: New: Synchronize laptop keyboard backlight with wallpaper theme palette

Add ryoku-cmd-keyboard-rgb to synchronize laptop keyboard backlights
(ASUS ROG, TUF, Zephyrus via asusctl / sysfs, and OpenRGB devices)
to the active wallpaper Material palette.

Triggers on palette changes via matugen's post_hook and at session
start via autostart.lua.

Note: New: Synchronize laptop keyboard backlight with wallpaper theme palette
@Shreyas-cpu
Shreyas-cpu marked this pull request as draft September 21, 2026 14:41
@Shreyas-cpu
Shreyas-cpu marked this pull request as ready for review September 21, 2026 14:43
@neur0map

Copy link
Copy Markdown
Collaborator

thanks for putting this together. keyboard-follows-wallpaper already ships end to end: the daemon pushes the accent to keyboard lighting on every palette change and both compositors restore it at login, all gated behind the Lighting opt-in in the Hub. this script would write the keyboard hardware outside that gate and duplicate the same push, so we're going to keep the existing path instead of merging. the feature you're after is already there, just turn Lighting on and adopt the keyboard in the Hub. sorry for the drive-by close, and thanks again.

@neur0map neur0map closed this Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants