From 21250b1818df764e02096ead9babde8c9a405ecc Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Fri, 3 Jul 2020 22:16:15 -0400 Subject: [PATCH] FIX ensure xmonad is killed after we switch optimus modes --- lib/XMonad/Internal/Command/Power.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/XMonad/Internal/Command/Power.hs b/lib/XMonad/Internal/Command/Power.hs index 5c573e0..c8e098f 100644 --- a/lib/XMonad/Internal/Command/Power.hs +++ b/lib/XMonad/Internal/Command/Power.hs @@ -71,9 +71,9 @@ runOptimusPrompt = do where switch mode = confirmPrompt T.promptTheme (prompt mode) (cmd mode) prompt mode = "gpu switch to " ++ mode ++ "?" - cmd mode = spawnCmd "optimus-manager" - ["--switch", mode, "--no-confirm"] - >> io exitSuccess + cmd mode = spawn $ + unwords ["optimus-manager", "--switch", mode, "--no-confirm"] + #!&& "killall xmonad" -------------------------------------------------------------------------------- -- | Universal power prompt