FIX ensure xmonad is killed after we switch optimus modes
This commit is contained in:
parent
4df2b8b31e
commit
21250b1818
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue