2657 Commits
Author SHA1 Message Date
Clement Tsang 7d65d62c83 ci: use Rust 1.99 (#2275) nightly-7d65d62c-1791077604 2026-10-03 18:48:43 +09:00
Clement Tsang cea7547676 docs: update contribution doc (#2274) nightly-cea75476-1790902690 2026-10-01 00:56:58 -04:00
Clement Tsang 03dd52bfe5 deps: bump starship-battery to 0.12.0 (#2272)
Bumps starship-battery to the newest 0.12.0 version. A small amount of code change was needed due to the new Paused state.

Changelog: https://github.com/starship/rust-battery/blob/main/CHANGELOG.md#0120---2026-09-27
nightly-03dd52bf-1790816830
2026-09-30 05:31:39 -04:00
Clement Tsang 048deff943 other: allow clippy lint for regex creation in loops (#2270)
https://github.com/rust-lang/rust-clippy/pull/17681 got merged a while ago - this makes it so the `regex_creation_in_loops` clippy `expect` "fails", since it is actually now not triggered.

Unfortunately, this is only in beta from the looks of it at the moment, so I can't just remove it entirely. This change just makes it an unconditional `allow` with a note to get rid of it at some point once it's stable.

Note this only affects macOS, where we use this. This was fine because it's only actually triggered once, and then cached via a `OnceLock`.
2026-09-29 05:13:21 +00:00
Clement Tsang 520bc0cd66 other: update PR and issue templates (#2268)
Making it so that new features have to go through a feature request first. I'm somewhat not a fan of getting random feature PRs out of the blue - I feel bad saying no too. I would rather be upfront and say that look, if you want a feature, make a feature request and discuss it first before you waste time/tokens/whatever on it.
2026-09-29 04:25:31 +00:00
Clement Tsang f0ddbe761a docs: update changelog (#2269) 2026-09-29 00:21:49 -04:00
Clement Tsang 5ad904068d change: show decimal places for disk usage info (#2266)
The way we're doing this for now is:

- If it's less than 100, always show 2 decimal places unless it ends in 0; if so, trim it away
- If it's less than 1000, then do the same but with 1
- If it's over 1000, show no decimal places.
2026-09-28 07:34:01 +00:00
Clement Tsang fdc298716e bug: fix scrollbar not drawing if the height was 2 or less (#2261) 2026-09-22 00:56:15 -04:00
Clement Tsang eb9c47d8d4 other: make scrollbar enabled by default (#2260) 2026-09-22 00:56:14 -04:00
Clement Tsang 1426cbbaa0 other: make schema script use same target dir (#2259)
The best way of doing this is probably something like a workspace... but I'm not really in the mood to refactor this into a workspace at the moment, so this will have to do :p
2026-09-22 01:52:14 +00:00
Clement Tsang 36ad2cdaee docs: update changelog (#2258) 2026-09-21 21:39:23 -04:00
allcontributors[bot] 77b77407c6 docs: add abuhurayraniloy as a contributor for code (#2257)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-09-21 17:23:09 -04:00
Abu Hurayra Niloy 4136d204bc feature: add process swap column for Linux (#2224)
Adds Linux support for process swap tracking + a column in the widget.
2026-09-21 17:22:46 -04:00
Clement Tsang 8ddd0aa00e docs: update AI policy formatting (#2252) 2026-09-17 04:01:33 -04:00
Clement Tsang d7b56f6ab7 feature: support binary prefix option for disk table I/O (#2251)
This is a follow-up to
https://github.com/ClementTsang/bottom/pull/2236#issuecomment-5689665534 so the binary prefix configuration also affects the disk I/O display. Note this does not touch the graph at the moment, just the table.
2026-09-16 00:05:49 -04:00
Clement Tsang 8631df3f48 docs: update changelog (#2250) 2026-09-15 20:49:41 -04:00
allcontributors[bot] c72acfd8e3 docs: add pederbe as a contributor for code (#2249)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-09-15 20:47:27 -04:00
Peder Bergan c10a2adbd4 feat: add configurable binary disk capacity units (#2236)
Enable binary disk capacity units with:

```toml
[disk]
use_binary_prefix = true
```

Or pass `--disk_use_binary_prefix` (alias `--disk-use-binary-prefix`). The CLI flag takes precedence over a false config setting. Decimal units remain the default.

Used, Free, and Total use the existing binary conversion helper. For example, 536,870,912,000 bytes changes from `537GB` to `500GiB`. Percentages, sorting by raw byte values, I/O rates, and network units retain their existing behavior.

The change passes the option from argument/config parsing through application settings and collected disk data to cell formatting. Four regression tests cover option precedence and both CLI spellings, collection-to-cell wiring, unit boundaries, missing values, percentages, I/O behavior, and sorting.
2026-09-15 20:47:06 -04:00
Clement Tsang 25b6b36299 deps: bump dirs to 7.0.0 (#2248)
This apparently changes the preference directory to use `RoamingAppData` rather than `LocalAppData` (https://codeberg.org/dirs/dirs-rs#7); I don't think this affects me though as I don't find any usage of it.
2026-09-15 01:07:05 -04:00
Clement Tsang 3210213014 deps: bump mach to 0.7.0 (#2247)
Bumps mach to newest version. See changelog here: https://github.com/JohnTitor/mach2/releases/tag/0.7.0
2026-09-14 14:48:52 -04:00
Clement Tsang 875e892687 feature: add more pipe gauge bar fill options (#2245)
Adds block and square character options for pipe gauge widgets.

May still redesign this (maybe add option for a background), but this is fine for now.
2026-09-12 16:28:29 -04:00
Clement Tsang e4c035f845 deps: bump nvml to 0.13.0 (#2246)
Bumps nvml-wrapper to the latest version.

See https://github.com/rust-nvml/nvml-wrapper/blob/main/CHANGELOG.md#0130-released-2026-08-31
2026-09-12 09:48:54 -04:00
Clement Tsang 05acca2ea1 ci: pin debian build image version (#2244)
Pin the image to the versions built in https://github.com/ClementTsang/cargo-deb-arm/commit/b611b6b2fa802446cfebdc38671fe46c3f0766d3 for now (bump to bookworm).
2026-09-10 17:11:12 -04:00
Clement Tsang 8b2aef356a docs: add ghr install option to README (#2242) 2026-09-10 01:17:11 -04:00
Clement Tsang b77d317502 docs: update changelog (#2240)
Update changelog as of 2026-09-07.
2026-09-07 00:16:57 -04:00
Clement Tsang 861791698e feature: initial Intel GPU support to get process usage (#2239)
This adds very basic GPU support for getting process usage for Intel GPUs on Linux. Note this PR does not handle memory/VRAM usage for now. The implementation is basically a clone of the AMD GPU one.
2026-09-07 00:11:05 -04:00
Clement Tsang 6323bef6f0 packaging: use WixUI_Advanced for MSI installer UI (#2237) 2026-09-06 00:14:41 -04:00
Clement Tsang a64b7a900f packaging: allow toggling to user scope in Windows installer (#2233) 2026-09-06 00:14:41 -04:00
Clement Tsang 16ad7783a2 ci: use rust 1.98.1 (#2234)
Bump the Rust version to 1.98.1 in CI.
2026-09-05 00:55:46 -04:00
Clement Tsang c0cfadcf60 docs: bump mkdocs-material version to 9.7.7 (#2235)
Didn't realize this was available; this fixes an XSS vuln (see https://github.com/squidfunk/mkdocs-material/releases/tag/9.7.7).
2026-09-04 03:34:34 -04:00
Clement Tsang fe79718e17 refactor: move GPU collection files around (#2231)
No functionality change, this just rearranges the file structure a bit.
2026-09-04 02:00:38 -04:00
Clement Tsang f9e1703727 Improve linux nvidia gpu caching (#2230)
Changes it from a 10s full cache to a 60s conditional cache; we still check the power state now even when using the cached list.
2026-09-03 03:18:51 -04:00
Clement Tsang 30fb02c187 refactor: move Linux DRM-related collection code into its own file (#2228)
Doing this as refactoring work before I start working on supporting Intel GPUs, which are expected to share the same collection code. This should have no functional change.
2026-09-02 02:48:18 -04:00
Clement Tsang e4ba8c657b refactor: run nightly format (#2229)
Run nightly format as of 2026-08-31.
2026-09-01 10:02:00 +00:00
Clement Tsang 7c472015b5 docs: add missing disk I/O graph value to layout docs (#2227) 2026-09-01 00:19:56 +00:00
Clement Tsang 175c12edc4 bug: don't check sleeping NVIDIA GPU/devices to avoid waking them on Linux (#2225)
This PR makes it so that we should hopefully avoid waking up NVIDIA GPUs while gathering info (on Linux only). It mostly follows how we were doing it for AMD devices, which required a bit of refactoring to get it to work with the NVML library I was using.

Note that, as mentioned above, it does not change behaviour for Windows (or other OSes that work with NVIDIA GPUs) at the moment, as I need to use some fairly OS-specific logic to get it to work on each platform from the looks of it.

Unfortunately, I no longer have any Nvidia-based machines to test with, let alone laptops with Optimus... so this may be hard to verify whether it works on my end.
2026-08-31 07:09:41 +00:00
Clement Tsang 3066c959d0 ci: pin netbsd cross apt install (#2223)
Pins curl and xz-utils versions for the netbsd pre-build script. This pins it to the most recent versions as of writing.

Note: may be worth exploring just making a custom image that has this rather than doing it each time beforehand.
2026-08-28 01:37:26 -04:00
Clement Tsang 9a0cd530b8 ci: fix bug around Rust version pinning in BSD test script (#2222)
Test actually didn't run and I didn't realize 🤦; CI didn't check if the scripts dir was updated. I've fixed both the script and the skip check.
2026-08-27 06:40:00 -04:00
Clement Tsang d08c2b9686 ci: bump download-artifact to v8.0.1 (#2219) 2026-08-27 09:53:13 +00:00
Clement Tsang d2158ca3c2 ci: bump deploy-pages to v5.0.0 (#2217) 2026-08-27 09:53:13 +00:00
Clement Tsang 8850188f58 ci: fix bsd test script not respecting pinned Rust version (#2221)
I had made it so it only used stable, which was generally right but not always (e.g. I downgrade Rust version like right now).

Note this had no effect on actually building the binaries as those use cross.
2026-08-27 09:48:48 +00:00
Clement Tsang e08cf8e5ab ci: bump rust-cache to 2.9.2 (#2218)
Bump since it's been a while. Changelog: https://github.com/Swatinem/rust-cache/blob/6323deb102c322ba6fcbdcafc7e3dddab59af2b6/CHANGELOG.md#292
2026-08-27 09:43:27 +00:00
Clement Tsang dfbbc070ff ci: bump upload-pages-artifact to v5.0.0 (#2216) 2026-08-27 04:47:26 -04:00
Clement Tsang e22236a928 uptick: 0.14.9 again (#2215)
🤦 I forgot to bump Cargo.toml.
0.14.9 nightly-0ba6455f-1787820333
2026-08-27 07:32:23 +00:00
Clement Tsang d5c3a62eb1 uptick: 0.14.9 (#2213) 2026-08-27 03:09:45 -04:00
Clement Tsang eb81d709f7 ci: revert to using Rust 1.97.1 (#2214) 2026-08-26 05:28:56 +00:00
Clement Tsang 0547a455c2 docs: update changelog (#2212) 2026-08-25 03:14:48 -04:00
allcontributors[bot] c7605749b5 docs: add fxzzi as a contributor for code (#2211)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-08-25 03:11:19 -04:00
fazzi 4be359f9ff bug: handle Linux cmdline that don't have null byte separators (#2210) 2026-08-25 03:09:06 -04:00
allcontributors[bot] 6aadfb3f14 docs: add Oseryx as a contributor for code (#2208)
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-08-24 01:07:11 -04:00