Utility: This will rotate the background on a GNU/Linux machine when you're not looking (specifically, when the monitor goes to sleep)
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
command.pl
commands
dpms.pl
readme
rot.pl

README.md

Rotate Background

This is a trivial utility to rotate the background images when I'm not looking. Specifically, this is done whenever my monitor falls asleep.

dpms.pl calls rot.pl whenever the monitor falls asleep. DPMS in X doesn't trigger any events, so we just probe the state every minute.

rot.pl runs a random command from a file called commands

command.pl generates the appropriate command for a jpg for a screen of my resolution (1600x1024). commands was generated by running find ./ |xargs -n1 ./command.pl>commands, and then manually adjusting the offsets for cropping.

Requires:

  • perl
  • The Perl X11::Protocol module
  • The Perl X11::Protocol::Ext::DPMS extension

This program is Copyright (c) 2002. Piotr Mitros, and is distributed under the same terms as perl itself.