Show current volume level, disable London time on work
This commit is contained in:
parent
b124148b0b
commit
4fcbf23210
@ -1,5 +1,5 @@
|
|||||||
use chrono::NaiveTime;
|
use chrono::NaiveTime;
|
||||||
use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection};
|
use i3monkit::{widgets::VolumeWidget, ColorRGB, Header, I3Protocol, WidgetCollection};
|
||||||
use i3xs::widgets::{
|
use i3xs::widgets::{
|
||||||
cpu::CpuWidget,
|
cpu::CpuWidget,
|
||||||
datetime::{DateTimeWidget, TimeColor},
|
datetime::{DateTimeWidget, TimeColor},
|
||||||
@ -27,6 +27,8 @@ fn main() {
|
|||||||
// Realtime read/write rate for a any active disks
|
// Realtime read/write rate for a any active disks
|
||||||
bar.push(AllDiskSpeedWidget::new(6));
|
bar.push(AllDiskSpeedWidget::new(6));
|
||||||
|
|
||||||
|
bar.push(VolumeWidget::new("default", "Master", 0));
|
||||||
|
|
||||||
let mut dt = DateTimeWidget::new("%m/%d %H:%M");
|
let mut dt = DateTimeWidget::new("%m/%d %H:%M");
|
||||||
dt.set_colors(vec![
|
dt.set_colors(vec![
|
||||||
TimeColor {
|
TimeColor {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
use chrono::NaiveTime;
|
use chrono::NaiveTime;
|
||||||
use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection};
|
use i3monkit::{widgets::VolumeWidget, ColorRGB, Header, I3Protocol, WidgetCollection};
|
||||||
use i3xs::widgets::{
|
use i3xs::widgets::{
|
||||||
cpu::CpuWidget,
|
cpu::CpuWidget,
|
||||||
datetime::{DateTimeWidget, TimeColor},
|
datetime::{DateTimeWidget, TimeColor},
|
||||||
@ -27,6 +27,8 @@ fn main() {
|
|||||||
// Realtime read/write rate for a any active disks
|
// Realtime read/write rate for a any active disks
|
||||||
bar.push(AllDiskSpeedWidget::new(6));
|
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);
|
let mut dt = DateTimeWidget::tz("%H:%M %Z", chrono_tz::Europe::London);
|
||||||
dt.set_colors(vec![
|
dt.set_colors(vec![
|
||||||
TimeColor {
|
TimeColor {
|
||||||
@ -47,6 +49,9 @@ fn main() {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
bar.push(dt);
|
bar.push(dt);
|
||||||
|
*/
|
||||||
|
|
||||||
|
bar.push(VolumeWidget::new("default", "Master", 0));
|
||||||
|
|
||||||
let mut dt = DateTimeWidget::new("%m/%d %H:%M");
|
let mut dt = DateTimeWidget::new("%m/%d %H:%M");
|
||||||
dt.set_colors(vec![
|
dt.set_colors(vec![
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user