Compare commits
No commits in common. "4fcbf23210360bf18bb55c8f0044dd673f7fe67b" and "b9935c991f1b7de5e9b1aabc3f5a23b5d778344e" have entirely different histories.
4fcbf23210
...
b9935c991f
@ -1,5 +1,5 @@
|
||||
use chrono::NaiveTime;
|
||||
use i3monkit::{widgets::VolumeWidget, ColorRGB, Header, I3Protocol, WidgetCollection};
|
||||
use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection};
|
||||
use i3xs::widgets::{
|
||||
cpu::CpuWidget,
|
||||
datetime::{DateTimeWidget, TimeColor},
|
||||
@ -27,8 +27,6 @@ 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 {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
use chrono::NaiveTime;
|
||||
use i3monkit::{widgets::VolumeWidget, ColorRGB, Header, I3Protocol, WidgetCollection};
|
||||
use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection};
|
||||
use i3xs::widgets::{
|
||||
cpu::CpuWidget,
|
||||
datetime::{DateTimeWidget, TimeColor},
|
||||
@ -27,8 +27,6 @@ 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 {
|
||||
@ -49,9 +47,6 @@ 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![
|
||||
|
||||
@ -58,14 +58,6 @@ impl PowerSupply {
|
||||
})
|
||||
})
|
||||
.collect::<Result<_, _>>()?;
|
||||
// Skip things that aren't battery powered
|
||||
if !values
|
||||
.get("POWER_SUPPLY_TYPE")
|
||||
.map(|t| t == &"Battery")
|
||||
.unwrap_or(false)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
let cap: u32 = values
|
||||
.get("POWER_SUPPLY_CAPACITY")
|
||||
.unwrap_or(&"0")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user