Commit Graph

13 Commits

Author SHA1 Message Date
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
8d4756f7d2 Add simple post-install instruction 2018-11-13 22:24:27 +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
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
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
1c7c0bb10f Add autostart feature
Also generified config file location
2017-11-07 01:30:37 +08:00
Rico Tiongson
caa6c0b271 Add uninstall instructions 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