notify-send -t 5000 "recompiling xmonad" if xmonad --recompile then notify-send -t 5000 "compilation succeeded" xmonad --restart else notify-send -t 5000 "compilation failed" fi