aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com>2020-12-31 05:31:58 +0300
committerGitHub <noreply@github.com>2020-12-31 05:31:58 +0300
commit2bbf632baa73448f54a6292ab105e60a25cb587f (patch)
tree5beba61eddb6b8d2973816fa9bb1c05600ce9483
parent135aa1a210635acc0fee9dfaf63a87035f6ba0a6 (diff)
parent57eac590cc63ca9e4b70214f5353269f709a5650 (diff)
Merge pull request #9 from MustafaSalih1993/dev
config
-rw-r--r--README.md10
-rw-r--r--src/main.rs4
2 files changed, 11 insertions, 3 deletions
diff --git a/README.md b/README.md
index 0e3c6bb..f88dc7c 100644
--- a/README.md
+++ b/README.md
@@ -15,8 +15,14 @@ A minimal fast dwm status bar written in **Rust** 🦀
## Note
This tool is still in development stage.
-## Install
-clone the repo
+## 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
```sh
git clone https://github.com/mustafasalih1993/rsblocks
```
diff --git a/src/main.rs b/src/main.rs
index bed2045..c496e6a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,6 +8,8 @@ mod load_config;
mod mem;
mod sound;
+// TODO: this is sucks, maybe thread, i want to spawn some threads
+
fn main() {
let settings = load_config::load().unwrap();
sound::get_sound(&settings);
@@ -39,6 +41,6 @@ fn main() {
.output()
.unwrap();
- thread::sleep(Duration::new(1, 0));
+ thread::sleep(Duration::from_millis(75));
}
}