https://github.com/cito/squirrel-bar
another hard coded i3-bar rendered with SDL2
https://github.com/cito/squirrel-bar
Last synced: 9 months ago
JSON representation
another hard coded i3-bar rendered with SDL2
- Host: GitHub
- URL: https://github.com/cito/squirrel-bar
- Owner: Cito
- Created: 2019-02-14T21:19:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-13T00:33:37.000Z (over 7 years ago)
- Last Synced: 2025-01-22T01:56:07.609Z (over 1 year ago)
- Language: C++
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# squirrel-bar
another hard coded i3-bar rendered with SDL2.

on this screenshot you can see following things:
- workspaces
- the current network obtained with `nmcli` and `ip`
- 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
## 1. Install
### 1.1 Clone Repository
`git clone https://github.com/NatrixAeria/squirrel-bar`
### 1.2 Build it
To compile the project make sure you have installed:
- SDL2
- SLD2-ttf
- NetworkManager (`networkmanager`)
#### 1.2.1 With `build` script
just type:
`sh build`.
The `build` script compiles and runs the code automatically.
#### 1.2.2 Manually
compile it with gcc:
`g++ -o sqbar *.cpp -L/usr/lib -pthread -lSDL2 -lSDL2_ttf -L/usr/X11/lib -lX11 -lstdc++ -std=c++17`
### 2. Add it to your configs
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.
### 3. Reload i3
reload i3 with `i3 reload`