From 0065710c649a5ab930a5ee2592a5c00225d1e2ef Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Feb 2024 16:21:25 +0100 Subject: First kinda working ALSA volume display --- alsa/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'alsa/src/lib.rs') 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) } fn get_default_config<'p>(&'p self) -> Box { - 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."# ); } } -- cgit v1.2.3