This tiny program may be used to run screensavers from XScreenSaver collection synchronously, in fullscreen and without additional effects like screen locks or timers.
Just make install
$ make install
NixOS users may use the following commands to install the application in the current user's profile:
$ nix-build
$ nix-env -i ./result
Run any screensaver from Xscreensaver collection by typing xscreensaver-run SCREENSAVER_APP_ARGS
. For example:
$ ./xscreensaver-run /usr/libexec/xscreensaver/apple2 -text -program 'uname -a'
Enjoy!
To test the application in Nix:
$ nix-shell
(shell) $ nix-build '<nixpkgs>' -A pkgs.xscreensaver
(shell) $ make
(shell) $ ./xscreensaver-run ./result/libexec/xscreensaver/apple2 -text
- To reset root window's cursor (just in case):
xsetroot -cursor_name left_ptr
- X Event definitions
- X Event documentation
- https://linux.die.net/man/3/xwindowevent
- https://linux.die.net/man/3/xgrabkeyboard
Yes! Check FIXMEs in the source code. Feel free to fix them and file PRs!