Skip to content

Utility: This will rotate the background on a GNU/Linux machine when you're not looking (specifically, when the monitor goes to sleep)

Notifications You must be signed in to change notification settings

pmitros/background-rotator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Utility: This will rotate the background on a GNU/Linux machine when you're not looking (specifically, when the monitor goes to sleep)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages