Giter Site home page Giter Site logo

xscreensaver-run's Introduction

Xscreensaver-run

This tiny program may be used to run screensavers from XScreenSaver collection synchronously, in fullscreen and without additional effects like screen locks or timers.

See also https://unix.stackexchange.com/questions/290698/how-to-manually-start-an-xscreensaver-application-in-root-window-full-screen

Build

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

Usage

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!

Development notes

Environment

To test the application in Nix:

  1. $ nix-shell
  2. (shell) $ nix-build '<nixpkgs>' -A pkgs.xscreensaver
  3. (shell) $ make
  4. (shell) $ ./xscreensaver-run ./result/libexec/xscreensaver/apple2 -text

Hints

  • To reset root window's cursor (just in case): xsetroot -cursor_name left_ptr

References

Bugs?

Yes! Check FIXMEs in the source code. Feel free to fix them and file PRs!

xscreensaver-run's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

anima-os-dev

xscreensaver-run's Issues

problems with window id's

xscreensaver-run /usr/lib/xscreensaver/webcollage
webcollage: 16:54:26: init: unparsable window id: ��*�

xscreensaver-run /usr/lib/xscreensaver/glhanoi
glhanoi: windowID must be an integer, not ��+�.

Also webcollage just produces a black screen, but the other ones I have tested seem to work no problem, but they still produce the windowID errors.

Fatal error during make install

gcc -l X11 src/xscreensaver-run.c -o xscreensaver-run
src/xscreensaver-run.c:1:10: fatal error: X11/X.h: Datei oder Verzeichnis nicht gefunden
1 | #include <X11/X.h>
| ^~~~~~~~~
compilation terminated.
make: *** [Makefile:7: xscreensaver-run] Fehler 1

OS: Linux Mint Mate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.