l 5 xmonad-lass: show xmonad state on resume

This commit is contained in:
lassulus 2016-04-25 16:31:37 +02:00
parent 55e6a59afc
commit 42b649ddfc

View File

@ -75,7 +75,7 @@ xmonad' conf = do
path <- getEnv "XMONAD_STATE"
try (readFile path) >>= \case
Right content -> do
hPutStrLn stderr ("resuming from " ++ path)
hPutStrLn stderr ("resuming from " ++ path ++ "; state = " ++ show content)
withArgs ("--resume" : lines content) (xmonad conf)
Left e -> do
hPutStrLn stderr (displaySomeException e)