From 71280fcd79497f4c9731c89b33ddc300bb14ae82 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 18 May 2020 19:50:10 -0400 Subject: add command execution mode, -c and -x --- jsmond.1 | 58 +++++++++++++++++++++++++++++---------- jsmond.c | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- jsmond.html | 57 ++++++++++++++++++++++++++++---------- jsmond.rst | 34 +++++++++++++++++------ 4 files changed, 198 insertions(+), 42 deletions(-) diff --git a/jsmond.1 b/jsmond.1 index e496a3b..9a5ff14 100644 --- a/jsmond.1 +++ b/jsmond.1 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH JSMOND 1 "2020-05-17" "0.2.0" "Urchlay" +.TH JSMOND 1 "2020-05-18" "0.2.0" "Urchlay" .SH NAME jsmond \- deactivate screensaver on joystick activity . @@ -36,7 +36,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] . .SH SYNOPSIS .sp -jsmond [\fB\-i interval\fP] [\fB\-k keycode\fP | \fB\-b button\fP] [\fB\-d dir\fP] [\fB\-j name\fP] [\fB\-D\fP] [\fBjoydev [joydev ...]\fP] +jsmond [\fB\-i interval[s|ms]\fP] [\fB\-m\fP | \fB\-k keycode\fP | \fB\-b button\fP] [\fB\-d dir\fP] [\fB\-j name\fP] [\fB\-D\fP] [\fBjoydev [joydev ...]\fP] .SH DESCRIPTION .sp jsmond lets you play games with your joysticks/gamepads without @@ -49,7 +49,7 @@ as joysticks are plugged in and unplugged. .sp Every \fIinterval\fP milliseconds (250, or whatever \fB\-i\fP is set to), jsmond checks to see if there\(aqs been any activity on any of the devices it\(aqs -monitoring. If so, it sends a fake keystroke or mouse button click, which +monitoring. If so, it sends a fake mouse movement, keystroke, or mouse button click, which the screen saver will see as activity. .sp It\(aqs recommended to let jsmond find the joysticks itself. However, @@ -67,9 +67,12 @@ if you need to kill the daemon. .B \-\-help Print usage summary .TP -.BI \-i \ -Interval to check for activity, in milliseconds. -Default: 250. +.BI \-i \ +Interval to check for activity. Can be given in seconds +with \fIs\fP suffix (e.g. \fB1s\fP), or milliseconds with \fIm\fP +(e.g. \fB200m\fP). If just a number is given, it\(aqs assumed +to be in seconds if it\(aqs under 100, otherwise it\(aqs treated +as milliseconds. Default: 250m. .TP .BI \-k \ Send this keycode when activity is detected. Default @@ -80,7 +83,24 @@ in your usual keymapping (use "xmodmap \-pk" to find one). .BI \-b \