Add uninstall instructions
This commit is contained in:
parent
8b8b7aca5b
commit
caa6c0b271
@ -4,7 +4,7 @@
|
|||||||
Comfortable 3-finger (and 4-finger) swipe gestures for Ubuntu 14.04 LTS+
|
Comfortable 3-finger (and 4-finger) swipe gestures for Ubuntu 14.04 LTS+
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
1. `sudo apt install libinput-tools libinput-dev libxdo-dev`
|
1. `sudo apt-get install git libinput-tools libxdo-dev`
|
||||||
2. `git clone https://github.com/Hikari9/comfortable-swipe-ubuntu.git`
|
2. `git clone https://github.com/Hikari9/comfortable-swipe-ubuntu.git`
|
||||||
3. `cd comfortable-swipe-ubuntu`
|
3. `cd comfortable-swipe-ubuntu`
|
||||||
4. `bash install`
|
4. `bash install`
|
||||||
@ -49,5 +49,8 @@ up4 | 4-finger swipe up | super+d | show desktop
|
|||||||
down4 | 4-finger swipe down | super+d | show desktop
|
down4 | 4-finger swipe down | super+d | show desktop
|
||||||
threshold | mouse pixels to activate swipe; higher = less sensitive; integers only | 20
|
threshold | mouse pixels to activate swipe; higher = less sensitive; integers only | 20
|
||||||
|
|
||||||
|
## Uninstall
|
||||||
|
1. `bash uninstall`
|
||||||
|
|
||||||
## Bug Reports
|
## Bug Reports
|
||||||
Create an issue [here](https://github.com/Hikari9/comfortable-swipe-ubuntu/issues/new) to report a bug.
|
Create an issue [here](https://github.com/Hikari9/comfortable-swipe-ubuntu/issues/new) to report a bug.
|
||||||
|
|||||||
10
install
10
install
@ -8,11 +8,17 @@ if [ ! -f $CONF_PATH ]; then
|
|||||||
cat $DCONF_PATH > $CONF_PATH
|
cat $DCONF_PATH > $CONF_PATH
|
||||||
else
|
else
|
||||||
# config file found, ask user if overwrite
|
# config file found, ask user if overwrite
|
||||||
echo "Previous conf file found in $CONF_PATH"
|
echo "Old conf file found in $CONF_PATH"
|
||||||
read -r -p "Do you want to overwrite? [Y/n] " response
|
read -r -p "Keep the old conf file? (default: yes) [Y/n] " response
|
||||||
response=${response,,} # tolower
|
response=${response,,} # tolower
|
||||||
|
if [[ "$response" =~ ^(no|n)$ ]]; then
|
||||||
|
read -r -p "Conf file will be overwritten. Are you sure? [Y/n] " response
|
||||||
|
response=${response,,}
|
||||||
if [[ "$response" =~ ^(yes|y)$ ]]; then
|
if [[ "$response" =~ ^(yes|y)$ ]]; then
|
||||||
cat $DCONF_PATH > $CONF_PATH
|
cat $DCONF_PATH > $CONF_PATH
|
||||||
|
else
|
||||||
|
exec echo "Installation aborted."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Installing..."
|
echo "Installing..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user