Move library to root
This commit is contained in:
parent
68bea125e3
commit
602b148fb4
4
install
4
install
@ -3,7 +3,7 @@
|
|||||||
DIR=$(dirname $0)
|
DIR=$(dirname $0)
|
||||||
PROGRAM=/usr/local/bin/comfortable-swipe
|
PROGRAM=/usr/local/bin/comfortable-swipe
|
||||||
CONF_PATH=/usr/local/share/comfortable-swipe/comfortable-swipe.conf
|
CONF_PATH=/usr/local/share/comfortable-swipe/comfortable-swipe.conf
|
||||||
DCONF_PATH=$DIR/src/defaults.conf
|
DCONF_PATH=$DIR/defaults.conf
|
||||||
OLD_CONF_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/comfortable-swipe.conf
|
OLD_CONF_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/comfortable-swipe.conf
|
||||||
|
|
||||||
if [ -x "$(command -v $PROGRAM)" ]; then
|
if [ -x "$(command -v $PROGRAM)" ]; then
|
||||||
@ -50,7 +50,7 @@ if [ -x "$(command -v $PROGRAM)" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# compile library
|
# compile library
|
||||||
sudo $DIR/src/compile $PROGRAM || abort
|
sudo $DIR/compile.sh $PROGRAM || abort
|
||||||
|
|
||||||
# add permissions to input group (defer)
|
# add permissions to input group (defer)
|
||||||
# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort
|
# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort
|
||||||
|
|||||||
@ -16,8 +16,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Compile: g++ main.cpp -std=c++11 -lxdo
|
|
||||||
|
|
||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
#include "lib/comfortable_swipe"
|
#include "lib/comfortable_swipe"
|
||||||
|
|
||||||
@ -2,8 +2,8 @@
|
|||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "../src/lib/gesture/swipe_gesture.h"
|
#include "../lib/gesture/swipe_gesture.h"
|
||||||
#include "../src/lib/gesture/swipe_gesture.regex.cpp"
|
#include "../lib/gesture/swipe_gesture.regex.cpp"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Comfortable Swipe
|
Comfortable Swipe
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user