mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-26 09:41:53 -07:00
Put restart in the X monad
This commit is contained in:
@@ -169,7 +169,7 @@ keys = M.fromList $
|
||||
, ((modMask .|. shiftMask, xK_c ), kill)
|
||||
|
||||
, ((modMask .|. shiftMask, xK_q ), io $ exitWith ExitSuccess)
|
||||
, ((modMask .|. shiftMask .|. controlMask, xK_q ), io restart)
|
||||
, ((modMask .|. shiftMask .|. controlMask, xK_q ), restart)
|
||||
|
||||
-- Cycle the current tiling order
|
||||
, ((modMask, xK_Return), swap)
|
||||
|
@@ -143,8 +143,8 @@ spawn x = io $ do
|
||||
|
||||
-- | Restart xmonad by exec()'ing self. This doesn't save state and xmonad has
|
||||
-- to be in PATH for this to work.
|
||||
restart :: IO ()
|
||||
restart = do
|
||||
restart :: X ()
|
||||
restart = io $ do
|
||||
prog <- getProgName
|
||||
prog_path <- findExecutable prog
|
||||
case prog_path of
|
||||
|
Reference in New Issue
Block a user