Commit graph

387 commits

Author SHA1 Message Date
Clement Tsang
2ec1fb56c9
uptick: 0.10.2 (#1544) 2024-08-05 20:28:17 -04:00
Clement Tsang
2f102bc1aa
uptick: 0.10.1 (#1527) 2024-08-01 15:56:39 +00:00
Clement Tsang
8afae3fbe8
uptick: 0.10.0 (#1510)
* uptick: 0.10.0

* docs: fix changelog

* bump lockfile

* match clap

* add/update schema

* add note
2024-08-01 02:45:57 -04:00
Clement Tsang
e4eb69dbd5
deps: bump deps as of 2024-07-027 (#1507)
* deps: bump root deps as of 2024-07-027

* bump lockfile
2024-07-27 01:39:22 -04:00
Clement Tsang
1208c459e4
refactor: remove time as a dependency outside of logging (#1506)
I was mostly just using the time crate for local log debugging and just to avoid converting seconds to h/m/s.

This PR makes it so we are only using it for local log debugging.
2024-07-26 05:12:29 +00:00
Clement Tsang
01c0c33451
other: include a toolchain file from now on (#1503) 2024-07-26 01:02:54 +00:00
Clement Tsang
29029b86fb
refactor: remove BottomError (#1498)
* refactor: remove BottomError

* remove thiserror

* some cleanup

* forgot to remove this
2024-07-22 07:30:03 +00:00
Clement Tsang
df569b2319
deps: bump deps as of 2024-07-03 (#1490)
* deps: bump root deps as of 2024-07-03

* deps: bump Cargo.lock as well
2024-07-04 04:50:05 -04:00
Clement Tsang
28416ddb57
deps: bump root + lock deps as of 2024-06-27 (#1488)
* deps: bump root deps as of 2024-06-27

* deps: bump lock as well

* also bump unicode_ellipsis
2024-06-27 23:40:05 -04:00
Clement Tsang
615ae1a3a8
deps: bump root deps and lockfile as of 2024-06-19 (#1486)
* deps: bump deps as of 2024-06-19

* bump lock as well

* fmt
2024-06-19 14:04:51 -04:00
Clement Tsang
3602429529
other: add schema test for uncommented default config (#1484)
* other: add schema test for uncommented default time

* ahhh

* forgot to disable this
2024-06-17 00:59:36 -04:00
Clement Tsang
7666a09162
feat: add way to automatically generate new json schemas (#1482) 2024-06-16 19:28:24 -04:00
Clement Tsang
982b7181a6
change: change how disk, temp, and net filters in config are set (#1481)
* change: change how disk, temp, and net filters in config are set

* run rustfmt

* update default config
2024-06-16 02:15:36 -04:00
Clement Tsang
46520d8b4e
uptick: 0.10.0 (#1479)
Note that I'm not releasing 0.10.0 _yet_, will do so after a few more
changes are done.
2024-06-06 22:06:53 -04:00
Clement Tsang
8885910442
refactor: remove lib and move some things around (#1477)
A loooooong time ago (wow, it's been 4 years apparently...), I made the brilliant (/s) decision to use both lib.rs and main.rs because I was trying to add tests in the tests folder that needed private access to some functions in the src - and at the time, the only way I could think of doing so was exposing bottom as a library and a binary.

This isn't necessarily bad, but for my use case, it's pretty unnecessary nowadays (since I've moved all my tests back into the source files) and adds complexity in looking for certain things, so it's high time we move things around and remove lib.rs. I also took the time to clean up some weird code I spotted along the way.
2024-06-05 06:00:21 +00:00
Clement Tsang
ee2e1fee1c
refactor: use struct for args instead of builder interface (#1472)
* start moving args

* tmp

* refactor config

* port over ags

* update changelog
2024-05-27 01:16:37 -04:00
Clement Tsang
71f6136a1e
deps: update deps as of 2024-05-26 (#1473)
* deps: update sysinfo to 0.30.12

* update some other dependencies
2024-05-26 23:39:54 -04:00
Clement Tsang
073ca890f7
refactor: extract unicode-ellipsis into its own crate (#1465)
* refactor: extract unicode-ellipsis into its own crate

* 0.1.4
2024-05-07 22:53:51 -04:00
Clement Tsang
398bf5930f
refactor: some string-related code cleanup/refactor (#1463)
* other: organize some utility function files

* deps: remove kstring

* refactor: some naming changes

* refactor: some more small refactoring/naming changes

* simplify to_cell to return a Cow

* enable lints
2024-05-07 02:03:30 -04:00
Clement Tsang
6591b750f6
deps: bump deps as of 2024-04-28 (#1450)
* deps: bump deps as of 2024-04-28

* fix tests

* extra test
2024-04-28 15:27:33 -04:00
Clement Tsang
53a01ad874
deps: bump clap-related dependencies, increase unofficial msrv to 1.74 (#1445) 2024-04-11 01:53:36 -04:00
Clement Tsang
aa3f80bcfa
deps: bump dependencies as of 2024-04-10, including sysinfo 0.30.10 (#1444) 2024-04-11 01:39:04 -04:00
Clement Tsang
c651e9a904
deps: bump dependencies as of 2024-03-23 (#1431) 2024-03-23 02:33:15 -04:00
Clement Tsang
f70aff89dc
deps: bump sysinfo to =0.30.7 (#1425) 2024-03-09 13:34:56 -05:00
Clement Tsang
92501d758c
deps: downgrade clap and run cargo update to build on 1.70 (#1423)
bottom doesn't have an MSRV, but if we can still build on older versions
of Rust then I'm all for it. The updated clap versions didn't bring
anything interesting so there's no real issue for me to downgrade IMO.
2024-03-04 22:58:15 -05:00
Clement Tsang
26162c0414
deps: bump root dependencies as of 2024-03-04 (#1422) 2024-03-04 19:57:15 -05:00
Clement Tsang
7ea72cc814
deps: bump sysinfo to 0.30.6 (#1420) 2024-03-04 19:23:13 -05:00
Clement Tsang
16b6773652
deps: update root dependencies (2024-02-14) (#1408) 2024-02-15 00:01:47 -05:00
Clement Tsang
b6660610d0
deps: bump ratatui to 0.26 (#1406)
* deps: bump ratatui to 0.26

* adjust process width

* a few nonzero optimizations

* add a todo

* update comments to be less confusing about time chart
2024-02-03 19:59:12 -05:00
Clement Tsang
5cf17f6015
other: flatten process config struct and clean up help text (#1395)
* refactor: flatten process config field

* other: clean up some doc formatting using indoc and breaklines

* fix broken test

* remove default as that breaks things for now

* add test

* more tests
2024-01-21 05:47:13 -05:00
Clement Tsang
f07994ef68
deps: bump sysinfo to =0.30.5 (#1390)
* deps: bump sysinfo to =0.30.5

* fix an import

* fix stuff for linux

* fix temps

* some fmt

* disks

* oops

* fix some bugs
2024-01-15 20:43:14 -05:00
Clement Tsang
7be98344e9
ci: clean up some jobs in CI; bump Rust-related actions (#1388)
* ci: clean up some jobs in CI; bump Rust-related actions

* also update codecov

* rearrange

* comments
2024-01-15 06:01:04 -05:00
Clement Tsang
0a0c3c19b5
deps: bump dependencies as of 2024-01-15 (#1386) 2024-01-15 04:38:18 -05:00
Clement Tsang
dd66ae774c
refactor: simplify some config -> constraints code (#1383)
* refactor: simplify some config -> constraints code

* iteratively progress...

* update bcr; this might need testing since I removed some old proc code

* widget side

* fix battery

* fix widget tests with bandaid for now

The issue was that the calculations assume a certain ratio for CPU
legends.

* add some tests

* bump up

* fix proc drawing issues

So with the proc widget in certain places, there would be a panic during
constraint determination.

Looks like back when I wrote this I made some gross assumptions about
certain things. In particular, the problem here was that the search
added an additional "one" height, so that needs to be accounted for
after we removed the "doubling" code.

* tests

* fix tests

* reorganize tests

* clippy

* fix cross tests not working

* fix builds for android
2024-01-15 04:19:18 -05:00
ClementTsang
f093902aef
other: fix deploy profile 2024-01-11 23:39:17 -05:00
Clement Tsang
6b62176554
refactor: rearrange/resort args (#1376)
* clean up Cargo.toml

* some small cleanup

* refactor: group together similar args in the help generation and code

This groups together related arguments in both the help text and the
code itself.

* update changelog

* clippy

* builder pattern instead
2024-01-10 19:07:22 -05:00
Clement Tsang
e71048e394
other: update lints (#1369)
I have `missing_docs` disabled for now as that'll take a long time to
get through... maybe in a separate PR.
2024-01-01 05:34:53 -05:00
Clement Tsang
631f7208e4
deps: bump anyhow, clap, and thiserror (#1365) 2023-12-27 23:13:07 -05:00
Justin Martin
28d2950d92
deps: update ratatui version (#1362)
* cargo update ratatui

* replace convert_arc_labels with convert_mem_labels

* remove redundant generic

---------

Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
2023-12-25 17:28:54 -05:00
Clement Tsang
a1168cac67
refactor: remove once_cell (#1361)
* refactor: remove once_cell

* some missing fixes
2023-12-23 04:35:42 -05:00
Clement Tsang
fab86e833a
other: add back local time in debug logs (#1346)
* other: add back local time in debug logs

This still has a UTC fallback.

* cleanup and some warnings
2023-12-02 04:53:31 -05:00
Clement Tsang
2db881e3cf
deps: bump dependencies as of 2023-11-27 (#1338) 2023-11-27 23:06:51 -05:00
Clement Tsang
cf447e6a4e
deps: update sysinfo to 0.29.11 (#1337) 2023-11-27 22:37:50 -05:00
Justin Martin
e4a6e751ec
feature: Add gpu proc info (#1276)
* Add gpu util, power and procs.

Consolidated gpu calls into `data_harvester`.

Changed config flag from `enable_gpu_memory` to `enable_gpu`.

Added GPU utilization to the cpu widget.

Added GPU process memory usage and utilization percentage to the proc widget.
Added key binds for gpu process toggling.

Added GPU power usage to the battery widget.
Added bounds check to battery widget header.
Show battery widget header when `gpu_enable`.

Added feature flag `legacy-functions` to `nvml-wrapper`.

updated config file(s).
updated help text.
updated docs.

* Code Review:

Remove GPU util from cpu widget
Remove GPU power from battery widget
Use reference for gpu widgets_to_harvest
Extract match arm to function for feature gate

* Code Review: add gmem% toggle

* Do not poll gpu temp when filtered

* Code Review Two Changes:

adjust doc wordings
remove extra references
remove extra widget harvest checks
init proc gpu values
use convert_temp_unit for gpu temp
2023-11-19 23:54:15 -05:00
Clement Tsang
a5bbe5e333
deps: bump toml_edit to 0.21.0 (#1320)
* deps: bump toml_edit to 0.21.0

* fix some formatting
2023-11-16 17:24:45 -05:00
Clement Tsang
5d455354dd
bump clap and add nushell/fig completions (#1300)
* add nushell and fig completion generation

* now bump clap

* bump cargo-action too

* add rust-version key and set to 1.70.0, N-2
2023-09-12 03:36:45 -04:00
Clement Tsang
6256742f81
deps: bump sysinfo to =0.29.10 (#1298) 2023-09-11 00:13:17 -04:00
Clement Tsang
f38fbf0d8b
ci: add .desktop file (#1296)
* ci: add .desktop file

* move to a separate desktop folder

* also skip one more file
2023-09-06 19:12:28 -04:00
Clement Tsang
1ef0c05aa6
deps: bump dependencies as of 2023-08-26 (#1287) 2023-08-26 21:16:43 -04:00
Clement Tsang
11676bb6c1
deps: pin serde to 1.0.188 (#1286)
* deps: pin serde to 1.0.188

* changelog
2023-08-26 21:02:22 -04:00