diff options
Diffstat (limited to 'unsaver.1')
-rw-r--r-- | unsaver.1 | 51 |
1 files changed, 31 insertions, 20 deletions
@@ -36,7 +36,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] . .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\-j\fP | \fB\-f\fP] [\fB\-d\fP] [\fBjoydev [joydev ...]\fP] +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\-j\fP | \fB\-f\fP] [\fB\-d\fP] [\fBjoystick [joystick ...]\fP] .SH DESCRIPTION .sp unsaver lets you play games with your joysticks/gamepads without the screen @@ -50,16 +50,23 @@ will exit when the X server does. There\(aqs no PID file: use "pkill unsaver" if you need to kill the daemon. .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 -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. See JOYSTICK DEVICES -if the defaults don\(aqt work for you. +checks to see if there\(aqs been any activity on any of the josticks, or +if a fullscreen window exists. If so, it deactivates the screensaver +by sending a keystroke, clicking a mouse button, moving the mouse, +or executing a command (see "Monitoring Options", below). +.sp +Multiple joystick devices can be monitored. By default, unsaver monitors +up to 16 joysticks. These devices don\(aqt have to actually exist: they +can come and go as joysticks are plugged in and unplugged. See JOYSTICK +DEVICES if the defaults don\(aqt work for you. .SH OPTIONS +.sp +With no options, the default interval is 250ms, the deactivation mode +is to send an otherwise\-unused keycode, and both joystick and fullscreen +monitoring is enabled. +.sp +A space is required between an option and its argument, as shown +above. Use e.g. \fB\-i 300\fP, not \fB\-i300\fP\&. .SS General options .INDENT 0.0 .TP @@ -86,7 +93,7 @@ Only monitor joysticks; don\(aqt try to detect fullscreen windows. .B \-f Only detect fullscreen windows; don\(aqt monitor joysticks. \fB\-j\fP and \fB\-f\fP are mutually exclusive. Note that -\fBjoydevs\fP are ignored with \fB\-f\fP\&. +\fBjoysticks\fP are ignored with \fB\-f\fP\&. .UNINDENT .SS Deactivation mode options .sp @@ -121,9 +128,6 @@ option, to avoid excess process\-spawning overhead. .B \-x Same as \fB\-c "xscreensaver\-command \-deactivate" \-i 1s\fP\&. .UNINDENT -.sp -A space is required between an option and its argument, as shown -above. Use e.g. \fB\-i 300\fP, not \fB\-i300\fP\&. .SH NOTES .sp unsaver was tested with xlock(1), xscreensaver(1), and the built\-in @@ -152,6 +156,10 @@ It\(aqs recommended to let unsaver find the joysticks itself. However, you can pass one or more joystick numbers if the default doesn\(aqt do the right thing for you. Remember that the first joystick is numbered 0, not 1. .sp +One reason to manually set the joystick list might be that your 2nd +joystick is rarely used, and your cat likes to play with it. To monitor +only one device, you can say \fBunsaver 0\fP\&. +.sp When you manually set the list of devices, unsaver will only detect hotplug events on the devices you gave it. If you plug in more joysticks, they won\(aqt be monitored. @@ -167,10 +175,12 @@ the default names. .SH ENVIRONMENT .INDENT 0.0 .TP -.B UNSAVER_JS_DIR Path to joystick device nodes. If your OS keeps them +.B UNSAVER_JS_DIR +Path to joystick device nodes. If your OS keeps them somewhere besides "/dev/input", set this variable. .TP -.B UNSAVER_JS_NODE Base name for joystick device nodes. "js" by default. +.B UNSAVER_JS_NODE +Base name for joystick device nodes. "js" by default. \fIDon\(aqt\fP set this to "event", unsaver doesn\(aqt speak the full Linux event protocol. .UNINDENT @@ -185,10 +195,10 @@ or else fork() failed. No daemon will be running in this case. With the \-d option, unsaver never exits until it\(aqs killed. .SH BUGS .sp -There\(aqs no way to distinguish between an invalid device name and a -device name that doesn\(aqt happen to exist yet because its device hasn\(aqt +There\(aqs no way to distinguish between an invalid device number and a +device number that doesn\(aqt happen to exist yet because its device hasn\(aqt been plugged in yet. Try to avoid typos, if you really have to use device -names (better to autodetect). +numbers (it\(aqs better to autodetect). .sp Normally once daemonized, unsaver is very robust. However, if something does go wrong, there\(aqs no way to find out what. Probably there should @@ -228,6 +238,7 @@ unsaver is released under the WTFPL: Do WTF you want with this. unsaver was written by B. Watson <\fI\%yalhcru@gmail.com\fP>. .SH SEE ALSO .sp -jstest(1), jscal(1), sdl\-jstest(1), sdl2\-jstest(2) +jstest(1), jscal(1), sdl\-jstest(1), sdl2\-jstest(2), xscreensaver(1), +xautolock(1), xlock(1), xset(1) .\" Generated by docutils manpage writer. . |