About binary package and configuration file.

Hi, all. I think we should distribute a binary package (x86 at least) to make it easy to install xmonad (it's too difficult to install for an user who has no experience about Haskell). If we should do it, we also have to support an user configuration file like ~/.xmonadrc. So, I want to realize this propsal, but even I (I am a begginer) find it will be hard job (especially about Config.hs). Please tell me how to do it smartly or things you think about it. Thanks. MATSUYAMA Tomohiro

On Mon, Oct 08, 2007 at 12:08:07AM +0900, MATSUYAMA Tomohiro wrote:
Hi, all.
I think we should distribute a binary package (x86 at least) to make it easy to install xmonad (it's too difficult to install for an user who has no experience about Haskell). If we should do it, we also have to support an user configuration file like ~/.xmonadrc.
So, I want to realize this propsal, but even I (I am a begginer) find it will be hard job (especially about Config.hs).
Please tell me how to do it smartly or things you think about it.
Well, I have an idea but I don't know it is indeed smart...But you said you are a beginner (I'm not that far from that too) and wanted some thought... and there they are... Just my thoughts. Attached you'll find a contib module (XMonadContrib.BinaryConfig). To use: 1. save the attached xmonad.conf in /some/path 2. in Config.hs import XMonadContrib.BinaryConfig myConfig = readConfig "/some/path/xmonad.conf" and change: workspaces = map show [1 .. (workspaceNumber myConfig) :: Int] focusedBorderColor = bColor myConfig then start playing around with BinaryConfig.Config, adding new fields and modifying accordingly Config.hs The ugly part obviously, is the unsafePerformIO... Hope this helps somehow. Andrea

On Mon, Oct 08, 2007 at 12:08:07AM +0900, MATSUYAMA Tomohiro wrote:
Hi, all.
I think we should distribute a binary package (x86 at least) to make it easy to install xmonad (it's too difficult to install for an user who has no experience about Haskell). If we should do it, we also have to support an user configuration file like ~/.xmonadrc.
So, I want to realize this propsal, but even I (I am a begginer) find it will be hard job (especially about Config.hs).
Please tell me how to do it smartly or things you think about it.
Instead of error, when the configuration file is not read, we should return a default configuration (the same if the file is not found)... but this is something you can do if you happen to like the idea...;) Andrea
participants (2)
-
Andrea Rossato
-
MATSUYAMA Tomohiro