Commit Graph

68 Commits

Author SHA1 Message Date
Rico Tiongson
94858c63fe Redirect restart command to null 2020-04-18 02:54:17 +08:00
Rico Tiongson
68fce3819f Fix stop script and mouse gesture on button 4/5 2020-04-18 02:38:13 +08:00
Rico Tiongson
169f8dc788 Do mousedown only for buttons 1 to 3 2020-04-18 02:23:32 +08:00
Rico Tiongson
435e46373f Update README and defaults.conf 2020-04-18 02:20:18 +08:00
Rico Tiongson
1e900945af Add experimental: mouse hold on defaults.conf 2020-04-18 01:24:12 +08:00
Rico Tiongson
484e99ce83 Fix bash install script 2020-04-18 01:07:12 +08:00
Rico Tiongson
0a8ec16256 Restructure and add compiler tests 2020-04-18 01:05:15 +08:00
Rico Tiongson
07acbb4d1d Use xdo_move_mouse_relative instead of screen capture 2020-04-17 23:52:53 +08:00
Rico Tiongson
eb69b2fce4 Modify mouse move update 2020-04-17 23:48:58 +08:00
Rico Tiongson
d03e6cc081 Prepare mouse swipe gesture skeleton 2020-04-17 23:12:52 +08:00
Rico Tiongson
9143c715c6 Set destructors virtual to avoid surprises 2020-04-17 22:34:45 +08:00
Rico Tiongson
c0b69484a6 Modularly separate keyboard swipe gesture from generic swipe 2020-04-17 22:30:06 +08:00
Rico Tiongson
8f6e231a5e
Patch missing GESTURE_SWIPE_BEGIN for Microsoft Surface Pro (#69)
* Patch missing GESTURE_SWIPE_BEGIN for Microsoft Surface Pro

Touchpad for Microsoft Surface Pro doesn't show GESTURE_SWIPE_BEGIN
in comfortable-swipe debug due to unresolved bug from libinput.
This fix temporarily patches that issue by adding UPDATE pattern to
the gesture begin regex.

* Defer patch to GESTURE_SWIPE_UPDATE regex pattern instead of modifying GESTURE_SWIPE_BEGIN
2019-05-02 15:53:33 +08:00
Rico Tiongson
dda91b7178
Update wrong default config values in README 2019-03-21 18:08:03 +08:00
Rico Tiongson
4852993663
Update readme and version (#64)
* Update README and increment version

* Add comfortable-swipe version badge

* Have macro guard warning for version

* Improve README and install script

* Expound bug reports statement
2019-03-15 10:40:54 +08:00
Rico Tiongson
810a20f1ed Update README to new URL 2019-03-15 09:37:12 +08:00
Rico Tiongson
28f5ca2a91 Optimize swipe function 2019-03-03 22:00:48 +08:00
Rico Tiongson
89b79bc9bc
Status command (#56)
* Add configurations to status

* Update comment of status

* Add config command

* Modify README

* Add EPSILON instead of subtract for a more reliable >= threshold
2019-02-15 14:17:47 +08:00
Rico Tiongson
7d76db6693
Update status command and add config command (#55)
* Add configurations to status

* Update comment of status

* Add config command

* Modify README
2019-02-13 10:15:42 +08:00
Rico Tiongson
204a422f2d
Add status service command (#54)
* Use std::unique_ptr for stop service

* Use std::unique_ptr for stop service

* Add status command

* Prefer to use std::array to avoid memory leaking in buffer

* Perform xdo key sequence before output message

* Fix missing swipe_gesture header in regex implementation
2019-02-13 09:27:41 +08:00
Rico Tiongson
c18cb04230 Improve buffering performance 2019-02-12 22:29:13 +08:00
Rico Tiongson
b1f8a7cb0a
Remove irrelevant double tracking bug in error log (#53)
* Do not show double tracking

* Do not show double tracking in debug and start
2019-02-12 22:23:20 +08:00
Rico Tiongson
1c9b497b56 Add default -y flag to install 2019-02-12 21:13:40 +08:00
Rico Tiongson
16742495eb
Add debug command (#51)
* Add debug command

* Update README to include debugging
2019-02-12 20:18:15 +08:00
Rico Tiongson
459fd68ba8
Add parse_line method to decouple buffer from gesture handler (#50) 2019-02-12 19:28:53 +08:00
Rico Tiongson
7923effa02 Simplify compile command structure 2019-02-12 19:07:30 +08:00
Rico Tiongson
602b148fb4 Move library to root 2019-02-12 19:04:31 +08:00
Rico Tiongson
68bea125e3
Improve responsiveness of initial gesture by pre-empting xdotool in swipe_gesture constructor (#49) 2019-02-12 17:50:58 +08:00
Rico Tiongson
0b3b3238af
Fix bug in restart service (#47) 2019-02-08 16:58:27 +08:00
Rico Tiongson
3a0e1361c9
[bugfix] Fix missing threshold construction (#45) 2019-02-07 22:18:50 +08:00
Rico Tiongson
b5c701994b
Move regex constants to swipe_gesture static class member (#44)
* Move regex constants to swipe_gesture static class member

* Unlink util/regex from library index
2019-02-07 22:01:03 +08:00
Rico Tiongson
30e4a57b62 Fix line endings 2019-02-07 21:35:24 +08:00
Rico Tiongson
f3909f85f2
Merge pull request #43 from Hikari9/xdo-gesture
Derive gestures from xdo_gesture interface
2019-02-07 21:32:10 +08:00
Rico Tiongson
1071979b83 Derive gestures from xdo_gesture class 2019-02-07 21:25:04 +08:00
Rico Tiongson
f40145b6fa
Improve semantics (#42)
* Keep consistency in buffer method

* Revert default threshold to 0.0
2019-02-07 18:46:41 +08:00
Rico Tiongson
b171fb2cdf Update test 2019-02-07 18:09:58 +08:00
Rico Tiongson
e2e534ea2f
Reorganize source files (#41)
* Remove unused device and stamp from swipe_impl

* Use constants for regex patterns

* Compile regex outside of buffer function to avoid runtime hiccup

* Optimize reading of config file

* Revert "Optimize reading of config file"

This reverts commit 88b85d3941.

* Improve tokenizing of config file

* Make sentence string static

* Improve README; change default threshold to 20.0

* Add a flag for gesture begin to ignore unneeded update/end

* Pre-compute for square of threshold and scale to lessen computation

* Compare fingers string with only one digit

* Use fgets_unlocked for faster input stream reading

* Don't buffer error stream

* Set some variables to static

* Catch dash symbol before event, remove trimming

* Use const char* for conf_filename

* Fix error in printing help

* Add some test scripts

* Add service module

* Add gesture module

* Add util module

* Add index files

* Decouple header files

* Add licenses in headers

* Move files to lib

* Modify install script

* Update install script
2019-02-07 17:56:58 +08:00
Rico Tiongson
e3453c1bbb
Perform microoptimizations (#40)
* Remove unused device and stamp from swipe_impl

* Use constants for regex patterns

* Compile regex outside of buffer function to avoid runtime hiccup

* Optimize reading of config file

* Revert "Optimize reading of config file"

This reverts commit 88b85d3941.

* Improve tokenizing of config file

* Make sentence string static

* Improve README; change default threshold to 20.0

* Add a flag for gesture begin to ignore unneeded update/end

* Pre-compute for square of threshold and scale to lessen computation

* Compare fingers string with only one digit

* Use fgets_unlocked for faster input stream reading

* Don't buffer error stream

* Set some variables to static

* Catch dash symbol before event, remove trimming

* Use const char* for conf_filename

* Fix error in printing help

* Add some test scripts
2019-02-07 17:51:47 +08:00
Rico Tiongson
328ae08ee1
Add git to install instructions in README 2019-02-07 17:39:32 +08:00
Rico Tiongson
2843b9d3ce
Optimize Regex patterns (#39)
* Remove unused device and stamp from swipe_impl

* Use constants for regex patterns

* Compile regex outside of buffer function to avoid runtime hiccup

* Catch dash symbol before event, remove trimming
2019-02-07 13:14:53 +08:00
Rico Tiongson
4795a68600
Add g++ to README (#38) 2019-02-07 02:15:57 +08:00
Rico Tiongson
8d4756f7d2 Add simple post-install instruction 2018-11-13 22:24:27 +08:00
Amrik Sadhra
22b9869ae8 Call libinput with debug-events argument instead of libinput-debug-events directly (#31)
It seems that libinput-debug-events is now called as an argument to libinput on the latest libinput-tools version as libinput debug-events. I made the change and all seems to work again.
2018-11-13 19:48:40 +08:00
Rico Tiongson
0de8777d87
Fix permissions (#26)
* [fix-permissions] Use sudo password for permission for /usr/local

* [fix-permissions] Add sudo for g++ compilation

* [fix-permissions] Correct sudo permission in uninstall script
2018-02-28 00:57:21 +08:00
Rico Tiongson
91b55bad5e
Update README.md
Add xdotool key code reference to README
2017-11-19 01:15:34 +08:00
Rico Tiongson
90246cd7d3
Merge pull request #21 from Hikari9/20-config-file-cant-be-found
The Config File Can't be Found

> @HadiLatifi
> The config file is not located in /usr/share/comfortable-swipe/comfortable-swipe.conf
> going through commits found it's in ~/.config/comfortable-swipe.conf
> I'm running Kubuntu 17.04 and recently installed this app.
> Updating the readme file can be helpful
The config file is not located in /usr/share/comfortable-swipe/comfortable-swipe.conf
going through commits found it's in ~/.config/comfortable-swipe.conf
I'm running Kubuntu 17.04 and recently installed this app.
Updating the readme file can be helpful
2017-11-19 00:52:43 +08:00
Rico Tiongson
a394e905ba Update README 2017-11-19 00:47:18 +08:00
Rico Tiongson
3447946b1e
Merge pull request #18 from Hikari9/move-config
[move-config] Update README
2017-11-15 11:09:48 +08:00
Rico Tiongson
823ea396a1 [move-config] Update README 2017-11-15 11:08:16 +08:00
Rico Tiongson
1321443898
Merge pull request #17 from Hikari9/move-config
Move configuration file to /usr/local/share/comfortable-swipe/comfortable-swipe.conf
2017-11-15 11:06:06 +08:00