From 8b9b9601549a22c77019831941c64c8f5b9a25ae Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Tue, 14 Nov 2017 00:38:46 +0800 Subject: [PATCH] [feature-systemd] Clarify status logging for service --- README.md | 21 ++++++++++++++++++++- install | 5 ++++- src/comfortable-swipe.cpp | 2 +- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 67f0d2a..8faa369 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,25 @@ Useful References: - [How to turn on Workspaces?](https://askubuntu.com/questions/260510/how-do-i-turn-on-workspaces-why-do-i-only-have-one-workspace) - [How to set keyboard shortcuts in Ubuntu](https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html) +### Other Commands + +You can run `comfortable-swipe help` to see a list of commands: + +``` +$ comfortable-swipe help + +comfortable-swipe [start|stop|status|restart|buffer|help] + +start - starts 3/4-finger gesture service +stop - stops 3/4-finger gesture service +status - shows the status of the program (service log) +restart - stops then starts 3/4-finger gesture service +buffer - parses output of libinput-debug-events +help - shows the help dialog + +Configuration file can be found in /usr/local/share/comfortable-swipe.conf +``` + ### Configurations The configuration file is located at `/usr/local/share/comfortable-swipe.conf`. Run `comfortable-swipe restart` after making changes. @@ -63,4 +82,4 @@ Create an issue [here](https://github.com/Hikari9/comfortable-swipe-ubuntu/issue to add the following to your issue: 1. Content of `.log` (found in the cloned folder) -2. Output of `sudo systemctl status comfortable-swipe.service` +2. Output of `comfortable-swipe status` diff --git a/install b/install index 93e39c7..f33eeea 100755 --- a/install +++ b/install @@ -4,7 +4,10 @@ if [ $(id -u) != "0" ]; then sudo bash "$0" "$@" exit $? fi -echo "Install $(date)" >> .log + +echo " +Install $(date)" >> .log + DIR=$(dirname $0) PROGRAM=/usr/local/bin/comfortable-swipe CONF_PATH=/usr/local/share/comfortable-swipe.conf diff --git a/src/comfortable-swipe.cpp b/src/comfortable-swipe.cpp index 714a914..29e6d7f 100644 --- a/src/comfortable-swipe.cpp +++ b/src/comfortable-swipe.cpp @@ -275,7 +275,7 @@ namespace service { puts(""); puts("start - starts 3/4-finger gesture service"); puts("stop - stops 3/4-finger gesture service"); - puts("status - shows the status of the program"); + puts("status - shows the status of the program (service log)"); puts("restart - stops then starts 3/4-finger gesture service"); puts("buffer - parses output of libinput-debug-events"); puts("help - shows the help dialog");