Go to file
aristocratos 5d4e2ce182 Loads...
2021-07-21 03:17:34 +02:00
Img Init 2021-05-06 20:32:03 +02:00
include Added Meter class 2021-05-27 22:29:36 +02:00
src Loads... 2021-07-21 03:17:34 +02:00
themes Added themes and 16 color mode 2021-06-20 22:07:04 +02:00
.editorconfig Added 2021-05-09 22:27:59 +02:00
.gitignore Split up code in multiple files 2021-05-08 14:56:48 +02:00
CHANGELOG.md Init 2021-05-06 20:32:03 +02:00
CODE_OF_CONDUCT.md Init 2021-05-06 20:32:03 +02:00
CONTRIBUTING.md Loads... 2021-07-21 03:17:34 +02:00
LICENSE Init 2021-05-06 20:32:03 +02:00
Makefile Added Input::process for input actions and Runner:: namespace for multithreading collection and drawing 2021-07-18 15:44:32 +02:00
README.md Added Input::process for input actions and Runner:: namespace for multithreading collection and drawing 2021-07-18 15:44:32 +02:00

btop++

Linux Usage c++20 btop_version Donate Sponsor Coffee

Index

News

Under development

5 May 2021

This project is gonna take some time until it has complete feature parity with bpytop, since all system information gathering will have to be written from scratch without any external libraries. And will need some help in the form of code contributions to get complete support for BSD and OSX.

If you got suggestions of C++ libraries that are multi-platform and are as extensive as psutil are for python, feel free to open up a new thread in Discussions, it could help speed up the development a lot.

Documents

CHANGELOG.md

CONTRIBUTING.md

CODE_OF_CONDUCT.md

Description

Resource monitor that shows usage and stats for processor, memory, disks, network and processes.

C++ version and continuation of bashtop and bpytop.

Features (at release)

  • Easy to use, with a game inspired menu system.
  • Full mouse support, all buttons with a highlighted key is clickable and mouse scroll works in process list and menu boxes.
  • Fast and responsive UI with UP, DOWN keys process selection.
  • Function for showing detailed stats for selected process.
  • Ability to filter processes, multiple filters can be entered.
  • Easy switching between sorting options.
  • Send SIGTERM, SIGKILL, SIGINT to selected process.
  • UI menu for changing all config file options.
  • Auto scaling graph for network usage.
  • Shows message in menu if new version is available
  • Shows current read and write speeds for disks

Themes

Btop++ uses the same theme files as bpytop and bashtop (some color values missing in bashtop themes) .

See themes folder for available themes.

The make install command places the default themes in [$PREFIX or /usr/local]/share/btop/themes. User created themes should be placed in $XDG_CONFIG_HOME/btop/themes or $HOME/.config/btop/themes.

Let me know if you want to contribute with new themes.

Support and funding

You can sponsor this project through github, see my sponsors page for options.

Or donate through paypal or ko-fi.

Any support is greatly appreciated!

Prerequisites

For best experience, a terminal with support for:

  • 24-bit truecolor (See list of terminals with truecolor support)
  • 256-color terminals are supported through 24-bit to 256-color conversion when setting "truecolor" to False in the options or with "-lc/--low-color" argument. (16 color TTY mode now available as well.)
  • Wide characters (Are sometimes problematic in web-based terminals)

Also needs a UTF8 locale and a font that covers:

  • Unicode Block “Braille Patterns” U+2800 - U+28FF (Not needed in TTY mode or with graphs set to type: block or tty.)
  • Unicode Block “Geometric Shapes” U+25A0 - U+25FF
  • Unicode Block "Box Drawing" and "Block Elements" U+2500 - U+259F

Notice (Text rendering issues)

If you are having problems with the characters in the graphs not looking like they do in the screenshots, it's likely a problem with your systems configured fallback font not having support for braille characters.

See Terminess Powerline for an example of a font that includes the braille symbols.

See comments by @sgleizes link and @XenHat link in issue #100 for possible solutions.

If text are misaligned and you are using Konsole or Yakuake, turning off "Bi-Directional text rendering" is a possible fix.

Characters clipping in to each other or text/border misalignments is not bugs caused by bpytop, but most likely a fontconfig or terminal problem where the braille characters making up the graphs aren't rendered correctly. Look to the creators of the terminal emulator you use to fix these issues if the previous mentioned fixes don't work for you.

Screenshots

Main UI showing details for a selected process. Screenshot 1

Main UI in mini mode. Screenshot 2

Main menu. Screenshot 3

Options menu. Screenshot 4

Installation

Manual compilation and installation

Needs GCC/G++ 11 or higher, (GCC 10 is missing some C++20 features).

Install dependencies (Ubuntu 21.04 Hirsute)

sudo apt install git build-essential gcc-11 g++-11
	# On earlier Ubuntu versions that don't have gcc-11 and g++-11 replace with gcc-10 and g++-10

Clone and compile

git clone https://github.com/aristocratos/btop.git
cd btop
make
	# use "make -jX" where X is your number of cores for multithreaded compilation

to install

sudo make install
	# use "make install PREFIX=/target/dir" to set target, default: /usr/local
	# only use "sudo" when installing to a NON user owned directory

to make btop always run as root (to enable signal sending to any process and for /proc read permissions on some systems)

make su-setuid

to uninstall

sudo make uninstall

to remove any object files

make clean

to remove all object files, binaries and created directories

make distclean

Configurability

All options changeable from within UI. Config and log files stored in $XDG_CONFIG_HOME/btop or $HOME/.config/btop folder

btop.cfg: (auto generated if not found)

#? Config file for btop v. 0.0.1


Command line options:

usage: btop [-v]

LICENSE

Apache License 2.0