Change Default Configurations (#14)

* [config] Change defaults

Improve user experience by reflecting default Ubuntu configurations.

* [config] Change program location from ~/.local/bin to /usr/local/bin
This commit is contained in:
Rico Tiongson authored and GitHub committed 2017-11-11 13:56:04 +08:00
1 parent 8a18ebddb8
commit 44661a8125
5 files changed
+65 -65

No files matched your search

+4 -2
View File
@@ -1,10 +1,12 @@
#!/bin/bash
DIR=$(dirname $0)
PROGRAM=$HOME/.local/bin/comfortable-swipe
PROGRAM=/usr/local/bin/comfortable-swipe
if [ -x "$(command -v $PROGRAM)" ]; then
# stop any running comfortable-swipe if it exists
$PROGRAM stop
# remove existing comfortable-swipe
rm $(which comfortable-swipe)
fi
#copy config file
@@ -29,7 +31,7 @@ else
fi
fi
echo "Installing..."
mkdir -p ~/.local/bin
# mkdir -p ~/.local/bin
g++ -std=c++11 -O2 $DIR/src/comfortable-swipe.cpp -lxdo -o $PROGRAM || exec echo "Installation aborted"
# toggle autostart twice to refresh any changes