Commit Graph

163 Commits

Author SHA1 Message Date
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
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
Yinghao Wang
4e71c79980 Fix: Align boxes when Cpu bottom and Gpu on 2025-11-18 16:41:41 +00: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
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
Jakob P. Liljenberg
1208651978 Merge pull request #1306 from vandabbin/pause_proc_list 2025-10-27 22:16:18 +01: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
Steffen Winter
a22eaf314a refactor: use std::string::contains 2025-10-26 16:18:20 +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
Emilio B. Pedrollo
040171400a feat: Introduce cpu frequency display modes 2025-10-12 15:40:20 +02:00
Yusuf Salk
1c6413db04 feature: add process renice functionality
This adds the ability to change the nice value of a process from within
btop. A new menu is introduced, accessible by pressing 'N', which allows
the user to input a new nice value for the selected process.

Fixes #1245
2025-10-07 14:07:22 +03:00
Denis Mikhaylik
e51f5c202f Remove reduntant symbols in tree view (#948) 2025-09-10 15:20:16 +00:00
Steffen Winter
db34cb55a4 Don't terminate on GPU access failure
Closes: https://github.com/aristocratos/btop/issues/899
2025-09-02 07:10:44 +00:00
Thomas Müller
db0514fa32 feat: display CPU power draw & fix GPU+load avg overwriting core info
This change was based on YuriiShkrobut's initial PR from here:
https://github.com/aristocratos/btop/pull/595

Co-authored-by: Yurii Shkrobut <yurii.shkrobut@gmail.com>
2025-08-17 10:01:25 +02:00
Sam Kirby
185d61d1aa match formatting for units 2025-07-28 14:46:57 +02:00
Sam Kirby
d1b391b2fb fix layout issue when enc/dec meters are unavailable 2025-07-28 14:46:57 +02:00
Sam Kirby
18cb61b7d6 Add utilisation meters for GPU hardware video encoder and decoder 2025-07-28 14:46:57 +02:00
aristocratos
86ec5fd062 Changed decimal points to always be dots regardless of locale, issue #1183 2025-07-18 00:20:18 +02:00
xDMPx
d758fc8dc6 Fix incorrect positioning and start symbol of second title introduced in 2538d89ed9 2025-05-12 22:33:32 +00:00
aristocratos
ffcd064a36 Fix dangling reference warnings for GCC 13 and later 2025-05-11 01:07:52 +02:00
aristocratos
f1482fe87e Fix process arguments appearing outside proc box by replacing ASCII control codes with blankspace, issue #1080 2025-05-01 21:59:49 +02:00
Steffen Winter
2538d89ed9 perf: use string view everywhere
This has the potential to avoid allocations when something non allocated
is implicitly converted.
2025-05-01 20:36:27 +02:00
Steffen Winter
c52b2c4c93 perf: avoid copies by moving string into struct 2025-05-01 20:36:27 +02:00
Steffen Winter
99713316e8 perf: avoid copies with capture-by-reference 2025-05-01 20:36:27 +02:00
Marie Ramlow
4812ac8280 Fix typo: Mhz -> MHz 2025-05-01 10:53:44 +00:00
bad code
f72d11fe52 Avoid copy in constructor
Enable compilers to move temporary variables into the constructor.
2025-04-24 19:04:02 +00:00
bad code
889d8efce4 Drop trailing newlines 2025-04-24 19:04:02 +00:00
bad code
f366b38f85 Avoid copies in ltrim() and ltrim() 2025-04-23 20:15:12 +00:00
Taha YASSINE
e4953efbea Replace brackets with arrows in net box 2025-04-13 15:34:56 +00:00
Taha YASSINE
e68f2a01d1 Replace brackets with arrows in proc box 2025-04-13 15:34:56 +00:00
aristocratos
f3446ed1cf Show GPU Watt fractions when below 100W 2024-09-23 22:41:47 +02:00
aristocratos
928d66d58f Set Intel GPU baseline max power at 10W 2024-09-22 01:24:46 +02:00
aristocratos
4210f5fc88 Fix missing core percentages, issue #792 2024-09-21 21:34:11 +02:00
aristocratos
35857f85eb GPU fixes 2024-09-21 20:16:01 +02:00
Gerald Pottler
4702716ae0 Update spacing 2024-06-23 23:31:49 +02:00
Gerald Pottler
be1b9c36dc fix io_graph_speeds parsing
Issue #868
2024-06-23 23:15:04 +02:00
aristocratos
3f384c0a5d Fixed missing CPU core temps when too small to show core temp graphs, issues #792 #867 2024-06-01 14:09:49 +02:00
aristocratos
97d2fb567a Fixed missing IO graphs in IO mode, issue #867 2024-06-01 13:45:10 +02:00
Steffen Winter
d200ce45ae Show time in days when remaining battery exceeds an estimation of 24h 2024-04-30 15:32:41 +02:00
Jakob P. Liljenberg
f1f37ad6af Merge branch 'main' into battery-power-2 2024-02-11 16:39:59 +01:00
vsey
40cdb92b8e Merge branch 'aristocratos:main' into battery-power-2 2024-01-22 22:01:14 +01:00
Helmut K. C. Tessarek
6a6f514f80 fix: increase interface name length to 15 2024-01-12 11:28:42 -05:00
aristocratos
62964693b3 Fixed gpu boxes visibility state not saved and removed unnecessary comments 2024-01-07 14:51:03 +01:00
aristocratos
057f4594fb Fixed config variable show_gpu_info working correctly 2024-01-07 14:10:40 +01:00
vsey
fb6af5ddb4 Merge branch 'aristocratos:main' into battery-power-2 2023-12-29 01:14:34 +01:00
aristocratos
285fb215d1 Proc::draw() -> Use std::erase_if() instead of for loops 2023-12-28 13:10:18 +01:00