backdropper-1.2: Rotates backdrops for X11 displays using Imagemagic.

Rotating_backdrop_logic

Description

  • rotating_wallpaper
Author
Yann Golanski.
Maintainer
Yann Golanski yann@kierun.org
Description
Wallpapers/Backdrop changer back end.

(c)2008 Yann Golanski, GPLv3 or above.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Synopsis

Documentation

iterateImagesSource

Arguments

:: [String]

The list of images.

-> Int

A delay.

-> IO ()

An IO result -- in this case, a new backdrop.

Iterates over all the images, picking a random one each the time.

mainLoopSource

Arguments

:: FilePath

A path/name to the configuration file.

-> Int

A delay.

-> IO t

An exit code.

Reads the list from the master file and starts iterating over it.

parseImageFileSource

Arguments

:: FilePath

The path/name to a configuration file.

-> IO [String]

A list those elements are lines.

Reads a file and return a list those elements are lines.

getRandomNumberSource

Arguments

:: Int

Maxium range (starts at 0)

-> IO Int

A random number.

Gets a random number.

removeElementSource

Arguments

:: Int 
-> [a]

A list.

-> (a, [a])

A list of an entry and the rest of the original list.

Removes an element from a list: Problem 20, 99 Haskell problems.

changeDesktopSource

Arguments

:: String

The path to an image.

-> IO ExitCode 

Changes the desktop image using qiv: http:www.klografx.netqivindex2.html

breaks :: (a -> Bool) -> [a] -> [[a]]Source