restart xmonad: compile with stack beforehand

This commit is contained in:
Maximilian Keßler 2022-07-18 18:56:54 +02:00
parent dbdcf8c70c
commit fd3d735ab9

View file

@ -60,5 +60,8 @@ myXMonadBindings = [
("S-q", quitXMonad)
]
where
restartXMonad = spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi"
quitXMonad = io exitSuccess
restartXMonad :: X ()
restartXMonad = spawn "if type xmonad; then cd ~/.config/xmonad; stack install; xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi"