my version of rsblocks
Go to file
Mustafa Salih b1d81bf8c9
getting data programmatically (#56)
* getting loadavg programmatically

* added missing uptime in rsblock.yml

* using clock_gettime syscall to get uptime
2021-05-12 16:46:48 +03:00
screenshots updated readme file 2021-01-13 01:59:55 +03:00
src getting data programmatically (#56) 2021-05-12 16:46:48 +03:00
.gitignore init commit 2020-12-21 13:29:45 +03:00
Cargo.lock getting load-average programmatically, fully support BSD soon 2021-05-11 21:21:26 +03:00
Cargo.toml getting load-average programmatically, fully support BSD soon 2021-05-11 21:21:26 +03:00
CODE_OF_CONDUCT.md Added cpu temperature and battery 2021-01-09 04:10:19 +03:00
CONTRIBUTING.md Added cpu temperature and battery 2021-01-09 04:10:19 +03:00
LICENSE Create LICENSE 2020-12-21 13:41:31 +03:00
README.md Dev (#46) 2021-02-15 04:37:02 +03:00
rsblocks.yml getting data programmatically (#56) 2021-05-12 16:46:48 +03:00

rsblocks

github crates

A multi threaded fast status bar for dwm window manager written in Rust 🦀


Features

  • Multi Threads
  • Time/Date
  • Net Usage
  • Memory Usage
  • Disk Usage
  • Weather Temperature
  • Sound Volume
  • Battery Percentage
  • Cpu Temperature
  • Load Average
  • Public Ip Address
  • Bitcoin Price
  • Uptime
  • Mpd Current Song
  • Spotify Current Song
  • 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