Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 127 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ freetype-rs = "0.37"
freedesktop-icons = "0.4.0"
chrono = { version = "0.4", features = ["unstable-locales"] }
udev = "0.9"
sysinfo = "0.36.1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are linux-only, and this is not expected to change ever, so why not just read /proc directly?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that would take extra work, especially for the CPU, but I could do that


[build-dependencies]
pkg-config = "0.3"
1 change: 1 addition & 0 deletions share/tiny-dfr/memory.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ pub struct ButtonConfig {
pub time: Option<String>,
pub battery: Option<String>,
pub locale: Option<String>,
pub memory: Option<String>,
pub cpu: Option<String>,
pub action: Key,
pub stretch: Option<usize>,
}
Expand Down Expand Up @@ -95,6 +97,8 @@ fn load_config(width: u16) -> (Config, [FunctionLayer; 2]) {
time: None,
locale: None,
battery: None,
memory: None,
cpu: None,
},
);
}
Expand Down
Loading