xmonad-contrib-0.18.0: Community-maintained extensions for xmonad
Copyright(c) 2009 Anze Slosar
translation to Haskell by Adam Vogt
LicenseBSD3-style (see LICENSE)
Maintainer<vogt.adam@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Actions.RandomBackground

Contents

Description

An action to start terminals with a random background color

Synopsis

Usage

Add to your keybindings something like:

,((modm .|. shiftMask, xK_Return), randomBg $ HSV 0xff 0x20

randomBg' :: MonadIO m => RandomColor -> m String Source #

randomBg' produces a random hex number in the form '#xxyyzz'

randomBg :: RandomColor -> X () Source #

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 Source #

RandomColor fixes constraints when generating random colors. All parameters should be in the range 0 -- 0xff

Constructors

RGB Int Int

specify the minimum and maximum lowest values for each color channel.

HSV Double Double

specify the saturation and value, leaving the hue random.