I know that xmonad’s configuration file is essentially a small Haskell program. I would like to do the same but don't seem to be able to understand from xmonad’s code how it is done. Would anyone please care to explain this to me in a slightly more foolproof way?
XMonad is a minimal window manager, meaning it doesn't set a background, start a status bar, display a splash screen or play a soothing sound effect when it starts up. Once xmonad has started, the only thing it does is listen for your first command.
xmonad/xmonad. hs are made, use the Mod+q shortcut to recompile and have them take effect. Tip: The default configuration for xmonad is quite usable and it is achieved by simply running without an xmonad.
mod-shift-q will quit xmonad.
xmonad
is a library for writing window managers. The default window manager includes a keybinding which looks in a standard place for the source code of a new window manager, invokes GHC to build this source, then execs the newly built window manager. State is preserved by passing the current state on the command line and letting the new process deal with converting the information from the old process into the format needed for the new one (and sometimes this doesn't work, and the state is lost).
The whole pattern is bundled together as a library in dyre.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With