PulseAudio module

This commit is contained in:
Kenny Levinsen
2019-08-02 01:26:23 +02:00
parent 9ac29b2a94
commit 0cee090fa2
9 changed files with 645 additions and 42 deletions
+2 -2
View File
@@ -3,12 +3,13 @@ use crate::color::Color;
use crate::draw::{draw_bar, draw_text, ROBOTO_REGULAR};
use crate::module::{Input, ModuleImpl};
use chrono::{DateTime, Local};
use std::fs::OpenOptions;
use std::io::{Error, ErrorKind};
use std::io::{Read, Write};
use std::path::{Path, PathBuf};
use chrono::{DateTime, Local};
pub struct Backlight {
device_path: PathBuf,
cur_brightness: u64,
@@ -111,7 +112,6 @@ impl ModuleImpl for Backlight {
)?;
draw_bar(
&mut buf.subdimensions((128, 0, 384, 24)),
bg,
&Color::new(1.0, 1.0, 1.0, 1.0),
384,
24,