diff options
author | Devin Mullins <me@twifkak.com> | 2008-05-12 06:04:49 +0200 |
---|---|---|
committer | Devin Mullins <me@twifkak.com> | 2008-05-12 06:04:49 +0200 |
commit | fcf4277aea91f7abd7f10b38ed37ae42ee14f3e7 (patch) | |
tree | 6c3c205215132b955dd332bd7296dfade6dddd3f /XMonad | |
parent | 9c0dc283ef58e3cc51268212fea46e2dd35f33c5 (diff) | |
download | XMonadContrib-fcf4277aea91f7abd7f10b38ed37ae42ee14f3e7.tar.gz XMonadContrib-fcf4277aea91f7abd7f10b38ed37ae42ee14f3e7.tar.xz XMonadContrib-fcf4277aea91f7abd7f10b38ed37ae42ee14f3e7.zip |
SpawnUrgencyHook, FWIW
darcs-hash:20080512040449-78224-22bf6a8ae3f956e58d4dc0142c88643dfcfea5f3.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Hooks/UrgencyHook.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/XMonad/Hooks/UrgencyHook.hs b/XMonad/Hooks/UrgencyHook.hs index 516f234..1b895aa 100644 --- a/XMonad/Hooks/UrgencyHook.hs +++ b/XMonad/Hooks/UrgencyHook.hs @@ -24,6 +24,7 @@ module XMonad.Hooks.UrgencyHook ( readUrgents, withUrgents, urgencyLayoutHook, NoUrgencyHook(..), StdoutUrgencyHook(..), + SpawnUrgencyHook(..), dzenUrgencyHook, DzenUrgencyHook(..), UrgencyHook(urgencyHook), seconds @@ -178,6 +179,14 @@ instance UrgencyHook DzenUrgencyHook where dzenUrgencyHook :: DzenUrgencyHook dzenUrgencyHook = DzenUrgencyHook { duration = (5 `seconds`), args = [] } +-- | Spawn a commandline thing, appending the window id to the prefix string +-- you provide. (Make sure to add a space if you need it.) Do your crazy compiz +-- thing. +newtype SpawnUrgencyHook = SpawnUrgencyHook String deriving (Read, Show) + +instance UrgencyHook SpawnUrgencyHook where + urgencyHook (SpawnUrgencyHook prefix) w = spawn $ prefix ++ show w + -- For debugging purposes, really. data StdoutUrgencyHook = StdoutUrgencyHook deriving (Read, Show) |