From 57fd648407a233ae62b2c561d902783597274f83 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Wed, 24 Jan 2024 21:40:48 +0100 Subject: Start work on ALSA volume display --- alsa/src/config.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 alsa/src/config.rs (limited to 'alsa/src/config.rs') diff --git a/alsa/src/config.rs b/alsa/src/config.rs new file mode 100644 index 0000000..a617690 --- /dev/null +++ b/alsa/src/config.rs @@ -0,0 +1,19 @@ +use std::sync::mpsc::channel; + +use serde::{Serialize, Deserialize}; +use swaystatus_plugin::*; + +use crate::{runnable::AlsaVolumeRunnable, communication::SenderForMain}; + +#[derive(Debug, Serialize, Deserialize)] +pub struct AlsaVolumeConfig{ + +} + + +impl SwayStatusModuleInstance for AlsaVolumeConfig { + fn make_runnable<'p>(&'p self, to_main : Box) -> (Box, Box) { + let (s,r) = channel(); + (Box::new(AlsaVolumeRunnable::new(to_main, r, self)), Box::new(SenderForMain::new(s))) + } +} -- cgit v1.2.3