add NoUrgencyHook, for shachaf's sake

This commit is contained in:
Devin Mullins
2007-11-10 23:58:57 +00:00
parent 6a3e6d787f
commit 899bb99fad

View File

@@ -22,6 +22,7 @@ module XMonad.Hooks.UrgencyHook (
withUrgencyHook,
focusUrgent,
readUrgents, withUrgents,
NoUrgencyHook(..),
dzenUrgencyHook, DzenUrgencyHook(..),
seconds
) where
@@ -144,6 +145,11 @@ withUrgencyHook theHook = ModifiedLayout $ WithUrgencyHook theHook
class (Read h, Show h) => UrgencyHook h a where
urgencyHook :: h -> a -> X ()
data NoUrgencyHook = NoUrgencyHook deriving (Read, Show)
instance UrgencyHook NoUrgencyHook Window where
urgencyHook _ _ = return ()
data DzenUrgencyHook = DzenUrgencyHook { duration :: Int, args :: [String] }
deriving (Read, Show)