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/runnable.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 alsa/src/runnable.rs (limited to 'alsa/src/runnable.rs') diff --git a/alsa/src/runnable.rs b/alsa/src/runnable.rs new file mode 100644 index 0000000..85d23a4 --- /dev/null +++ b/alsa/src/runnable.rs @@ -0,0 +1,22 @@ +use std::sync::mpsc::Receiver; +use swaystatus_plugin::*; +use super::config::AlsaVolumeConfig; +use super::communication::MessagesFromMain; + +pub struct AlsaVolumeRunnable<'r>{ + to_main : Box, + from_main : Receiver, + config : &'r AlsaVolumeConfig, +} + +impl<'r> AlsaVolumeRunnable<'r> { + pub fn new(to_main : Box, from_main : Receiver, config : &'r AlsaVolumeConfig) -> Self { + Self { to_main, from_main, config } + } +} + +impl<'r> SwayStatusModuleRunnable for AlsaVolumeRunnable<'r> { + fn run(&self) { + todo!() + } +} -- cgit v1.2.3