Move library to root

This commit is contained in:
Rico Tiongson 2019-02-12 19:04:31 +08:00
parent 68bea125e3
commit 602b148fb4
21 changed files with 6 additions and 8 deletions

View File

@ -3,7 +3,7 @@
DIR=$(dirname $0)
PROGRAM=/usr/local/bin/comfortable-swipe
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
if [ -x "$(command -v $PROGRAM)" ]; then
@ -50,7 +50,7 @@ if [ -x "$(command -v $PROGRAM)" ]; then
fi
# compile library
sudo $DIR/src/compile $PROGRAM || abort
sudo $DIR/compile.sh $PROGRAM || abort
# add permissions to input group (defer)
# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort

View File

@ -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/>.
*/
// Compile: g++ main.cpp -std=c++11 -lxdo
#include <string> // std::string
#include "lib/comfortable_swipe"
@ -28,7 +26,7 @@ int main(int argc, char** args)
if (argc > 1)
{
std::string arg = args[1];
// select based on argument
if (arg == "start")
comfortable_swipe::service::start();
@ -52,4 +50,4 @@ int main(int argc, char** args)
comfortable_swipe::service::help();
return 0;
}
}

View File

@ -2,8 +2,8 @@
#include <cassert>
#include <regex>
#include <string>
#include "../src/lib/gesture/swipe_gesture.h"
#include "../src/lib/gesture/swipe_gesture.regex.cpp"
#include "../lib/gesture/swipe_gesture.h"
#include "../lib/gesture/swipe_gesture.regex.cpp"
/*
Comfortable Swipe