FIX ensure xmonad is killed after we switch optimus modes

This commit is contained in:
Nathan Dwarshuis 2020-07-03 22:16:15 -04:00
parent 4df2b8b31e
commit 21250b1818
1 changed files with 3 additions and 3 deletions

View File

@ -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