Clement Tsang
228da99489
refactor: move around configuration-related files ( #1370 )
...
* rename general utils file
* refactor: move around some configuration files
* more shuffling around
* fix some ugly formatting
2024-01-01 17:20:40 -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
cc3833289f
feature: support human times for rate ( #1221 )
2023-06-23 03:42:16 -04:00
Clement Tsang
2e5d59f84d
other: clean up some cfg usage ( #1205 )
...
* other: convert some cfg if
* fix
2023-06-13 01:25:20 -04:00
Clement Tsang
3618449d42
deps: update clap to 4.x ( #1107 )
...
* deps: update clap to 4.x
* changelog
* fix test
* add gpu feature/flag test
2023-04-21 00:07:34 -04:00
Clement Tsang
4ca68b621d
ci: fix missing target in tests ( #757 )
...
Fix missing target parameter for primary test targets (e.g. aarch64), and adjust integration tests to work with cross.
2022-06-27 01:36:45 -04:00
ClementTsang
798683b81f
other: add test for battery flag if battery feature is off
2022-05-01 17:15:54 -04:00
Clement Tsang
d297ee4639
refactor: remove some simple as-casts ( #697 )
...
Remove some simple as casts that are easy to change to .into(), or easy to check.
2022-03-27 22:01:06 -04:00
Clement Tsang
01f6bddab6
deps: update clap to 3.x ( #690 )
...
Updates bottom to use clap 3.x, along with some small refactoring changes.
2022-03-07 22:53:02 -05:00
Chloe Brown
cd1fe8b495
bug: Tests try to modify user home directory ( #535 )
...
Fixes a bug where running `cargo test` would try to create a
configuration file for the user.
2021-07-06 21:01:22 +01:00
Clement Tsang
fb7b1226fd
feature: add nord and nord-light colours ( #406 )
...
Adds colour schemes for Nord, along with a light variant.
2021-02-15 14:12:43 -05:00
ClementTsang
663ae6c5c2
bug: fix broken check from last commit, add tests
2020-09-01 03:08:46 -04:00
Clement Tsang
a4ddd649e1
refactor: Update error messages w/ anyhow and thiserror ( #216 )
...
Refactoring and updating of error messages + tests to be more useful.
2020-08-31 23:59:33 -04:00
Clement Tsang
364049ee5f
chore: update travis a bit for msrv
2020-05-04 18:53:05 -04:00
ClementTsang
1ff2606c90
update tests to deal with msrv
2020-05-04 18:23:34 -04:00
ClementTsang
f4c6cb95e4
test: add config tests, update arg tests
2020-04-23 15:33:51 -04:00
ClementTsang
4d512afdae
refactor: update arg tests to use new binary env
2020-04-23 13:29:10 -04:00
Clement Tsang
0b1d84fdf5
Add modularity to widget placement and inclusion ( #95 )
2020-04-01 20:31:43 -04:00
ClementTsang
648864176f
Updated documentation, made error in args clearer
2020-03-10 01:51:28 -04:00
ClementTsang
e5588f1606
Add hiding time and autohiding time.
2020-03-09 00:52:29 -04:00
ClementTsang
78a05bc683
Fixes bug with too large inputs causing a panic
...
We would prefer a more graceful error message stating what went wrong.
Caught by the Travis test.
2020-03-08 22:27:41 -04:00
ClementTsang
2435b9d90c
Fixed tests.
2019-09-14 22:29:40 -04:00
ClementTsang
4846175638
Added error util, finished network graph.
2019-09-14 21:48:29 -04:00