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
|
where
|
||||||
switch mode = confirmPrompt T.promptTheme (prompt mode) (cmd mode)
|
switch mode = confirmPrompt T.promptTheme (prompt mode) (cmd mode)
|
||||||
prompt mode = "gpu switch to " ++ mode ++ "?"
|
prompt mode = "gpu switch to " ++ mode ++ "?"
|
||||||
cmd mode = spawnCmd "optimus-manager"
|
cmd mode = spawn $
|
||||||
["--switch", mode, "--no-confirm"]
|
unwords ["optimus-manager", "--switch", mode, "--no-confirm"]
|
||||||
>> io exitSuccess
|
#!&& "killall xmonad"
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- | Universal power prompt
|
-- | Universal power prompt
|
||||||
|
|
Loading…
Reference in New Issue