Crates.io | sliders |
lib.rs | sliders |
version | 0.0.1 |
source | src |
created_at | 2021-04-19 19:27:12.100042 |
updated_at | 2021-04-19 19:27:12.100042 |
description | sliders widget in the terminal |
homepage | https://github.com/yazgoo/sliders |
repository | https://github.com/yazgoo/sliders |
max_upload_size | |
id | 386786 |
size | 240,528 |
sliders in the terminal
For this example, let's store counter in 2 files
$ echo 0 > hello.counter
$ echo 0 > world.counter
Then, let's launch two sliders which will write/read to/from those files:
cargo run -- --name hello --get 'cat hello.counter' --set 'echo {} > hello.counter' \
--name world --get 'cat world.counter' --set 'echo {} > world.counter'
You can use this to update your backlight with backlight-mixer.
$ cargo run -- --name backlight --get "backlight-mixer" --set "backlight-mixer {}"
$ cargo run -- --name volume \
--get "amixer sget Master | tail -1 | cut -d'[' -f2 | cut -d'%' -f1" \
--set "amixer sset Master {}%"