diff options
-rw-r--r-- | unsaver.1 | 18 | ||||
-rw-r--r-- | unsaver.c | 2 | ||||
-rw-r--r-- | unsaver.html | 8 | ||||
-rw-r--r-- | unsaver.rst | 2 |
4 files changed, 15 insertions, 15 deletions
@@ -1,8 +1,5 @@ .\" Man page generated from reStructuredText. . -.TH UNSAVER 1 "2020-05-23" "0.4.0" "Urchlay" -.SH NAME -unsaver \- deactivate screensaver on joystick activity . .nr rst2man-indent-level 0 . @@ -30,6 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. +.TH "UNSAVER" 1 "2021-12-23" "0.4.1" "Urchlay" +.SH NAME +unsaver \- deactivate screensaver on joystick activity .\" RST source for unsaver(1) man page. Convert with: . .\" rst2man.py unsaver.rst > unsaver.1 @@ -70,10 +70,10 @@ above. Use e.g. \fB\-i 300\fP, not \fB\-i300\fP\&. .SS General options .INDENT 0.0 .TP -.B \-\-help +.B \-\-help Print usage summary and exit. .TP -.B \-d +.B \-d Debug mode: run in foreground and print verbose messages. .UNINDENT .SS Monitoring options @@ -86,11 +86,11 @@ with \fIs\fP suffix (e.g. \fB1s\fP), or milliseconds with \fIm\fP to be in seconds if it\(aqs under 100, otherwise it\(aqs treated as milliseconds. Default: 250m. .TP -.B \-j +.B \-j Only monitor joysticks; don\(aqt try to detect fullscreen windows. \fB\-j\fP and \fB\-f\fP are mutually exclusive. .TP -.B \-f +.B \-f Only detect fullscreen windows; don\(aqt monitor joysticks. \fB\-j\fP and \fB\-f\fP are mutually exclusive. Note that \fBjoysticks\fP are ignored with \fB\-f\fP\&. @@ -114,7 +114,7 @@ applications don\(aqt normally respond to (6 or higher), but in some environments, the window manager responds to all the \(aqextra\(aq buttons as though they were button 1. .TP -.B \-m +.B \-m Send mouse movements rather than a keystroke. This will move the pointer 10 pixels to the right and down, then 10 pixels to the left and up, then warp the pointer back @@ -126,7 +126,7 @@ sending a fake keystroke/click/motion. It\(aqs recommended to set \fIinterval\fP to at least 1 second when using this option, to avoid excess process\-spawning overhead. .TP -.B \-x +.B \-x Same as \fB\-c "xscreensaver\-command \-deactivate" \-i 1s\fP\&. .UNINDENT .SH NOTES @@ -268,7 +268,7 @@ void open_joysticks(void) { void check_inotify() { int res; - res = read(inotify_fd, inotify_buf, sizeof(inotify_buf) + NAME_MAX + 1); + res = read(inotify_fd, inotify_buf, sizeof(struct inotify_event) + NAME_MAX + 1); if(res > 0) { if(debug) { diff --git a/unsaver.html b/unsaver.html index e64c712..55a0f04 100644 --- a/unsaver.html +++ b/unsaver.html @@ -3,9 +3,9 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" /> +<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> <title>unsaver</title> -<meta name="date" content="2020-05-23" /> +<meta name="date" content="2021-12-23" /> <style type="text/css"> /* @@ -373,9 +373,9 @@ ul.auto-toc { <tr class="manual-group field"><th class="docinfo-name">Manual group:</th><td class="field-body">Urchlay</td> </tr> <tr><th class="docinfo-name">Date:</th> -<td>2020-05-23</td></tr> +<td>2021-12-23</td></tr> <tr><th class="docinfo-name">Version:</th> -<td>0.4.0</td></tr> +<td>0.4.1</td></tr> </tbody> </table> <!-- RST source for unsaver(1) man page. Convert with: --> diff --git a/unsaver.rst b/unsaver.rst index dc05f44..df4b16a 100644 --- a/unsaver.rst +++ b/unsaver.rst @@ -1,7 +1,7 @@ .. RST source for unsaver(1) man page. Convert with: .. rst2man.py unsaver.rst > unsaver.1 -.. |version| replace:: 0.4.0 +.. |version| replace:: 0.4.1 .. |date| date:: ======= |