No description
Find a file
mario-kr fefba66ff5
Fix: EWW_NET wrong values for TX/RX stats (#1108)
* Fix: EWW_NET wrong values for TX/RX stats

The sysinfo crate, structure Networks, basically caches one value of
total_received/total_transmitted each (as well as other metrics) and
returns the difference between those two values when queried via the
`received()` and `transmitted()` functions.

These values are updated by both the `refresh()` and `refresh_list()`
functions; so by calling both of them right after each other like
previously done here, sets both the cached total_received/... and the
current total_received/... to nearly the same value.

`refresh_list()` also updates the list of interfaces on a host, with a
marginally small performance impact for doing so (I measured slightly
more than 100 microseconds on my machine (0.1 milliseconds), around
20-25% more than with `refresh()`), especially considering this is run
only every 2 seconds.

* Add changelog entry for the EWW_NET bugfix
2024-08-25 15:45:33 +02:00
.github System Tray (#743) 2024-03-30 10:55:01 +01:00
crates Fix: EWW_NET wrong values for TX/RX stats (#1108) 2024-08-25 15:45:33 +02:00
docs Typo in configuration.md 2024-08-24 12:25:16 +02:00
examples/eww-bar make getvol use pamixer 2023-08-03 16:45:45 +02:00
.editorconfig CI/CD & Formatting (#6) 2020-10-18 23:25:00 +02:00
.gitignore heavily refactor nix flake (#532) 2022-08-21 23:09:54 +02:00
Cargo.lock chore: automatically update a few dependencies 2024-08-24 12:26:24 +02:00
Cargo.toml chore: update derive_more to 1.0 2024-08-24 12:26:24 +02:00
CHANGELOG.md Fix: EWW_NET wrong values for TX/RX stats (#1108) 2024-08-25 15:45:33 +02:00
default.nix nix: switch to nixfmt-rfc-style 2024-08-24 12:26:24 +02:00
flake.lock chore: update toolchain to 1.80.1 2024-08-24 12:26:24 +02:00
flake.nix docs: update zbus-xmlgen generation commands; add zbus-xmlgen to development shell 2024-08-24 12:26:24 +02:00
gen-docs.ts Fix some types missing in widget docs 2022-05-26 15:00:34 +02:00
LICENSE Add MIT license 2020-10-18 23:25:48 +02:00
README.md Fix link to dharmx' powermenu guide (fixes #581) 2022-09-29 14:41:18 +02:00
rust-toolchain.toml chore: update toolchain to 1.80.1 2024-08-24 12:26:24 +02:00
rustfmt.toml Remove nightly options from rustfmt.toml 2024-02-17 14:14:46 +01:00
shell.nix nix: switch to nixfmt-rfc-style 2024-08-24 12:26:24 +02:00
YUCK_MIGRATION.md Clean up example bar 2021-08-18 16:21:04 +02:00

dependency status

Eww

Elkowars Wacky Widgets is a standalone widget system made in Rust that allows you to implement your own, custom widgets in any window manager.

Documentation and instructions on how to install can be found here.

Dharmx also wrote a nice, beginner friendly introductory guide for eww here.

Eww needs your opinion!

I've hit a bit of a design roadblock for one of the bigger features that are in the works right now.

Please read through https://github.com/elkowar/eww/discussions/453 and share your thoughts, ideas and opinions!

Examples

(Note that some of these still make use of the old configuration syntax.)

Rxyhn-rice

eww-top-bar

Contribewwting

If you want to contribute anything, like adding new widgets, features, or subcommands (including sample configs), you should definitely do so.

Steps

  1. Fork this repository
  2. Install dependencies
  3. Smash your head against the keyboard from frustration (coding is hard)
  4. Write down your changes in CHANGELOG.md
  5. Open a pull request once you're finished