Add Framework 16 RGB keyboard theme syncing#4524
Add Framework 16 RGB keyboard theme syncing#4524godlewski wants to merge 4 commits intobasecamp:devfrom
Conversation
0732f72 to
a7b2759
Compare
|
Nice! Let's make omarchy-theme-set-keyboard and then have that call omarchy-theme-set-keyboard-asus-rog and omarchy-theme-set-keyboard-f16. We also need a migration to install this on existing machines. |
1d2f8f2 to
295751e
Compare
|
@dhh I updated the PR with Also added the migration for existing Framework 16 machines. I retested on my Framework 16:
|
| @@ -0,0 +1,3 @@ | |||
| if omarchy-hw-framework16; then | |||
| omarchy-pkg-aur-add qmk-hid | |||
There was a problem hiding this comment.
We can't actually install yay packages during initial setup, as we're running an offline installer. So we need to get qmk-hid built for the Omarchy Package Repository. You can open a PR here: https://github.com/omacom-io/omarchy-pkgs/
| if omarchy-hw-framework16; then | ||
| if [[ ! -f /etc/udev/rules.d/50-framework16-qmk-hid.rules ]]; then | ||
| cat <<EOF | sudo tee /etc/udev/rules.d/50-framework16-qmk-hid.rules | ||
| SUBSYSTEM=="hidraw", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", MODE="0660", TAG+="uaccess" |
There was a problem hiding this comment.
We should put this file into default/udev/framework16-qmk-hid.rules, then copy it over when installing. Because then we can reuse for migration and better track all the files.
Summary
Syncs the omarchy theme accent color to the Framework Laptop 16 RGB keyboard via
qmk_hid, following the same pattern as the existing ASUS ROG integration withasusctl.qmk-hidfrom AUR on Framework 16 machinesqmk_hidcan access the keyboard without rootcolorsys--saveNew files
bin/omarchy-hw-framework16— hardware detection via DMIbin/omarchy-theme-set-framework16— applies accent color to keyboard RGBdefault/themed/framework16-kbd.rgb.tpl— accent color templateinstall/packaging/framework16.sh— conditionalqmk-hidAUR package installinstall/config/hardware/framework16-qmk-hid.sh— udev rule for unprivileged HID accessModified files
bin/omarchy-theme-set— callsomarchy-theme-set-framework16during theme applicationinstall/packaging/all.sh— registers the Framework 16 packaging scriptinstall/config/all.sh— registers the udev rule setup during installTested on hardware
All testing done on a Framework Laptop 16 (AMD Ryzen 7040 Series) with ANSI keyboard module (FW 0.3.1).
omarchy-hw-framework16correctly identifies the machine via DMI vendor and product nameqmk-hidinstalls from AUR viaomarchy-pkg-aur-addandyayqmk_hid -lfinds the keyboard (32ac:0012, "Laptop 16 Keyboard Module - ANSI")qmk_hidis not installed or the theme file is missing--save(persists to keyboard EEPROM)run_loggedwith the same env vars and execution path asinstall.shto confirm they resolve paths correctlyDEMO
trim.C9E3D34A-C610-46C1-BBBC-B628B64145A5.MOV