From 4fcbf23210360bf18bb55c8f0044dd673f7fe67b Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 27 Aug 2024 11:42:12 -0700 Subject: [PATCH] Show current volume level, disable London time on work --- src/bin/home.rs | 4 +++- src/bin/work.rs | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/bin/home.rs b/src/bin/home.rs index f56dbf9..880a2ba 100644 --- a/src/bin/home.rs +++ b/src/bin/home.rs @@ -1,5 +1,5 @@ use chrono::NaiveTime; -use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection}; +use i3monkit::{widgets::VolumeWidget, ColorRGB, Header, I3Protocol, WidgetCollection}; use i3xs::widgets::{ cpu::CpuWidget, datetime::{DateTimeWidget, TimeColor}, @@ -27,6 +27,8 @@ fn main() { // Realtime read/write rate for a any active disks bar.push(AllDiskSpeedWidget::new(6)); + bar.push(VolumeWidget::new("default", "Master", 0)); + let mut dt = DateTimeWidget::new("%m/%d %H:%M"); dt.set_colors(vec![ TimeColor { diff --git a/src/bin/work.rs b/src/bin/work.rs index 9644ea3..5d816b6 100644 --- a/src/bin/work.rs +++ b/src/bin/work.rs @@ -1,5 +1,5 @@ use chrono::NaiveTime; -use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection}; +use i3monkit::{widgets::VolumeWidget, ColorRGB, Header, I3Protocol, WidgetCollection}; use i3xs::widgets::{ cpu::CpuWidget, datetime::{DateTimeWidget, TimeColor}, @@ -27,6 +27,8 @@ fn main() { // Realtime read/write rate for a any active disks bar.push(AllDiskSpeedWidget::new(6)); + /* + // Setup time in London widget with end of day warnings let mut dt = DateTimeWidget::tz("%H:%M %Z", chrono_tz::Europe::London); dt.set_colors(vec![ TimeColor { @@ -47,6 +49,9 @@ fn main() { }, ]); bar.push(dt); + */ + + bar.push(VolumeWidget::new("default", "Master", 0)); let mut dt = DateTimeWidget::new("%m/%d %H:%M"); dt.set_colors(vec![