- 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/.
- 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
- breaks :: (a -> Bool) -> [a] -> [[a]]
Documentation
Iterates over all the images, picking a random one each the time.
Reads the list from the master file and starts iterating over it.
Reads a file and return a list those elements are lines.
Gets a random number.
:: 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.
Changes the desktop image using qiv: http:www.klografx.netqivindex2.html