Source at the Bit Powder Gitea
Generates an i3/sway status bar, using the same information source as the tmuxstatus line. This avoids the overhead of keeping track of certain stats multiple times.
Displays:
network status (including SSID, wifi strength, etc);
wireguard status
volume (both output and microphone);
CPU utilization;
on Linux: RAPL reading if available (might have to make powercap interface available
sudo apt install sysfsutils; echo "mode class/powercap/intel-rapl:0/energy_uj = 0444" | sudo tee -a /etc/sysfs.d/intel-rapl-user-mode; sudo chmod -R a+r /sys/class/powercap/intel-rapl, warning: this can lead to security attacks on keys).battery charge;
current memory usage;
time
Installation
Linux users can use the Bit Powder repo for Debian/Raspbian, sudo apt install barry.
If using Rust, install from crates.io:
cargo install barry
Usage
In your i3/sway config add:
bar {
status_command barry
}