]> git.seodisparate.com - swaybar_info/log
swaybar_info
2 years agoFix clippy warnings
Stephen Seo [Sun, 11 Dec 2022 12:59:58 +0000 (21:59 +0900)]
Fix clippy warnings

2 years agoUpdate help text and README.md
Stephen Seo [Sun, 11 Dec 2022 12:55:27 +0000 (21:55 +0900)]
Update help text and README.md

2 years agoImpl dynamic netgraph display
Stephen Seo [Sun, 11 Dec 2022 12:49:51 +0000 (21:49 +0900)]
Impl dynamic netgraph display

The netgraph can now dynamically "resize" to always have the maximum
bytes transferred in an interval be the max value.

2 years agoVersion 0.1.6 0.1.6
Stephen Seo [Fri, 21 Oct 2022 02:59:09 +0000 (11:59 +0900)]
Version 0.1.6

2 years agoUpdate README.md about the netgraph feature
Stephen Seo [Wed, 19 Oct 2022 08:20:57 +0000 (17:20 +0900)]
Update README.md about the netgraph feature

2 years agoUpdate screenshot image
Stephen Seo [Wed, 19 Oct 2022 08:14:12 +0000 (17:14 +0900)]
Update screenshot image

2 years agoRound values when determining netgraph output
Stephen Seo [Wed, 19 Oct 2022 02:11:24 +0000 (11:11 +0900)]
Round values when determining netgraph output

2 years agoRefactored handling of Option wrapping primitives
Stephen Seo [Tue, 18 Oct 2022 12:47:11 +0000 (21:47 +0900)]
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.

2 years agoUpdate Changelog.md about changes
Stephen Seo [Tue, 18 Oct 2022 12:36:23 +0000 (21:36 +0900)]
Update Changelog.md about changes

2 years agoRefactor net graph handling
Stephen Seo [Tue, 18 Oct 2022 12:14:45 +0000 (21:14 +0900)]
Refactor net graph handling

2 years agoImpl 0.1.5 of swaybar_info 0.1.5
Stephen Seo [Tue, 18 Oct 2022 12:04:28 +0000 (21:04 +0900)]
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`.

2 years agoUpdate README.md
Stephen Seo [Thu, 25 Aug 2022 07:22:19 +0000 (16:22 +0900)]
Update README.md

2 years agoUpdate README.md
Stephen Seo [Thu, 25 Aug 2022 06:35:19 +0000 (15:35 +0900)]
Update README.md

2 years agoUpdate Changelog.md
Stephen Seo [Tue, 23 Aug 2022 08:30:38 +0000 (17:30 +0900)]
Update Changelog.md

2 years agoUpdate README.md
Stephen Seo [Tue, 23 Aug 2022 08:24:32 +0000 (17:24 +0900)]
Update README.md

2 years agoUpdate README.md with better regex example
Stephen Seo [Tue, 23 Aug 2022 08:22:27 +0000 (17:22 +0900)]
Update README.md with better regex example

2 years agoUpdate README.md
Stephen Seo [Tue, 23 Aug 2022 08:11:01 +0000 (17:11 +0900)]
Update README.md

2 years agoUpdate Changelog.md
Stephen Seo [Tue, 23 Aug 2022 08:08:14 +0000 (17:08 +0900)]
Update Changelog.md

2 years agov0.1.4, Impl advanced --regex-cmd usage 0.1.4
Stephen Seo [Tue, 23 Aug 2022 08:02:35 +0000 (17:02 +0900)]
v0.1.4, Impl advanced --regex-cmd usage

Can now use captures with `--regex-cmd` to specify output text and
output text color.

2 years agoRefactor trim() of input line fetching netdev info
Stephen Seo [Tue, 16 Aug 2022 11:24:29 +0000 (20:24 +0900)]
Refactor trim() of input line fetching netdev info

2 years agoBump version to 0.1.3 0.1.3
Stephen Seo [Tue, 16 Aug 2022 06:34:37 +0000 (15:34 +0900)]
Bump version to 0.1.3

2 years agoUpdate Changelog.md
Stephen Seo [Tue, 16 Aug 2022 06:34:18 +0000 (15:34 +0900)]
Update Changelog.md

2 years agoFix failing to fetch netdev info
Stephen Seo [Tue, 16 Aug 2022 06:33:40 +0000 (15:33 +0900)]
Fix failing to fetch netdev info

2 years agoUpdate Changelog.md 0.1.2
Stephen Seo [Thu, 11 Aug 2022 03:05:24 +0000 (12:05 +0900)]
Update Changelog.md

2 years agoFix README.md, bump version to 0.1.2
Stephen Seo [Thu, 11 Aug 2022 03:04:24 +0000 (12:04 +0900)]
Fix README.md, bump version to 0.1.2

2 years agoUpdate README.md
Stephen Seo [Thu, 11 Aug 2022 02:58:37 +0000 (11:58 +0900)]
Update README.md

2 years agoAdd Changelog.md 0.1.1
Stephen Seo [Thu, 11 Aug 2022 02:55:53 +0000 (11:55 +0900)]
Add Changelog.md

2 years agoBump version to 0.1.1, fix warnings
Stephen Seo [Thu, 11 Aug 2022 02:51:12 +0000 (11:51 +0900)]
Bump version to 0.1.1, fix warnings

2 years agoUpdate README.md
Stephen Seo [Thu, 11 Aug 2022 02:49:54 +0000 (11:49 +0900)]
Update README.md

2 years agoImpl way to set the time format
Stephen Seo [Thu, 11 Aug 2022 02:47:49 +0000 (11:47 +0900)]
Impl way to set the time format

2 years agoUpdate README.md
Stephen Seo [Wed, 10 Aug 2022 05:41:17 +0000 (14:41 +0900)]
Update README.md

2 years agoUpdate README.md
Stephen Seo [Wed, 10 Aug 2022 05:36:56 +0000 (14:36 +0900)]
Update README.md

2 years agoUpdate README.md
Stephen Seo [Wed, 10 Aug 2022 05:35:36 +0000 (14:35 +0900)]
Update README.md

2 years agoUpdate README.md with preview image 0.1.0
Stephen Seo [Wed, 10 Aug 2022 05:31:42 +0000 (14:31 +0900)]
Update README.md with preview image

2 years agoAdd picture of swaybar using swaybar_info
Stephen Seo [Wed, 10 Aug 2022 05:29:58 +0000 (14:29 +0900)]
Add picture of swaybar using swaybar_info

2 years agoUpdate Cargo.toml with metadata
Stephen Seo [Wed, 10 Aug 2022 05:27:36 +0000 (14:27 +0900)]
Update Cargo.toml with metadata

2 years agoUpdate README.md
Stephen Seo [Wed, 10 Aug 2022 05:25:02 +0000 (14:25 +0900)]
Update README.md

2 years agoUpdate README.md
Stephen Seo [Fri, 29 Jul 2022 04:49:50 +0000 (13:49 +0900)]
Update README.md

2 years agoFix "fill" for batt_info color hexadecimal output
Stephen Seo [Tue, 26 Jul 2022 13:22:26 +0000 (22:22 +0900)]
Fix "fill" for batt_info color hexadecimal output

2 years agoRefactor main to output batt_info errors to stderr
Stephen Seo [Tue, 26 Jul 2022 13:01:21 +0000 (22:01 +0900)]
Refactor main to output batt_info errors to stderr

2 years agoRefactor builtin.rs with Error enum
Stephen Seo [Tue, 26 Jul 2022 12:48:48 +0000 (21:48 +0900)]
Refactor builtin.rs with Error enum

2 years agoFixes to builtin::BattInfo usage
Stephen Seo [Tue, 26 Jul 2022 12:18:59 +0000 (21:18 +0900)]
Fixes to builtin::BattInfo usage

2 years agoAdd builtin module, impl "acpi -b" built-in
Stephen Seo [Tue, 26 Jul 2022 12:12:29 +0000 (21:12 +0900)]
Add builtin module, impl "acpi -b" built-in

2 years agoUpdate README.md
Stephen Seo [Tue, 12 Jul 2022 08:55:18 +0000 (17:55 +0900)]
Update README.md

2 years agoUpdate help text
Stephen Seo [Tue, 12 Jul 2022 08:53:17 +0000 (17:53 +0900)]
Update help text

2 years agoUse a more explicit "terminator" for --regex-cmd
Stephen Seo [Tue, 12 Jul 2022 08:51:44 +0000 (17:51 +0900)]
Use a more explicit "terminator" for --regex-cmd

2 years agoUpdate README.md
Stephen Seo [Tue, 12 Jul 2022 08:41:41 +0000 (17:41 +0900)]
Update README.md

2 years agoImpl "--regex-cmd=<cmd>,<args...>,<regex>"
Stephen Seo [Tue, 12 Jul 2022 08:30:15 +0000 (17:30 +0900)]
Impl "--regex-cmd=<cmd>,<args...>,<regex>"

The "--regex-cmd=..." allows executing processes and fetching regex'd strings
from its stdout to use on swaybar.

2 years agoRemove outdated TODO comments
Stephen Seo [Sun, 10 Jul 2022 09:02:00 +0000 (18:02 +0900)]
Remove outdated TODO comments

2 years agoRefactor net error handling
Stephen Seo [Sun, 10 Jul 2022 08:58:10 +0000 (17:58 +0900)]
Refactor net error handling

2 years agoRefactor main.rs handling of network stats
Stephen Seo [Sun, 10 Jul 2022 08:47:51 +0000 (17:47 +0900)]
Refactor main.rs handling of network stats

2 years agoPrint to stderr on invalid arg, use f64 for memory
Stephen Seo [Sun, 10 Jul 2022 08:02:54 +0000 (17:02 +0900)]
Print to stderr on invalid arg, use f64 for memory

2 years agoUpdate README.md
Stephen Seo [Sun, 10 Jul 2022 07:53:34 +0000 (16:53 +0900)]
Update README.md

2 years agoRefactor SwaybarArray::get_by_name* to use a map
Stephen Seo [Sun, 10 Jul 2022 06:10:26 +0000 (15:10 +0900)]
Refactor SwaybarArray::get_by_name* to use a map

Also some other minor refactorings.

2 years agoRefactor SwaybarArray to be modified not recreated
Stephen Seo [Sun, 10 Jul 2022 05:57:43 +0000 (14:57 +0900)]
Refactor SwaybarArray to be modified not recreated

2 years agoRefactor error handling in proc.rs
Stephen Seo [Sun, 10 Jul 2022 04:13:57 +0000 (13:13 +0900)]
Refactor error handling in proc.rs

2 years agoRefactorings
Stephen Seo [Sun, 10 Jul 2022 04:05:12 +0000 (13:05 +0900)]
Refactorings

2 years agoFix omitted error handling branch in "match" stmt
Stephen Seo [Sat, 9 Jul 2022 13:57:29 +0000 (22:57 +0900)]
Fix omitted error handling branch in "match" stmt

2 years agoFix/Refactor based on clippy warnings
Stephen Seo [Sat, 9 Jul 2022 13:53:01 +0000 (22:53 +0900)]
Fix/Refactor based on clippy warnings

Also log errors/warnings to stderr instead of stdout, since swaybar
expects formatted stdout output.

2 years agoRefactor for better Error handling in mod proc
Stephen Seo [Sat, 9 Jul 2022 13:31:01 +0000 (22:31 +0900)]
Refactor for better Error handling in mod proc

2 years agoUpdate README.md
Stephen Seo [Sat, 9 Jul 2022 10:14:53 +0000 (19:14 +0900)]
Update README.md

2 years agoAdd README.md
Stephen Seo [Sat, 9 Jul 2022 10:06:51 +0000 (19:06 +0900)]
Add README.md

2 years agoAdd MIT LICENSE
Stephen Seo [Sat, 9 Jul 2022 10:01:23 +0000 (19:01 +0900)]
Add MIT LICENSE

2 years agoTweak help text
Stephen Seo [Sat, 9 Jul 2022 10:00:39 +0000 (19:00 +0900)]
Tweak help text

2 years agoImpl use floats for net-rate values (precision .2)
Stephen Seo [Sat, 9 Jul 2022 09:35:54 +0000 (18:35 +0900)]
Impl use floats for net-rate values (precision .2)

2 years agoFix output of memory info
Stephen Seo [Sat, 9 Jul 2022 09:21:28 +0000 (18:21 +0900)]
Fix output of memory info

It displayed "GiB" where it should have displayed "MiB"

2 years agoImpl output loop
Stephen Seo [Sat, 9 Jul 2022 09:18:12 +0000 (18:18 +0900)]
Impl output loop

2 years agoImpl get info from /proc/net/dev
Stephen Seo [Sat, 9 Jul 2022 08:33:19 +0000 (17:33 +0900)]
Impl get info from /proc/net/dev

2 years agoImpl fetching /proc/loadavg
Stephen Seo [Sat, 9 Jul 2022 08:04:49 +0000 (17:04 +0900)]
Impl fetching /proc/loadavg

2 years agoImpl parsing /proc/meminfo, create object with str
Stephen Seo [Sat, 9 Jul 2022 07:57:49 +0000 (16:57 +0900)]
Impl parsing /proc/meminfo, create object with str

2 years agoAdd swaybar protocol header
Stephen Seo [Sat, 9 Jul 2022 07:33:59 +0000 (16:33 +0900)]
Add swaybar protocol header

2 years agoImpl struct for swaybar objects and output test
Stephen Seo [Sat, 9 Jul 2022 07:25:15 +0000 (16:25 +0900)]
Impl struct for swaybar objects and output test

2 years agoInit skeleton project
Stephen Seo [Sat, 9 Jul 2022 06:44:04 +0000 (15:44 +0900)]
Init skeleton project

2 years agoInit empty commit
Stephen Seo [Sat, 9 Jul 2022 06:43:40 +0000 (15:43 +0900)]
Init empty commit