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 --- Makefile | 6 +- jsmond.1 | 216 ----------------- jsmond.c | 754 ----------------------------------------------------------- jsmond.html | 559 -------------------------------------------- jsmond.rst | 195 ---------------- unsaver.1 | 216 +++++++++++++++++ unsaver.c | 754 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ unsaver.html | 559 ++++++++++++++++++++++++++++++++++++++++++++ unsaver.rst | 195 ++++++++++++++++ 9 files changed, 1727 insertions(+), 1727 deletions(-) delete mode 100644 jsmond.1 delete mode 100644 jsmond.c delete mode 100644 jsmond.html delete mode 100644 jsmond.rst create mode 100644 unsaver.1 create mode 100644 unsaver.c create mode 100644 unsaver.html create mode 100644 unsaver.rst diff --git a/Makefile b/Makefile index 374ffbb..eb844f5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# GNU Makefile for jsmond +# GNU Makefile for unsaver #### # Packagers: override these on the make command line as needed. @@ -49,12 +49,12 @@ RST2HTML=rst2html4.py # Hopefully, no user-serviceable parts below this line. -PROJ=jsmond +PROJ=unsaver # the .rst is the authoritative source for the version number. VERSION=$(shell fgrep '.. |version| replace::' $(PROJ).rst | cut -d' ' -f4) -DEFINES=-DVERSION=\"$(VERSION)\" -DMAX_STICKS=$(MAX_STICKS) -DJSNODE=\"$(JSNODE)\" -DEVENTDIR=\"$(EVENTDIR)\" +DEFINES=-DVERSION=\"$(VERSION)\" -DMAX_STICKS=$(MAX_STICKS) -DJSNODE=\"$(JSNODE)\" -DEVENTDIR=\"$(EVENTDIR)\" -DPROJ=\"$(PROJ)\" CFLAGS+=$(shell pkg-config --cflags x11 xtst) LDFLAGS+=$(shell pkg-config --libs x11 xtst) diff --git a/jsmond.1 b/jsmond.1 deleted file mode 100644 index 878839e..0000000 --- a/jsmond.1 +++ /dev/null @@ -1,216 +0,0 @@ -.\" Man page generated from reStructuredText. -. -.TH JSMOND 1 "2020-05-19" "0.2.0" "Urchlay" -.SH NAME -jsmond \- 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 jsmond(1) man page. Convert with: -. -.\" rst2man.py jsmond.rst > jsmond.1 -. -.SH SYNOPSIS -.sp -jsmond [\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 -jsmond 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, jsmond -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), jsmond -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 jsmond 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 -jsmond 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 jsmond" -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 \