mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 00:20:22 -07:00
makeMain -> xmonad
This commit is contained in:
parent
a5acef3ad6
commit
fcea17f920
3
Main.hs
3
Main.hs
@ -31,7 +31,7 @@ main :: IO ()
|
|||||||
main = do
|
main = do
|
||||||
handle (hPrint stderr) buildLaunch
|
handle (hPrint stderr) buildLaunch
|
||||||
-- if buildLaunch returns, execute the trusted core
|
-- if buildLaunch returns, execute the trusted core
|
||||||
makeMain defaultConfig
|
xmonad defaultConfig
|
||||||
|
|
||||||
-- | Build "~/.xmonad/Main.hs" with ghc, then execute it. If there are no
|
-- | Build "~/.xmonad/Main.hs" with ghc, then execute it. If there are no
|
||||||
-- errors, this function does not return. An exception is raised in any of
|
-- errors, this function does not return. An exception is raised in any of
|
||||||
@ -51,3 +51,4 @@ buildLaunch = do
|
|||||||
args <- getArgs
|
args <- getArgs
|
||||||
executeFile (dir ++ "/Main") False args Nothing
|
executeFile (dir ++ "/Main") False args Nothing
|
||||||
return ()
|
return ()
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
--
|
--
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
module XMonad.Core (makeMain) where
|
module XMonad.Core (xmonad) where
|
||||||
|
|
||||||
import Data.Bits
|
import Data.Bits
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
@ -38,8 +38,8 @@ import System.IO
|
|||||||
-- |
|
-- |
|
||||||
-- The main entry point
|
-- The main entry point
|
||||||
--
|
--
|
||||||
makeMain :: XConfig -> IO ()
|
xmonad :: XConfig -> IO ()
|
||||||
makeMain xmc = do
|
xmonad xmc = do
|
||||||
dpy <- openDisplay ""
|
dpy <- openDisplay ""
|
||||||
let dflt = defaultScreen dpy
|
let dflt = defaultScreen dpy
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user