From aaa2f1e410f805794202022fde9df29aa04db30f Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 17 May 2020 03:56:35 -0400 Subject: 0.2.0, major surgery --- jsmond.rst | 83 +++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 50 insertions(+), 33 deletions(-) (limited to 'jsmond.rst') diff --git a/jsmond.rst b/jsmond.rst index 78b5270..ae4dbc6 100644 --- a/jsmond.rst +++ b/jsmond.rst @@ -1,7 +1,7 @@ .. RST source for jsmond(1) man page. Convert with: .. rst2man.py jsmond.rst > jsmond.1 -.. |version| replace:: 0.1.0 +.. |version| replace:: 0.2.0 .. |date| date:: ====== @@ -20,51 +20,67 @@ deactivate screensaver on joystick activity SYNOPSIS ======== -jsmond [**-c command**] [**-i seconds**] [**-d**] [**-x**] [**joydev [joydev ...]**] +jsmond [**-i interval**] [**-k keycode** | **-b button**] [**-d dir**] [**-j name**] [**-D**] [**joydev [joydev ...]**] DESCRIPTION =========== jsmond lets you play games with your joysticks/gamepads without -xscreensaver activating due to lack of keyboard/mouse input. +the screen saver activating due to lack of keyboard/mouse input. Multiple joystick devices can be monitored. By default, jsmond 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. -Every *interval* seconds (60, or whatever **-i** is set to), jsmond +Every *interval* milliseconds (250, or whatever **-i** is set to), jsmond checks to see if there's been any activity on any of the devices it's -monitoring. If so, it runs the **xscreensaver-command -deactivate** -(or whatever the **-c** argument is set to). The command will be run no -more than once every *interval* seconds. +monitoring. If so, it sends a fake keystroke or mouse button click, which +the screen saver will see as activity. It's recommended to let jsmond find the joysticks itself. However, you can pass one or more device names (or just numbers) if the default doesn't do the right thing for you. In this case, only these devices will be monitored (no search is done). +jsmond should be started from your **.xinitrc** or whatever X startup +script your windowmanager or desktop environment uses. By default, it +will exit when the X server does. There's no PID file: use "pkill jsmond" +if you need to kill the daemon. + OPTIONS ======= --help Print usage summary --c Run when activity was detected during the - last *interval*. +-i Interval to check for activity, in milliseconds. + Default: 250. --i Interval to check for activity. Should be set a minute or - so less than your xscreensaver timeout. Setting this too low - will waste resources. Default: 60. +-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 *doesn't* map to a keysym + in your usual keymapping (use "xmodmap -pk" to find one). --d Debug mode: run in foreground and print verbose messages. +-b