another hard coded i3-bar rendered with SDL2.
on this screenshot you can see following things:
- workspaces
- the current network obtained with
nmcliandip - the current time hour:minute:second
- the number of processes in runnable state (see man pages for
proc(/proc/stat>procs_running)) - the processor usage of each logical CPU
- the processor usage of the system plotted
- the current battery energy in percent
- a heart icon which indicates if the battery is charging, discharging or full
git clone https://github.com/NatrixAeria/squirrel-bar
To compile the project make sure you have installed:
- SDL2
- SLD2-ttf
- NetworkManager (
networkmanager)
just type:
sh build.
The build script compiles and runs the code automatically.
compile it with gcc:
g++ -o sqbar *.cpp -L/usr/lib -pthread -lSDL2 -lSDL2_ttf -L/usr/X11/lib -lX11 -lstdc++ -std=c++17
edit your i3 config ( etc/i3/config or ~/.i3/config or ~/.config/i3/config ):
...
bar {
...
i3bar_command path/to/squirrel-bar/sqbar
...
}
...
and save the file.
reload i3 with i3 reload
