diff options
| author | Andreas Grois <andi@grois.info> | 2024-02-10 16:21:25 +0100 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2024-02-10 16:21:25 +0100 |
| commit | 0065710c649a5ab930a5ee2592a5c00225d1e2ef (patch) | |
| tree | 8c3bd481f2789c894155eaa08a4c28f904b8d6e0 /alsa/src/lib.rs | |
| parent | 2ba803bf9be842b66fe376c506e6ea842eb73205 (diff) | |
First kinda working ALSA volume display
Diffstat (limited to 'alsa/src/lib.rs')
| -rw-r--r-- | alsa/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alsa/src/lib.rs b/alsa/src/lib.rs index 42800c8..8b10036 100644 --- a/alsa/src/lib.rs +++ b/alsa/src/lib.rs @@ -16,13 +16,14 @@ impl SwayStatusModule for AlsaVolumePlugin { .map(|c| Box::new(c) as Box<dyn SwayStatusModuleInstance>) } fn get_default_config<'p>(&'p self) -> Box<dyn SwayStatusModuleInstance + 'p> { - todo!(); + Box::new(config::AlsaVolumeConfig::default()) } fn print_help(&self) { println!( r#"Swaystatus Alsa Volume plugin. -This is a volume display for ALSA. You can either choose a specific device, mixer and element to display, or just show the default output's volume."# +This is a volume display for ALSA. Currently quite limited, but hey, you're free to extend it. You must set the device and element name in config. +Blanace is not supported at the moment, just volume of a single element."# ); } } |
