Commit Graph

50 Commits

Author SHA1 Message Date
Rico Tiongson
85aa6c1c0f Add gesture module 2019-02-07 16:23:28 +08:00
Rico Tiongson
6d38db4ee3 Add service module 2019-02-07 16:10:13 +08:00
Rico Tiongson
99e1a42206 Add some test scripts 2019-02-07 12:56:28 +08:00
Rico Tiongson
159203c406 Merge regex optimizations into microoptimizations branch 2019-02-07 12:55:43 +08:00
Rico Tiongson
2ceaf4738d Fix error in printing help 2019-02-07 11:21:38 +08:00
Rico Tiongson
139248f6a6 Use const char* for conf_filename 2019-02-07 04:26:11 +08:00
Rico Tiongson
2b3dfd00b1 Catch dash symbol before event, remove trimming 2019-02-07 04:18:43 +08:00
Rico Tiongson
cd75b77695 Set some variables to static 2019-02-07 04:15:22 +08:00
Rico Tiongson
ae1ab03275 Don't buffer error stream 2019-02-07 04:08:49 +08:00
Rico Tiongson
c65944eae2 Use fgets_unlocked for faster input stream reading 2019-02-07 04:04:44 +08:00
Rico Tiongson
2028767567 Compare fingers string with only one digit 2019-02-07 03:55:34 +08:00
Rico Tiongson
fa92b8a56b Pre-compute for square of threshold and scale to lessen computation 2019-02-07 03:53:34 +08:00
Rico Tiongson
5df590f172 Add a flag for gesture begin to ignore unneeded update/end 2019-02-07 03:39:27 +08:00
Rico Tiongson
46e94e99c3 Improve README; change default threshold to 20.0 2019-02-07 03:37:02 +08:00
Rico Tiongson
2afd11d58e Merge remote-tracking branch 'origin/master' into microoptimizations 2019-02-07 03:35:57 +08:00
Rico Tiongson
7c09eb9df5 Make sentence string static 2019-02-07 03:24:44 +08:00
Rico Tiongson
fe3715e03c Improve tokenizing of config file 2019-02-07 03:22:58 +08:00
Rico Tiongson
2c2e4073f3 Revert "Optimize reading of config file"
This reverts commit 88b85d3941.
2019-02-07 03:16:11 +08:00
Rico Tiongson
88b85d3941 Optimize reading of config file 2019-02-07 03:06:12 +08:00
Rico Tiongson
4795a68600
Add g++ to README (#38) 2019-02-07 02:15:57 +08:00
Rico Tiongson
cdaa98abe1 Compile regex outside of buffer function to avoid runtime hiccup 2019-02-07 02:12:19 +08:00
Rico Tiongson
1079d0afe2 Use constants for regex patterns 2019-02-07 01:45:44 +08:00
Rico Tiongson
d4f7504643 Remove unused device and stamp from swipe_impl 2019-02-07 01:10:51 +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
Rico Tiongson
6890ec4696 [move-config] Move configuration file to /usr/local/share/comfortable-swipe/comfortable-swipe.conf 2017-11-15 11:04:54 +08:00
Rico Tiongson
44661a8125
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
2017-11-11 13:56:04 +08:00
Rico Tiongson
8a18ebddb8 Update README.md 2017-11-10 22:00:09 +08:00
Rico Tiongson
db0bce369c Update install
Just a silly error in the install script. The command that should be tested should not be `git` but `comfortable-swipe`.
2017-11-07 01:30:46 +08:00
Rico Tiongson
a3f5cf68dc [bugfix-kde-startup] Defer to bash when executing autostart script (#12)
PATH is not reliable especially for .zshrc when running autostart script. Prefer executing autostart from bash by default instead. Fixes autostart bug is present in KDE neon v5.11 (plasma v5.11.2).
2017-11-07 01:30:46 +08:00
Rico Tiongson
08e72698ae [swipe-back] Allow swipe back on opposite gesture without lifting finger 2017-11-07 01:30:45 +08:00
Rico Tiongson
a3696eb92b Update README
Add better instructions for autostart and permissions
2017-11-07 01:30:45 +08:00
Rico Tiongson
1c7c0bb10f Add autostart feature
Also generified config file location
2017-11-07 01:30:37 +08:00
Rico Tiongson
2597058bfb Fix issue 'cmath not included'
Issue was present in some C++ compilers, as mentioned by @shane-evolve in issues/1.
2017-11-07 01:29:10 +08:00
Rico Tiongson
caa6c0b271 Add uninstall instructions 2017-11-07 01:29:10 +08:00
Rico Tiongson
8b8b7aca5b Update README
Prefer markdown table instead of sample image for instructions. Add 'command not found' alternative command.
2017-11-07 01:29:10 +08:00
Rico Tiongson
a29cfa5dd0 Prettify defaults.conf 2017-11-07 01:29:10 +08:00
Rico Tiongson
b28619c20c Prefer tweaking conf file instead of source code 2017-11-07 01:29:10 +08:00
Rico Tiongson
68a1072d63 Update README 2017-11-07 01:29:10 +08:00
Rico Tiongson
7ce9d0cb3d Unify comfortable-swipe 2017-11-07 01:29:09 +08:00
Rico Tiongson
bb275a1c94 Update README 2017-11-07 01:29:09 +08:00
Rico Tiongson
9c2d1532c7 Add comfortable-swipe source file 2017-09-25 23:18:07 +08:00
Rico Tiongson
8a9d5c96ec Initial commit 2017-09-25 22:37:54 +08:00