765 Commits

Author SHA1 Message Date
Steffen Winter
7e778d1766 feat: default to lowercase truthy values
This makes the config toml compatible.
2025-12-23 13:54:22 +01:00
Steffen Winter
8844733e07 fix: point log level description to new log file 2025-12-23 13:54:22 +01:00
Steffen Winter
10086d6009 feat: add cli option to dump default config
Closes: https://github.com/aristocratos/btop/issues/1394
2025-12-23 13:54:22 +01:00
Yinghao
c2b477ec9f feat: mouse drag support for scrollbar (#1401)
* Fix: tab indent instead of spaces

* Feat: add mouse dragging of scrollbar

* Refactor: cleanup of mouse processing for process box actions
2025-12-22 11:44:03 +00:00
Yinghao
e81c2b4b44 fix: shorten humanized units and remove dead code (#1393)
* Refactor: remove unreachable code

* Fix: shortening of humanized units
2025-12-21 18:13:03 +00:00
Jakob P. Liljenberg
0d08551b41 Merge pull request #1357 from adeci/themes-dir 2025-12-02 22:15:13 +01:00
Jakob P. Liljenberg
c2a56aaa1e Merge pull request #1377 from TheSovietPancakes/main 2025-12-02 22:07:38 +01:00
Yinghao
d4eb16f5d1 fix: respect cpu_graph_lower = "Auto" (#1379)
Sometimes GPU data wasn't collected the cpu_graph_lower option was set to "Auto".

Closes: https://github.com/aristocratos/btop/issues/1368
Co-authored-by: Steffen Winter <steffen.winter@proton.me>
2025-11-26 20:44:58 +00:00
TheSovietPancakes
5332b1f0c9 Fixed GPU box positions in low height settings 2025-11-26 01:39:11 -06:00
TheSovietPancakes
bfb7316127 Fixed GPU rendering 2025-11-25 22:26:47 -06:00
Steffen Winter
ede6b18eb7 refactor: use c++ 23 ranges for string split 2025-11-22 18:15:47 +01:00
Jakob P. Liljenberg
f8188b1f43 Merge pull request #1367 from yinghao-w/fix-box-rendering 2025-11-22 17:17:55 +01:00
Santhosh Raju
6f2c418df2 Bugfixes and improvements for NetBSD. 2025-11-22 13:43:01 +01:00
Santhosh Raju
f88ecb7757 Help btop find its themes in NetBSD. 2025-11-22 13:42:34 +01:00
Yinghao Wang
4e71c79980 Fix: Align boxes when Cpu bottom and Gpu on 2025-11-18 16:41:41 +00:00
Thomas Müller
af4a0c3e84 fix: cpu per-thread totals not reaching 100% (#1366) 2025-11-18 14:54:45 +00:00
Steffen Winter
7123634d74 chore: add license header 2025-11-18 10:23:03 +01:00
Steffen Winter
b8a3bca7ec fix: add missing include 2025-11-18 10:22:46 +01:00
Jakob P. Liljenberg
a077c3e2bf Merge pull request #1362 from v1cont/main 2025-11-17 22:41:41 +01:00
Yinghao Wang
8bae5869a2 Pass only static duration strings to Config::set in Config::apply_preset 2025-11-15 18:07:59 +00:00
Victor Ananjevsky
ad0a5dca7a fix segfault on musl systems 2025-11-13 18:17:56 +02:00
Yinghao
69c2cda0dd fix: don't over-/underflow when parsing --update argument (#1359) 2025-11-11 09:26:26 +00:00
adeci
04c3a938a8 feat: add --themes-dir flag 2025-11-10 10:04:49 +07:00
Barry Van Deerlin
18c4019853 Fix: missed changing mouse mapping for hide button
I missed the line of code that was mapping the mouse for the hide button.

It now is mapped properly when the detailed view process is selected in the list.
2025-11-04 19:09:49 -08:00
Alvaro Parker
5b32da5a3a fix: skip first argument of argv (#1339)
Introduced in https://github.com/aristocratos/btop/pull/1325
2025-11-03 13:27:11 +00:00
Steffen Winter
520a4bd611 test: add test harness with ctest 2025-11-02 17:16:56 +01:00
Jakob P. Liljenberg
7b4b5e568d Merge pull request #1332 from vandabbin/hide-not-grey-when-selected 2025-11-02 09:16:45 +01:00
Barry Van Deerlin
fd8c4453c4 fix tty theme for pause banner
was accidently using ansi foreground color instead of background color for banner
2025-11-01 17:04:52 -07:00
Barry Van Deerlin
9bfc16f5cd detailed view hide button highlights
when detailed view process is selected in the list it now highlights the hide button
2025-11-01 17:00:16 -07:00
Barry Van Deerlin
cccf026b3d fix: stabilize sort in tree mode when filter is applied (#1328) 2025-10-30 20:14:48 +00:00
Barry Van Deerlin
902856bb89 continue on new processes while paused 2025-10-27 22:18:23 -07:00
Steffen Winter
2ce5165fad refactor: simplify get_log_file 2025-10-27 22:40:31 +01:00
Jakob P. Liljenberg
1208651978 Merge pull request #1306 from vandabbin/pause_proc_list 2025-10-27 22:16:18 +01:00
Barry Van Deerlin
8a3ba8994a flip name, command, and user sorting
The name, command, and user sorting methods seemed to be sorting opposite of what would be expected

This switches the default sorting direction for these methods
- name
- command
- user
2025-10-26 19:34:57 -07:00
Barry Van Deerlin
a74f678df2 Implement feat Process list pausing
This feature sets a keybinding 'F' that pauses the processes list.
- It doesn't stop collection.
- It stops new processes from being added and dead processes from being removed.
- It also disables sorting except when:
    - the sorting mode is changed.
    - switching between normal and tree view modes.
- While paused the user can still scroll through the processes list.
- Detailed view can still be opened and it displays current information.
- Details view shows accurate elapsed time for dead processes
- When pausing is enabled it displays a banner on the last line of the processes list.
- Added menu option for preserving cpu and mem usage of dead processes or not
2025-10-26 19:22:58 -07:00
aristocratos
6847a44c26 Add missed conditionals for terminal sync toggle 2025-10-26 19:55:30 +01:00
aristocratos
d0cbaf772d Add configuration toggle for terminal synchronization 2025-10-26 19:44:04 +01:00
Steffen Winter
a22eaf314a refactor: use std::string::contains 2025-10-26 16:18:20 +01:00
Steffen Winter
45a4da8639 refactor: use std::ranges::to to construct iota views 2025-10-26 13:25:11 +01:00
Steffen Winter
064aeb9de2 refactor: use std::expected to indicate failure 2025-10-26 13:24:57 +01:00
Steffen Winter
485a52687a feat: display container engine 2025-10-25 14:59:12 +02:00
Steffen Winter
53e008f459 feat: respect effective cpus from cgroup
Parse `/sys/fs/cgroup/cpuset.cpus.effective` and highlight only active
cpus with color in cpu widget.

Closes: https://github.com/aristocratos/btop/issues/1151
2025-10-25 14:58:58 +02:00
Barry Van Deerlin
a6681362c1 Fix load average and GPU watts leaking past box border (#1304) 2025-10-25 11:41:05 +00:00
Barry Van Deerlin
2fc829b00a Fix redraw in proc list when changing sort order (#1309)
In tree-view mode and with the proc list is collapsed, changing the sort order will not clear the list properly because of a wrong offset.
2025-10-25 09:38:29 +00:00
achille
dd86355170 Handle missing SMC gracefully on macOS (#1305) 2025-10-25 09:20:36 +00:00
Barry Van Deerlin
085c2dacbe Use right key codes to match f1 and f2 keys (#1300) 2025-10-20 10:43:03 +00:00
irabrine
de82c0fa08 make new menu option not overflow 2025-10-18 00:50:06 +02:00
irabrine
22151a0fd4 added tree toggle of expand/collapse for children of process 2025-10-18 00:50:06 +02:00
aristocratos
5750203150 Fix menu entry 2025-10-18 00:40:48 +02:00
Dustin Miller
4fe2a693cf Added ability to set which gpu vendors to enable
fix style

added quotes to highlight options

added braces and fixed indentation
2025-10-18 00:31:33 +02:00