2020-12-21 17:16:23 +01:00
# rsblocks
2021-01-09 02:10:19 +01:00
[<img alt="github" src="https://img.shields.io/static/v1?label=github&message=rsblocks&color=acb0d0&logo=Github&style=flat-square&logoColor=a9b1d6" height="20"> ](https://github.com/MustafaSalih1993/rsblocks )
[<img alt="crates" src="https://img.shields.io/crates/v/rsblocks?logo=rust&logoColor=a9b1d6&style=flat-square&color=fc8d62" height="20"> ](https://crates.io/crates/rsblocks )
A multi threaded fast status bar for dwm window manager written in **Rust** 🦀
2020-12-21 12:00:27 +01:00
< p >
2021-01-09 02:10:19 +01:00
< img align = "center" src = "./screenshots/2.png" / >
2020-12-21 12:00:27 +01:00
< / p > < br / >
## Features
2021-01-02 23:47:40 +01:00
* Multi Threads
2020-12-21 12:00:27 +01:00
* Time/Date
2021-01-09 02:10:19 +01:00
* Memory Usage
* Disk Usage
* Weather Temperature
* Sound Volume
* Battery Percentage
* Cpu Temperature
2021-01-10 04:14:41 +01:00
* Uptime
2021-01-02 23:47:40 +01:00
* Easy to configure with `rsblocks.yml` file
2020-12-21 12:00:27 +01:00
2021-01-02 23:47:40 +01:00
## Notes
* This tool is still in development stage.
* currently supports only linux.
2020-12-21 12:00:27 +01:00
2020-12-31 03:31:15 +01:00
## Cargo Installation
You can install the binary crate directly
```sh
cargo install rsblocks
```
## Manual Installation
You can clone the repo and build from the source code
2020-12-21 12:11:19 +01:00
```sh
git clone https://github.com/mustafasalih1993/rsblocks
```
build with **cargo**
```sh
cargo build --release
```
move the executable somewhere in your **PATH** (assuming you are in the root dir of the project)
```sh
2020-12-21 17:16:23 +01:00
mv ./target/release/rsblocks /usr/local/bin
2020-12-21 12:11:19 +01:00
```
2020-12-21 17:16:23 +01:00
you good to go now and can run `rsblocks` from your terminal or put that in your `.xinitrc`
2020-12-21 12:11:19 +01:00
2020-12-22 05:30:27 +01:00
## Configuration
2021-01-02 23:47:40 +01:00
#### 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.
2020-12-22 05:30:27 +01:00
create the directory
```sh
mkdir ~/.config/rsblocks
```
copy the [template ](./rsblocks.yml ) to the new config directory (assuming you are in the root dir of the repo)
```sh
cp ./rsblocks.yml ~/.config/rsblocks/rsblocks.yml
```
2020-12-21 12:00:27 +01:00
## Contributions
All Contributions are welcome.
2021-01-09 02:10:19 +01:00
## Credits
* [wttr.in ](https://github.com/chubin/wttr.in ) for using their weather API
2020-12-21 12:00:27 +01:00
## License
[MIT ](./LICENSE )