rsblocks

Crates.iorsblocks
lib.rsrsblocks
version0.1.20
sourcesrc
created_at2020-12-30 00:15:31.262034
updated_at2021-10-15 17:56:51.981092
descriptiona multi threaded status bar for dwm window manager for linux
homepage
repositoryhttps://github.com/MustafaSalih1993/rsblocks
max_upload_size
id329059
size86,728
Mustafa (MustafaSalih1993)

documentation

README

rsblocks

github crates

A status bar for dwm window manager written in Rust 🦀


Features

  • Async

  • Battery Percentage

  • Bitcoin Price

  • Brightness

  • Cpu Temperature

  • Disk Usage

  • Load Average

  • Local Ip Address

  • Memory Usage

  • Mpd Current Song

  • Net Usage

  • Public Ip Address

  • Sound Volume

  • Spotify Current Song

  • Time/Date

  • Uptime

  • Weather Temperature

  • Easy to configure with rsblocks.yml file

Notes

  • This tool is still in development stage.

  • currently supports only linux.

Build Requirements

  • Libdbus 1.6 or higher as a requirement to spotify.

On ubuntu you can do:

sudo apt install libdbus-1-dev pkg-config

Cargo Installation

You can install the binary crate directly

cargo install rsblocks

Manual Installation

You can clone the repo and build from the source code

git clone https://github.com/mustafasalih1993/rsblocks

build with cargo

cargo build --release

move the executable somewhere in your PATH (assuming you are in the root dir of the project)

mv ./target/release/rsblocks /usr/local/bin

you good to go now and can run rsblocks from your terminal or put that in your .xinitrc

Configuration

Notes:

  • rsblocks will try to read the file $HOME/.config/rsblocks/rsblocks.yml, if it does not exist, it will load the defaults.
  • rsblocks will read the configuration file only on startup, which means you have to kill it and start it again if you updated your rsblocks.yml file.

create the directory

mkdir ~/.config/rsblocks

copy the template to the new config directory (assuming you are in the root dir of the repo)

cp ./rsblocks.yml ~/.config/rsblocks/rsblocks.yml

Contributions

All Contributions are welcome.

Credits

  • wttr.in for using their weather API

License

MIT

Commit count: 87

cargo fmt