mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
adds support to enable/disable side leds
This commit is contained in:
@@ -83,6 +83,7 @@ impl<'a> DbusProxies<'a> {
|
||||
pub struct Signals {
|
||||
pub profile: Receiver<Profile>,
|
||||
pub led_mode: Receiver<AuraEffect>,
|
||||
pub side_leds: Receiver<bool>,
|
||||
pub led_power_state: Receiver<LedPowerStates>,
|
||||
pub anime_power_state: Receiver<AnimePowerStates>,
|
||||
pub charge: Receiver<u8>,
|
||||
@@ -109,6 +110,11 @@ impl Signals {
|
||||
proxies.led.connect_notify_led(tx)?;
|
||||
rx
|
||||
},
|
||||
side_leds: {
|
||||
let (tx, rx) = channel();
|
||||
proxies.led.connect_notify_side_leds(tx)?;
|
||||
rx
|
||||
},
|
||||
led_power_state: {
|
||||
let (tx, rx) = channel();
|
||||
proxies.led.connect_notify_power_states(tx)?;
|
||||
|
||||
Reference in New Issue
Block a user