mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Fixed location of xmonad.conf
This commit is contained in:
@@ -471,7 +471,8 @@ baseConfig = defaultConfig{ layoutHook = Layout (layoutHook defaultConfig) }
|
||||
-- | Core function that attempts to parse @~\/.xmonad\/xmonad.conf@
|
||||
readConfig :: IO (Maybe (XConfig Layout))
|
||||
readConfig = do
|
||||
cs <- bracket (openFile "/home/braden/.xmonad/xmonad.conf" ReadMode)
|
||||
dir <- getXMonadDir
|
||||
cs <- bracket (openFile (dir++"/xmonad.conf") ReadMode)
|
||||
(\h -> hClose h) -- vv force the lazy IO
|
||||
(\h -> (lines `fmap` hGetContents h) >>= \ss ->
|
||||
length ss `seq` return ss)
|
||||
|
Reference in New Issue
Block a user