Add mouse hold gestures (#79)

* Modularly separate keyboard swipe gesture from generic swipe

* Set destructors virtual to avoid surprises

* Prepare mouse swipe gesture skeleton

* Modify mouse move update

* Use xdo_move_mouse_relative instead of screen capture

* Restructure and add compiler tests

* Fix bash install script

* Add experimental: mouse hold on defaults.conf

* Update README and defaults.conf

* Do mousedown only for buttons 1 to 3

* Fix stop script and mouse gesture on button 4/5

* Redirect restart command to null

* Redirect using freopen

* Add comments on experimental scrolling
This commit is contained in:
Rico Tiongson authored and GitHub committed 2020-04-18 03:55:13 +08:00
1 parent 8f6e231a5e
commit a7c5b6d578
36 files changed
+922 -216

No files matched your search

+6 -3
View File
@@ -1,11 +1,14 @@
#!/bin/bash
set -e
function install {
# prefer running as root
local dir="$(dirname $0)"
local dir="$(dirname "$0")"
local program=comfortable-swipe
local program_exe=/usr/local/bin/$program
local compile_command="$dir/$program.compile.sh"
local compile_command="$dir/cpp.compile.sh"
local compile_target="$dir/command_line.cpp"
local conf_path=/usr/local/share/$program/$program.conf
local dconf_path="$dir/defaults.conf"
local old_conf_path="${XDG_CONFIG_HOME:-$HOME/.config}/$program.conf"
@@ -70,7 +73,7 @@ function install {
fi
# compile library
sudo "$compile_command" "$program_exe" || abort
sudo "$compile_command" "$compile_target" -o "$program_exe" || abort
# add permissions to input group (defer)
# GROUP=$(ls -l /dev/input/event* | awk '{print $4}' | head --line=1) || abort