adding Anime feature: led brightness command to asusctl, and updating dbus client

This commit is contained in:
Asere
2020-10-10 11:30:07 +02:00
parent a48b3634bf
commit 3845071ba3
6 changed files with 111 additions and 36 deletions

View File

@@ -213,3 +213,26 @@ impl Default for SetAuraBuiltin {
})
}
}
#[derive(Debug, Options)]
pub struct AniMeLeds {
#[options(help = "print help message")]
help: bool,
#[options(no_long, required,
short = "b", meta = "BYTE",
help = "set all leds brightness value")]
led_brightness: u8,
}
impl AniMeLeds {
pub fn led_brightness(&self) -> u8 {
self.led_brightness
}
}
#[derive(Debug, Options)]
pub enum AniMeActions {
#[options(help = "change all leds brightness")]
Leds(AniMeLeds)
}