xmonad-contrib-0.9: Third party extensions for xmonadContentsIndex
XMonad.Actions.RandomBackground
Portabilityunportable
Stabilityunstable
Maintainer<vogt.adam@gmail.com>
Contents
Usage
Description
An action to start terminals with a random background color
Synopsis
randomBg' :: MonadIO m => RandomColor -> m String
randomBg :: RandomColor -> X ()
data RandomColor
= RGB Int Int
| HSV Double Double
Usage

Add to your keybindings something like:

 ,((modm .|. shiftMask, xK_Return), randomBg $ HSV 0xff 0x20
randomBg' :: MonadIO m => RandomColor -> m String
randomBg' produces a random hex number in the form '#xxyyzz'
randomBg :: RandomColor -> X ()

randomBg starts a terminal with the background color taken from randomBg'

This depends on the your terminal configuration field accepting an argument like -bg '#ff0023'

data RandomColor
RandomColor fixes constraints when generating random colors. All parameters should be in the range 0 -- 0xff
Constructors
RGB Int Intspecify the minimum and maximum lowest values for each color channel.
HSV Double Doublespecify the saturation and value, leaving the hue random.
Produced by Haddock version 2.4.2