From b85dd8ee70c3a82a5c10d65f0ab9f1e435025fd8 Mon Sep 17 00:00:00 2001 From: Francesco Date: Mon, 20 Mar 2023 20:50:26 +0100 Subject: [PATCH] Better documentation --- README.md | 96 +++++++++++++++++++++++++------------------------------ 1 file changed, 43 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index 14766f1..2ba5e9c 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,46 @@ -# screenpad_rs +# Screenpad_rs Simple CLI wrapper to change brightness of asus screenpad -# instalation - ### pre-compiled binaries - * if you want, you can use precompiled binaries in screenpad_rs_binaries.tar.gz +# Install +### Pre-compiled binaries +Precompiled binaries are in screenpad_rs_binaries.tar.gz - ### dependencies: - * rustup - * wget - * dkms - * linux-headers - ### automatic install - * install [Plippo asus-wmi-screenpad repo](https://github.com/Plippo/asus-wmi-screenpad) - * clone repository - ``` - git clone https://github.com/PTFOPlayer/screenpad_rs && cd screenpad_rs - ``` - * run - ``` - ./install.sh - ``` - ### steps: - * install [Plippo asus-wmi-screenpad repo](https://github.com/Plippo/asus-wmi-screenpad) - * clone repository - ``` - git clone https://github.com/PTFOPlayer/screenpad_rs && cd screenpad_rs - ``` - * now you can run build - ``` - cargo build --release - ``` - * lastly just coppy needed files and create place for config - ``` - sudo cp target/release/screenpad_rs /usr/bin - sudo cp ./src/brightness.sh /usr/bin/brightness.sh - sudo cp ./src/current.sh /usr/bin/current.sh - sudo mkdir /usr/share/screenpad_rs - sudo echo 100 > /usr/share/screenpad_rs/brightness - ``` - ### automatic synchronization - * if you want to use synchronization service you need to do: - ``` - sudo systemctl start screenpad_rs.service - sudo systemctl enable screenpad_rs.service - ``` -# usage +### Dependencies: +* rustup +* wget +* dkms +* linux-headers + +Install [Plippo asus-wmi-screenpad repo](https://github.com/Plippo/asus-wmi-screenpad), clone repository +``` +git clone https://github.com/PTFOPlayer/screenpad_rs && cd screenpad_rs +``` +### Automatic install +``` +./install.sh +``` +### Steps + +1. Run build +``` +cargo build --release +``` +2. Copy needed files and create place for config +``` +sudo cp target/release/screenpad_rs /usr/bin +sudo cp ./src/brightness.sh /usr/bin/brightness.sh +sudo cp ./src/current.sh /usr/bin/current.sh +sudo mkdir /usr/share/screenpad_rs +sudo echo 100 > /usr/share/screenpad_rs/brightness +``` +### Automatic synchronization +To use synchronization service: +``` +sudo systemctl start screenpad_rs.service +sudo systemctl enable screenpad_rs.service +``` +# Usage | flag | simplified | what is doing | | ---| --- | --- | | --brightness | -b | : changes brightness in values from 1 to 255, | @@ -57,12 +52,7 @@ Simple CLI wrapper to change brightness of asus screenpad | --down | -d | : decreases brightness by 10 | | --watch | -w | : automatic sync | -# TODO - * touch mapping on/off - * brightness profiles - * GUI - -# DONE - * install.sh - * brightenss info - * synchronization service \ No newline at end of file +### TODO +* Touch mapping on/off +* Brightness profiles +* GUI