mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Format
This commit is contained in:
@@ -59,10 +59,7 @@ pub struct LedModeCommand {
|
|||||||
help = "set the keyboard LED suspend animation to enabled while the device is suspended"
|
help = "set the keyboard LED suspend animation to enabled while the device is suspended"
|
||||||
)]
|
)]
|
||||||
pub sleep_enable: Option<bool>,
|
pub sleep_enable: Option<bool>,
|
||||||
#[options(
|
#[options(meta = "", help = "set the keyboard side LEDs to enabled")]
|
||||||
meta = "",
|
|
||||||
help = "set the keyboard side LEDs to enabled"
|
|
||||||
)]
|
|
||||||
pub side_leds_enable: Option<bool>,
|
pub side_leds_enable: Option<bool>,
|
||||||
#[options(command)]
|
#[options(command)]
|
||||||
pub command: Option<SetAuraBuiltin>,
|
pub command: Option<SetAuraBuiltin>,
|
||||||
|
|||||||
@@ -356,7 +356,10 @@ fn handle_led_mode(
|
|||||||
let commands: Vec<String> = cmdlist.lines().map(|s| s.to_string()).collect();
|
let commands: Vec<String> = cmdlist.lines().map(|s| s.to_string()).collect();
|
||||||
for command in commands.iter().filter(|command| {
|
for command in commands.iter().filter(|command| {
|
||||||
for mode in &supported.stock_led_modes {
|
for mode in &supported.stock_led_modes {
|
||||||
if command.trim().starts_with(&<&str>::from(mode).to_lowercase()) {
|
if command
|
||||||
|
.trim()
|
||||||
|
.starts_with(&<&str>::from(mode).to_lowercase())
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ impl AuraConfigV320 {
|
|||||||
multizone: self.multizone,
|
multizone: self.multizone,
|
||||||
awake_enabled: true,
|
awake_enabled: true,
|
||||||
sleep_anim_enabled: true,
|
sleep_anim_enabled: true,
|
||||||
side_leds_enabled:true,
|
side_leds_enabled: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,7 +47,7 @@ impl AuraConfigV352 {
|
|||||||
multizone: self.multizone,
|
multizone: self.multizone,
|
||||||
awake_enabled: true,
|
awake_enabled: true,
|
||||||
sleep_anim_enabled: true,
|
sleep_anim_enabled: true,
|
||||||
side_leds_enabled:true,
|
side_leds_enabled: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,7 @@ impl Default for AuraConfig {
|
|||||||
multizone: None,
|
multizone: None,
|
||||||
awake_enabled: true,
|
awake_enabled: true,
|
||||||
sleep_anim_enabled: true,
|
sleep_anim_enabled: true,
|
||||||
side_leds_enabled:true,
|
side_leds_enabled: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user