No description
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
swaybar_info
About
swaybar_info is a program to be utilized by swaybar that is used by the Sway dynamic Wayland compositor.
Usage
# build the "release" build of the program
cargo build --release
# put the "release" build somewhere to be used by swaybar
cp ./target/release/swaybar_info ~/.config/sway/
Put the following in your ~/.config/sway/config
:
bar {
position top
# Set --netdev=<device> such that <device> is the network device you
# want to monitor. You can omit --netdev=<device>, but that will also
# cause the program to omit network traffic stats.
status_command $HOME/.config/sway/swaybar_info --netdev=enp7s0
}
Dependencies
Uses serde_json
,
serde
,
and chrono
.