----------------------------------------------------------------------
-- Shutdown hook

-- Perform an arbitrary action each time xmonad exits.
-- Normal shutdown occurs by not catching an ExitSuccess exception.
-- For the hook, first run the action, then rethrow the error.
myShutdownHook :: IO () -> E.SomeException -> IO ()
myShutdownHook pre e = pre >> E.throw e


myShutdownHook :: IO () -> E.SomeException -> IO ()
myShutdownHook pre e = pre >> E.throw e
myShutdownHook pre e = pre >> E.throw e