aboutsummaryrefslogtreecommitdiff
path: root/unsaver.html
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-05-20 03:03:46 -0400
committerB. Watson <yalhcru@gmail.com>2020-05-20 03:03:46 -0400
commitb06b668dd6a020d19bcafca8e9dff8b2486019f8 (patch)
treee9568561b7d5e0ffdba8ccaeca828af56b5315f3 /unsaver.html
parent276db2c9c227043358ec83cf37116a907f975fcb (diff)
downloadunsaver-b06b668dd6a020d19bcafca8e9dff8b2486019f8.tar.gz
nitpickery
Diffstat (limited to 'unsaver.html')
-rw-r--r--unsaver.html49
1 files changed, 29 insertions, 20 deletions
diff --git a/unsaver.html b/unsaver.html
index 878eb10..17188e3 100644
--- a/unsaver.html
+++ b/unsaver.html
@@ -382,7 +382,7 @@ ul.auto-toc {
<!-- rst2man.py unsaver.rst > unsaver.1 -->
<div class="section" id="synopsis">
<h1>SYNOPSIS</h1>
-<p>unsaver [<strong>-i interval[s|ms]</strong>] [<strong>-m</strong> | <strong>-k keycode</strong> | <strong>-b button</strong> | <strong>-c command</strong> | <strong>-x</strong> ] [<strong>-j</strong> | <strong>-f</strong>] [<strong>-d</strong>] [<strong>joydev [joydev ...]</strong>]</p>
+<p>unsaver [<strong>-i interval[s|ms]</strong>] [<strong>-m</strong> | <strong>-k keycode</strong> | <strong>-b button</strong> | <strong>-c command</strong> | <strong>-x</strong> ] [<strong>-j</strong> | <strong>-f</strong>] [<strong>-d</strong>] [<strong>joystick [joystick ...]</strong>]</p>
</div>
<div class="section" id="description">
<h1>DESCRIPTION</h1>
@@ -395,17 +395,22 @@ script your window manager or desktop environment uses. By default, it
will exit when the X server does. There's no PID file: use &quot;pkill unsaver&quot;
if you need to kill the daemon.</p>
<p>Every <em>interval</em> milliseconds (250, or whatever <strong>-i</strong> is set to), unsaver
-checks to see if there's been any activity on any of the devices it's
-monitoring. If so, it sends a fake mouse movement, keystroke, or mouse
-button click, which the screen saver will see as activity.</p>
-<p>Multiple joystick devices can be monitored. By default, unsaver
-monitors up to 16 devices, named /dev/input/js0 through js15.
-These devices don't have to actually exist: they can come and go
-as joysticks are plugged in and unplugged. See JOYSTICK DEVICES
-if the defaults don't work for you.</p>
+checks to see if there's 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 &quot;Monitoring Options&quot;, below).</p>
+<p>Multiple joystick devices can be monitored. By default, unsaver monitors
+up to 16 joysticks. These devices don't have to actually exist: they
+can come and go as joysticks are plugged in and unplugged. See JOYSTICK
+DEVICES if the defaults don't work for you.</p>
</div>
<div class="section" id="options">
<h1>OPTIONS</h1>
+<p>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.</p>
+<p>A space is required between an option and its argument, as shown
+above. Use e.g. <strong>-i 300</strong>, not <strong>-i300</strong>.</p>
<div class="section" id="general-options">
<h2>General options</h2>
<table class="docutils option-list" frame="void" rules="none">
@@ -442,7 +447,7 @@ as milliseconds. Default: 250m.</td></tr>
<kbd><span class="option">-f</span></kbd></td>
<td>Only detect fullscreen windows; don't monitor joysticks.
<strong>-j</strong> and <strong>-f</strong> are mutually exclusive. Note that
-<strong>joydevs</strong> are ignored with <strong>-f</strong>.</td></tr>
+<strong>joysticks</strong> are ignored with <strong>-f</strong>.</td></tr>
</tbody>
</table>
</div>
@@ -483,8 +488,6 @@ option, to avoid excess process-spawning overhead.</td></tr>
<td>Same as <strong>-c &quot;xscreensaver-command -deactivate&quot; -i 1s</strong>.</td></tr>
</tbody>
</table>
-<p>A space is required between an option and its argument, as shown
-above. Use e.g. <strong>-i 300</strong>, not <strong>-i300</strong>.</p>
</div>
</div>
<div class="section" id="notes">
@@ -511,6 +514,9 @@ a single monitor, and may not work properly in multi-head environments.</p>
<p>It's recommended to let unsaver find the joysticks itself. However, you
can pass one or more joystick numbers if the default doesn't do the right
thing for you. Remember that the first joystick is numbered 0, not 1.</p>
+<p>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 <strong>unsaver 0</strong>.</p>
<p>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't be monitored.</p>
@@ -525,10 +531,12 @@ the default names.</p>
<div class="section" id="environment">
<h1>ENVIRONMENT</h1>
<dl class="docutils">
-<dt>UNSAVER_JS_DIR Path to joystick device nodes. If your OS keeps them</dt>
-<dd>somewhere besides &quot;/dev/input&quot;, set this variable.</dd>
-<dt>UNSAVER_JS_NODE Base name for joystick device nodes. &quot;js&quot; by default.</dt>
-<dd><em>Don't</em> set this to &quot;event&quot;, unsaver doesn't speak the
+<dt>UNSAVER_JS_DIR</dt>
+<dd>Path to joystick device nodes. If your OS keeps them
+somewhere besides &quot;/dev/input&quot;, set this variable.</dd>
+<dt>UNSAVER_JS_NODE</dt>
+<dd>Base name for joystick device nodes. &quot;js&quot; by default.
+<em>Don't</em> set this to &quot;event&quot;, unsaver doesn't speak the
full Linux event protocol.</dd>
</dl>
</div>
@@ -542,10 +550,10 @@ or else fork() failed. No daemon will be running in this case.</p>
</div>
<div class="section" id="bugs">
<h1>BUGS</h1>
-<p>There's no way to distinguish between an invalid device name and a
-device name that doesn't happen to exist yet because its device hasn't
+<p>There's no way to distinguish between an invalid device number and a
+device number that doesn't happen to exist yet because its device hasn't
been plugged in yet. Try to avoid typos, if you really have to use device
-names (better to autodetect).</p>
+numbers (it's better to autodetect).</p>
<p>Normally once daemonized, unsaver is very robust. However, if something
does go wrong, there's no way to find out what. Probably there should
be a log file, or use syslog (or is that overkill?).</p>
@@ -577,7 +585,8 @@ to port the code.</li>
</div>
<div class="section" id="see-also">
<h1>SEE ALSO</h1>
-<p>jstest(1), jscal(1), sdl-jstest(1), sdl2-jstest(2)</p>
+<p>jstest(1), jscal(1), sdl-jstest(1), sdl2-jstest(2), xscreensaver(1),
+xautolock(1), xlock(1), xset(1)</p>
</div>
</div>
</body>