mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Update docs in Util
This commit is contained in:
parent
39445183bc
commit
64d215327e
@ -54,14 +54,12 @@ dzenScreen sc str timeout = dzenWithArgs str ["-xs", screen] timeout
|
|||||||
|
|
||||||
-- | Flashes when a window requests your attention and you can't see it. For use with
|
-- | Flashes when a window requests your attention and you can't see it. For use with
|
||||||
-- XMonadContrib.UrgencyHook. Usage:
|
-- XMonadContrib.UrgencyHook. Usage:
|
||||||
--
|
|
||||||
-- > urgencyHook = dzenUrgencyHook (5 `seconds`)
|
-- > urgencyHook = dzenUrgencyHook (5 `seconds`)
|
||||||
dzenUrgencyHook :: Int -> Window -> X ()
|
dzenUrgencyHook :: Int -> Window -> X ()
|
||||||
dzenUrgencyHook = dzenUrgencyHookWithArgs []
|
dzenUrgencyHook = dzenUrgencyHookWithArgs []
|
||||||
|
|
||||||
-- | Flashes when a window requests your attention and you can't see it. For use with
|
-- | Flashes when a window requests your attention and you can't see it. For use with
|
||||||
-- XMonadContrib.UrgencyHook. Usage:
|
-- XMonadContrib.UrgencyHook. Usage:
|
||||||
--
|
|
||||||
-- > urgencyHook = dzenUrgencyHookWithArgs ["-bg", "darkgreen"] (5 `seconds`)
|
-- > urgencyHook = dzenUrgencyHookWithArgs ["-bg", "darkgreen"] (5 `seconds`)
|
||||||
dzenUrgencyHookWithArgs :: [String] -> Int -> Window -> X ()
|
dzenUrgencyHookWithArgs :: [String] -> Int -> Window -> X ()
|
||||||
dzenUrgencyHookWithArgs args duration w = do
|
dzenUrgencyHookWithArgs args duration w = do
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
module XMonad.Util.NamedWindows (
|
module XMonad.Util.NamedWindows (
|
||||||
-- * Usage
|
-- * Usage
|
||||||
-- $usage
|
-- $usage
|
||||||
NamedWindow,
|
NamedWindow,
|
||||||
getName,
|
getName,
|
||||||
withNamedWindow,
|
withNamedWindow,
|
||||||
unName
|
unName
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad.Reader ( asks )
|
import Control.Monad.Reader ( asks )
|
||||||
@ -33,7 +33,7 @@ import Graphics.X11.Xlib.Extras
|
|||||||
import XMonad
|
import XMonad
|
||||||
|
|
||||||
-- $usage
|
-- $usage
|
||||||
-- See "XMonadContrib.Mosaic" for an example of its use.
|
-- See "XMonad.Layout.Mosaic" for an example of its use.
|
||||||
|
|
||||||
|
|
||||||
data NamedWindow = NW !String !Window
|
data NamedWindow = NW !String !Window
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
-- |
|
-- |
|
||||||
-- Module : XMonadContrib.XSelection
|
-- Module : XMonad.Util.XSelection
|
||||||
-- Copyright : (C) 2007 Andrea Rossato, Matthew Sackman
|
-- Copyright : (C) 2007 Andrea Rossato, Matthew Sackman
|
||||||
-- License : BSD3
|
-- License : BSD3
|
||||||
--
|
--
|
||||||
@ -43,7 +43,7 @@ import XMonad.Util.Run (safeSpawn, unsafeSpawn)
|
|||||||
import XMonad (X, io)
|
import XMonad (X, io)
|
||||||
|
|
||||||
{- $usage
|
{- $usage
|
||||||
Add 'import XMonadContrib.XSelection' to the top of Config.hs
|
Add 'import XMonad.Util.XSelection' to the top of Config.hs
|
||||||
Then make use of getSelection or promptSelection as needed; if
|
Then make use of getSelection or promptSelection as needed; if
|
||||||
one wanted to run Firefox with the selection as an argument (say,
|
one wanted to run Firefox with the selection as an argument (say,
|
||||||
the selection is an URL you just highlighted), then one could add
|
the selection is an URL you just highlighted), then one could add
|
||||||
|
Loading…
x
Reference in New Issue
Block a user