From 4f7f9d09670f1f66eb06171db637ba72ba3221cf Mon Sep 17 00:00:00 2001 From: tdback Date: Mon, 3 Feb 2025 21:27:35 -0500 Subject: only try to restart if xmonad successfully recompiles --- lib/KeyBindings.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/KeyBindings.hs b/lib/KeyBindings.hs index a4b26d3..3206270 100644 --- a/lib/KeyBindings.hs +++ b/lib/KeyBindings.hs @@ -22,7 +22,7 @@ myKeys conf@(XConfig{XMonad.modMask = modm}) = , ((modm, xK_b), safeSpawn myBrowser []) , ((modm .|. shiftMask, xK_c), kill) , ((modm, xK_n), refresh) - , ((modm, xK_q), spawn "xmonad --recompile; xmonad --restart") + , ((modm, xK_q), spawn "xmonad --recompile && xmonad --restart") , ((modm, xK_f), sendMessage $ Toggle FULL) , ((modm .|. shiftMask, xK_f), withFocused WS.toggleFloat) , ((modm, xK_space), sendMessage NextLayout) -- cgit v1.2.3