Show current volume level, disable London time on work

This commit is contained in:
Bill Thiede 2024-08-27 11:42:12 -07:00
parent b124148b0b
commit 4fcbf23210
2 changed files with 9 additions and 2 deletions

View File

@ -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 {

View File

@ -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![