Commit graph

69 commits

Author SHA1 Message Date
Stephen Seo e770d90835 Update screenshot image 2022-10-19 17:14:12 +09:00
Stephen Seo 4e8564b596 Round values when determining netgraph output 2022-10-19 11:11:24 +09:00
Stephen Seo fb49271a7e Refactored handling of Option wrapping primitives
Option wrapping primities implement Copy, so they can be used directly
in the closure, and is more efficient to use copies of f64/u16 than with
references to them.
2022-10-18 21:47:11 +09:00
Stephen Seo d7ac7de275 Update Changelog.md about changes 2022-10-18 21:36:23 +09:00
Stephen Seo 4ff185133f Refactor net graph handling 2022-10-18 21:14:45 +09:00
Stephen Seo 7bba60e323 Impl 0.1.5 of swaybar_info
Implemented `--netdev_width=<width>` which sets the minimum width of the netdev
byte/KiB/MiB text displays.

Implemented `--netgraph_max_bytes=<bytes>` which displays a graph in text using
Unicode "Block Elements" symbols. The `<bytes>` argument determines the maximum
amount of bytes that will determine which block-character is printed on the
interval. The graph is always 10 characters wide, and the right side is the
most-recent side. Note that this always checks against the maximum of either
download or upload rates. For example, if `<bytes>` is set to 1024, and 128
bytes were downloaded and 512 bytes were uploaded in an interval, the "Lower
Half Block" Unicode symbol will be emitted (exactly half).

SwaybarObject was changed to use an `Option<String>` instead of an `Option<u16>`
for `min_width`.
2022-10-18 21:04:28 +09:00
Stephen Seo be77c5d70a Update README.md 2022-08-25 16:22:19 +09:00
Stephen Seo 837db0da2e
Update README.md 2022-08-25 15:35:19 +09:00
Stephen Seo e2ae9d5409 Update Changelog.md 2022-08-23 17:30:38 +09:00
Stephen Seo c77a8e719b Update README.md 2022-08-23 17:24:32 +09:00
Stephen Seo 490e85fd7a Update README.md with better regex example 2022-08-23 17:22:27 +09:00
Stephen Seo 5032b24fc9
Update README.md 2022-08-23 17:11:01 +09:00
Stephen Seo 9800e50927 Update Changelog.md 2022-08-23 17:08:14 +09:00
Stephen Seo 456d58c6f4 v0.1.4, Impl advanced --regex-cmd usage
Can now use captures with `--regex-cmd` to specify output text and
output text color.
2022-08-23 17:02:35 +09:00
Stephen Seo 3c0e5069ca Refactor trim() of input line fetching netdev info 2022-08-16 20:24:29 +09:00
Stephen Seo edf84af576 Bump version to 0.1.3 2022-08-16 15:34:46 +09:00
Stephen Seo b9b16c1eab Update Changelog.md 2022-08-16 15:34:18 +09:00
Stephen Seo 73f0b730fa Fix failing to fetch netdev info 2022-08-16 15:33:40 +09:00
Stephen Seo 80acc2526b Update Changelog.md 2022-08-11 12:05:24 +09:00
Stephen Seo c1798ee7b0 Fix README.md, bump version to 0.1.2 2022-08-11 12:04:24 +09:00
Stephen Seo 5e4b9bc068 Update README.md 2022-08-11 11:59:59 +09:00
Stephen Seo ba6a0b23ad Add Changelog.md 2022-08-11 11:55:53 +09:00
Stephen Seo a9b8e67d58 Bump version to 0.1.1, fix warnings 2022-08-11 11:51:12 +09:00
Stephen Seo 2f5d21751c Update README.md 2022-08-11 11:49:54 +09:00
Stephen Seo a1956b852a Impl way to set the time format 2022-08-11 11:47:49 +09:00
Stephen Seo f2a0c3dcd9 Update README.md 2022-08-10 14:41:17 +09:00
Stephen Seo f5a48e7172 Update README.md 2022-08-10 14:36:56 +09:00
Stephen Seo 7a69b14a66 Update README.md 2022-08-10 14:35:36 +09:00
Stephen Seo 175506860e Update README.md with preview image 2022-08-10 14:31:42 +09:00
Stephen Seo b08dd9ea80 Add picture of swaybar using swaybar_info 2022-08-10 14:29:58 +09:00
Stephen Seo 5884b267bd Update Cargo.toml with metadata 2022-08-10 14:27:36 +09:00
Stephen Seo 02c09b0540 Update README.md 2022-08-10 14:25:02 +09:00
Stephen Seo ace10eec3f Update README.md 2022-07-29 13:49:50 +09:00
Stephen Seo b863af7a7c Fix "fill" for batt_info color hexadecimal output 2022-07-26 22:22:26 +09:00
Stephen Seo d663a1f105 Refactor main to output batt_info errors to stderr 2022-07-26 22:01:21 +09:00
Stephen Seo d6ccaa39f7 Refactor builtin.rs with Error enum 2022-07-26 21:48:48 +09:00
Stephen Seo 0b78778987 Fixes to builtin::BattInfo usage 2022-07-26 21:19:29 +09:00
Stephen Seo 6d9d23166e Add builtin module, impl "acpi -b" built-in 2022-07-26 21:12:29 +09:00
Stephen Seo 4ba8f2f7f7 Update README.md 2022-07-12 17:55:18 +09:00
Stephen Seo b4199bd726 Update help text 2022-07-12 17:53:17 +09:00
Stephen Seo 3f1b7df7f4 Use a more explicit "terminator" for --regex-cmd 2022-07-12 17:51:44 +09:00
Stephen Seo 6d18f98779 Update README.md 2022-07-12 17:41:41 +09:00
Stephen Seo 9305a968a8 Impl "--regex-cmd=<cmd>,<args...>,<regex>"
The "--regex-cmd=..." allows executing processes and fetching regex'd strings
from its stdout to use on swaybar.
2022-07-12 17:30:15 +09:00
Stephen Seo 90dee55e7a Remove outdated TODO comments 2022-07-10 18:02:00 +09:00
Stephen Seo f9961a149d Refactor net error handling 2022-07-10 17:58:10 +09:00
Stephen Seo 35ff17ef0f Refactor main.rs handling of network stats 2022-07-10 17:47:51 +09:00
Stephen Seo 251125366c Print to stderr on invalid arg, use f64 for memory 2022-07-10 17:02:54 +09:00
Stephen Seo ad1f0cd871 Update README.md 2022-07-10 16:53:34 +09:00
Stephen Seo 8b0c892f05 Refactor SwaybarArray::get_by_name* to use a map
Also some other minor refactorings.
2022-07-10 15:11:01 +09:00
Stephen Seo eb09c43375 Refactor SwaybarArray to be modified not recreated 2022-07-10 14:57:43 +09:00