blob: c0e0957515dfde7ead7f624ae4e4a938b39c2911 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Bstatus
Broke status, in short `bstatus`. A swaybar status generator written in C and is simple.

This software is written in <200LoC.
# Just use i3blocks or i3-* status generators?
People have made many many status generators for i3bar and swaybar with the protocol json but they haven't done it the way I've done it. Hence the reason for not using them.
# Just use waybar?
No, tbh waybar is over-complicated piece of garbage which even requires GTK to theme it through CSS and it's a complete mess that requires more CPU usage than it should ever require.
# How does this work?
It follows the swaybar-protocol(7), for that it outputs status in json rather than just printing. There is a block.c file that has a function `block()` that takes four arguments: the status text, foreground color, background color, border color.
The modules are seperated in their own files sourced through `modules.h`.
The modules battery and cpu are delayed in the source code for a default of 6 seconds (personal preference), which you can change directly in the source code.
# Modules
The modules aren't directly portable, I'd say to modify and port it than to comply with all in one file; to be simple.
- [x] datetime
- [x] battery
- [x] cpu
- [ ] memory
- [ ] volume
- [ ] network
# Contribute
Send a patch [to my email](mailto:sabr@ariamath.xyz) or [at xmpp](xmpp:sabr@ariamath.xyz).
## Addenum
This is my 3rd rewrite of this software of which I got this to work with the best intuition I have possible written in the most simple way without sacrificing any performance.
|