-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add NuPhy Air75 V3 keyboard RGB theme support #5160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Detect whether a NuPhy Air75 V3 keyboard is connected. | ||
|
|
||
| grep -q "^HID_NAME=NuPhy Air75 V3$" /sys/bus/hid/devices/*/uevent 2>/dev/null |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| #!/bin/bash | ||
|
|
||
| omarchy-theme-set-keyboard-asus-rog | ||
| omarchy-theme-set-keyboard-nuphyio | ||
| omarchy-theme-set-keyboard-f16 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
|
|
||
| KEYBOARD_THEME=~/.config/omarchy/current/theme/keyboard.rgb | ||
|
|
||
| COLOR=$(sed 's/^#//' $KEYBOARD_THEME) | ||
|
|
||
| if omarchy-cmd-present nuphyctl; then | ||
| nuphyctl rgb set --hex $COLOR &>/dev/null | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Blocker: this command fails on any system with more than one HID device. Tested on a real setup and got: Any machine with a mouse, a webcam, a USB receiver, a DMI controller, etc. will hit this — so effectively most end-user installs. nuphyctl rgb set --hex "$COLOR" --vid 0x19f5 --pid 0x1028Two more things on this line:
|
||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ nvidia-dkms | |
| nvidia-open-dkms | ||
| nvidia-580xx-utils | ||
| nvidia-utils | ||
| nuphyctl-bin | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should |
||
| lib32-nvidia-580xx-utils | ||
| lib32-nvidia-utils | ||
| pipewire | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| if omarchy-hw-nuphyio-keyboard; then | ||
| omarchy-pkg-aur-add nuphyctl-bin | ||
| fi | ||
|
fldc marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| echo "Install nuphyctl-bin on systems with a NuPhy keyboard" | ||
|
fldc marked this conversation as resolved.
|
||
|
|
||
| if omarchy-hw-nuphyio-keyboard && omarchy-pkg-missing nuphyctl-bin; then | ||
| omarchy-pkg-aur-add nuphyctl-bin | ||
| fi | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: quote
$KEYBOARD_THEME(and$COLORon line 8) defensively. Not a practical bug on standard omarchy installs, but consistent with the rest of the codebase and safe against paths containing spaces:COLOR=$(sed 's/^#//' "$KEYBOARD_THEME")