backdropper-1.1: Rotates backdrops for X11 displays using qiv.Source codeContentsIndex
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
iterateImages :: [String] -> Int -> IO ()
mainLoop :: FilePath -> Int -> IO t
parseImageFile :: FilePath -> IO [String]
getRandomNumber :: Int -> IO Int
removeElement :: Int -> [a] -> (a, [a])
changeDesktop :: String -> IO ExitCode
Documentation
iterateImagesSource
:: [String]The list of images.
-> IntA delay.
-> IO ()An IO result -- in this case, a new backdrop.
Iterates over all the images, picking a random one each the time.
mainLoopSource
::
=> FilePathA path/name to the configuration file.
-> IntA delay.
-> IO tAn exit code.
Reads the list from the master file and starts iterating over it.
parseImageFileSource
:: FilePathThe 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
:: IntMaxium range (starts at 0)
-> IO IntA random number.
Gets a random number.
removeElementSource
::
=> 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
:: StringThe path to an image.
-> IO ExitCodeAn exit code from the shell running qiv.
Changes the desktop image using qiv: http:www.klografx.netqivindex2.html
Produced by Haddock version 2.1.0