A tool/library that allows you to control the backlight of your MSI SteelSeries laptop keyboard.\ Supports 3 regions, 8 predefined colors, RGB colors, and custom animations (CLI only).
Note: This project uses the libusb backend of hidapi as there are issues when using hidraw.
sh
git clone https://github.com/ErrorNoInternet/msi-klc
cd msi-klc
cargo build --release
sudo cp target/release/msi-klc /usr/local/bin
sh
cargo install msi-klc
Make sure to run with root privileges (sudo) if you don't have the appropriate udev rules.
```sh
msi-klc set --color blue
msi-klc set --color red --region left
msi-klc off
msi-klc reset
msi-klc set --color "#0fffaf" --mode rgb
msi-klc off && msi-klc set --color "#0fffaf" --mode rgb --region left
msi-klc load animations/breathe.txt ```
```rust use msi_klc::*;
fn main() { let mut keyboard = Keyboard::new().unwrap();
// make the keyboard blue
keyboard
.set_color(&KeyboardLightData::new(
&Region::All,
&Color::Blue,
&Brightness::Medium,
))
.unwrap();
keyboard
.set_mode(&KeyboardModeData::new(&Mode::Normal))
.unwrap();
// set a custom RGB color on the right side of the keyboard
keyboard
.set_rgb_color(&KeyboardRGBLightData::new(
&Region::Right,
&(255, 80, 80),
))
.unwrap();
} ```