From 29f0434b2d5141db1d0b6b20be8967905fe85aa9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 19 May 2020 15:58:05 -0400 Subject: ...and lo, a Great Renaming came upon the land, the like of which shall not be seen again --- unsaver.1 | 216 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 216 insertions(+) create mode 100644 unsaver.1 (limited to 'unsaver.1') diff --git a/unsaver.1 b/unsaver.1 new file mode 100644 index 0000000..5a69b40 --- /dev/null +++ b/unsaver.1 @@ -0,0 +1,216 @@ +.\" Man page generated from reStructuredText. +. +.TH UNSAVER 1 "2020-05-19" "0.3.0" "Urchlay" +.SH NAME +unsaver \- deactivate screensaver on joystick activity +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.\" RST source for unsaver(1) man page. Convert with: +. +.\" rst2man.py unsaver.rst > unsaver.1 +. +.SH SYNOPSIS +.sp +unsaver [\fB\-i interval[s|ms]\fP] [\fB\-m\fP | \fB\-k keycode\fP | \fB\-b button\fP | \fB\-c command\fP | \fB\-x\fP ] [\fB\-d dir\fP] [\fB\-j name\fP] [\fB\-f\fP] [\fB\-F\fP] [\fB\-D\fP] [\fBjoydev [joydev ...]\fP] +.SH DESCRIPTION +.sp +unsaver lets you play games with your joysticks/gamepads without the screen +saver activating due to lack of keyboard/mouse input. It can also prevent +the screensaver from activating when a fullscreen window is in use (e.g. +while watching a movie). +.sp +Multiple joystick devices can be monitored. By default, unsaver +monitors up to 16 devices, named /dev/input/js0 through js15. +These devices don\(aqt have to actually exist: they can come and go +as joysticks are plugged in and unplugged. +.sp +Every \fIinterval\fP milliseconds (250, or whatever \fB\-i\fP is set to), unsaver +checks to see if there\(aqs been any activity on any of the devices it\(aqs +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 unsaver find the joysticks itself. However, +you can pass one or more device names (or just numbers) if the default +doesn\(aqt do the right thing for you. In this case, only these devices +will be monitored (no search is done). +.sp +unsaver should be started from your \fB\&.xinitrc\fP or whatever X startup +script your window manager or desktop environment uses. By default, it +will exit when the X server does. There\(aqs no PID file: use "pkill unsaver" +if you need to kill the daemon. +.SH OPTIONS +.INDENT 0.0 +.TP +.B \-\-help +Print usage summary +.TP +.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 +is to search the keymap for an unused code. If you set this +manually, it should be a keycode that \fIdoesn\(aqt\fP map to a keysym +in your usual keymapping (use "xmodmap \-pk" to find one). +.TP +.BI \-b \