xmonad-contrib-0.16: Third party extensions for xmonad

Copyright | (c) Nicolas Pouillard 2009
License | BSD-style (see LICENSE)
Maintainer | Nicolas Pouillard <nicolas.pouillard@gmail.com>
Stability | unstable
Portability | unportable
Safe Haskell | None
Language | Haskell98

XMonad.Util.StringProp

Description

Internal utility functions for storing Strings with the root window.

Used for global state like IORefs with string keys, but more latency, persistent between xmonad restarts.

Synopsis

- type StringProp = String
- getStringProp :: MonadIO m => Display -> StringProp -> m (Maybe [Char])
- setStringProp :: MonadIO m => Display -> StringProp -> [Char] -> m ()
- getStringListProp :: MonadIO m => Display -> StringProp -> m [String]
- setStringListProp :: MonadIO m => Display -> StringProp -> [String] -> m ()

# Documentation

type StringProp = String Source #

getStringProp :: MonadIO m => Display -> StringProp -> m (Maybe [Char]) Source #

Get the name of a string property and returns it as a `Maybe`.

setStringProp :: MonadIO m => Display -> StringProp -> [Char] -> m () Source #

Set the value of a string property.

getStringListProp :: MonadIO m => Display -> StringProp -> m [String] Source #

Given a property name, returns its contents as a list. It uses the empty list as default value.

setStringListProp :: MonadIO m => Display -> StringProp -> [String] -> m () Source #

Given a property name and a list, sets the value of this property with the list given as argument.