Update instructions

Fix missing ~/.local/bin bug
This commit is contained in:
Rico Tiongson 2017-09-26 09:42:08 +08:00
parent 930e395171
commit 1afc3284c8
2 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Author: Rico Tiongson
Comfortable 3-finger and 4-finger swipe gestures. Uses Xdotool in native C++. For Ubuntu 14.04 LTS and beyond. Comfortable 3-finger and 4-finger swipe gestures. Uses Xdotool in native C++. For Ubuntu 14.04 LTS and beyond.
## Installation ## Installation
1. `sudo apt install libinput-dev libxdo-dev` 1. `sudo apt install libinput-tools libinput-dev libxdo-dev`
2. `git clone https://github.com/Hikari9/Ubuntu-Comfortable-3-Finger-Swipe.git` 2. `git clone https://github.com/Hikari9/Ubuntu-Comfortable-3-Finger-Swipe.git`
3. `cd Ubuntu-Comfortable-3-Finger-Swipe` 3. `cd Ubuntu-Comfortable-3-Finger-Swipe`
4. Tweak `src/comfortable-swipe.cpp` to fit keyboard shortcuts of your gestures 4. Tweak `src/comfortable-swipe.cpp` to fit keyboard shortcuts of your gestures

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
DIR=$(dirname $0) DIR=$(dirname $0)
echo "Compiling..." echo "Compiling..."
mkdir -p ~/.local/bin
g++ -std=c++11 -O2 $DIR/src/comfortable-swipe.cpp -lxdo -o ~/.local/bin/comfortable-swipe || exec echo "Installation aborted" g++ -std=c++11 -O2 $DIR/src/comfortable-swipe.cpp -lxdo -o ~/.local/bin/comfortable-swipe || exec echo "Installation aborted"
cat $DIR/src/comfortable-swipe-serve > ~/.local/bin/comfortable-swipe-serve cat $DIR/src/comfortable-swipe-serve > ~/.local/bin/comfortable-swipe-serve
chmod +x ~/.local/bin/comfortable-swipe-serve chmod +x ~/.local/bin/comfortable-swipe-serve