-
Notifications
You must be signed in to change notification settings - Fork 5
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
Keyboard color #3
Comments
With a bash script
|
The bash script is an excellent solution! I'd like to note that the LED codes are not continuous from 0 to 180, there are some gaps that are apparently unmapped. Sending those commands to the keyboard apparently does nothing so it's probably fine. I have no way to guarantee that though. Here are the LED codes I obtained from my keyboard:
Bash arrays would be a nice solution. Sequence expansion can be used to populate the array. declare -a LEDs
LEDs=({0..19} {32..43} {45..51} {64..83} {96..108} {110..115} 128 {130..147} {160..165} {169..179})
cfg="reset\nbrightness $brightness\n"
for LED in "${LEDs[@]}"; do
cfg="${cfg}led ${LED} ${red} ${green} ${blue}\n"
done |
I didn't even know you could declare arrays like that in bash. I will definitely improve my script, thank you! You know, at some point I had a bash script using Zenity to create a GUI for your driver, but then I spilled coffee on my laptop and the script was gone. But my laptop is back and I will definitely rewrite an UI for it. |
@allan-null That's frickin' awesome. When I published this project I never thought I'd have users, let alone other developers building on top of it. I'd be happy to accept patches if you'd like to contribute. Truth is I develop on my smartphone with Termux now. Haven't used my laptop in a while. This is why I haven't been maintaining this. |
@allan-null You should post it when you have made the GUI app, that would be great |
@junocomp @matheusmoreira There are a few bugs, but it's mostly ready https://github.com/allan-null/ite-829x-ui |
How do I set the entire keyboard to one color instead per key?
The text was updated successfully, but these errors were encountered: