From Wikipedia, the free encyclopedia

Jump to: navigation, search

xmonad in tiling mode
Design by Spencer Janssen, Don Stewart, Jason Creighton
Latest release 0.8.1[1] / January 19, 2009
Preview release latest Darcs revision / (snapshot)
Operating system POSIX-compatible
Platform Cross-platform; requires X Window and GHC
Available in English
Development status Alpha
Type Window manager
License BSD-3
Website http://www.xmonad.org/

xmonad is a tiling window manager for the X Window System, written in the functional programming language Haskell.

Begun in March 2007, it is similar to dwm, larswm, StumpWM and other members of the tiling window manager family, in that it strives to make it possible for the user to productively manage windows without the use of the mouse. Xmonad is packaged and distributed on a wide range of Unix-like operating systems, such as Arch Linux, Debian, Ubuntu, Gentoo, Sourcemage Linux, NixOS, FreeBSD, NetBSD and OpenBSD.

While originally a clone of dwm (derivative in areas such as default keybindings), xmonad supports features not available to dwm users[2][3] such as per-workspace layout, tiling reflection, state preservation, layout mirroring, GNOME support and per-screen status bars; it can be customised by modifying an external configuration file and 'reloaded' while running.[4] XMonad features have begun to influence other tiling window managers - dwm has borrowed "urgency hooks" from XMonad,[5] has also included Xinerama support (for multihead displays) with release 4.8, and reimplemented XMonad's Fibonacci layout.[6]

Extensions to the core system, including emulation of other window managers and unusual layout algorithms, such as window tiling based on the Fibonacci spiral, have been implemented by the active community[7] and are available as a library.[8]

In addition to obviating the need for the mouse, the xmonad developers make heavy use of semi-formal methods and program derivation for improving reliability and enabling a total line of code count less than 1200, as of version 0.7; window manager properties (such as the behavior of window focus) are checked through use of QuickCheck. This emphasis makes xmonad unusual in a number of ways; besides being the first window manager written in Haskell, it is also the first to use the zipper data structure for automatically managing focus, and its core has been proven to be safe with respect to pattern matches,[9] contributing further to reliability. The developers write:

"xmonad is a tiling window manager for the X Window system, implemented, configured and dynamically extensible in Haskell. This demonstration presents the case that software dominated by side effects can be developed with the precision and efficiency we expect from Haskell by utilising purely functional data structures, an expressive type system, extended static checking and property- based testing. In addition, we describe the use of Haskell as an application configuration and extension language."[10]

It makes use of Haskell features and tools such as: QuickCheck, GHC extensions like pattern guards, monads, monad transformers, zippers, and the Cabal packaging system, in addition to Haskell bindings to Xlib and xft fonts (with rebinding to XCB planned when the Haskell bindings are released).

xmonad's xinerama support: tiling on three screens simultaneously.

[edit] See also

[edit] References

  1. ^ xmonad 0.8.1 : GHC 6.10 maintainance [sic] release
  2. ^ "Keyboard-Driven Environments Open a New Window". OSnews. 2007-05-31. http://www.osnews.com/story.php/18009/Keyboard-Driven-Environments-Open-a-New-Window/. Retrieved on 2007-05-31. 
  3. ^ "xmonad 0.4 Released". OSnews. 2007-10-19. http://osnews.com/story.php/18794/xmonad-0.4-Released. Retrieved on 2007-12-23. 
  4. ^ Through a combination of swiftly re-compiling and then execing the new XMonad binary; see "Haskell Weekly News: April 27, 2007". Haskell Weekly News. 2007-04-27. http://sequence.complete.org/hwn/20070427. Retrieved on 2007-05-23. 
  5. ^ See the developer discussion on the dwm mailing list
  6. ^ Suckless.org: Fibonacci layouts patch to dwm
  7. ^ Xmonad users generate significant traffic in the #xmonad IRC channel and the XMonad mailing list; in addition, there are a significant number of commits to the extension library from non-core devs (see the XMonad statistic page)
  8. ^ "xmonad: Contributed code". xmonad.org. 2007-05-22. http://xmonad.org/contrib.html. Retrieved on 2007-05-23. 
  9. ^ "Does xmonad crash? On proving pattern coverage in xmonad with Catch"; "Preconditions on XMonad"; see also "Detecting pattern-match failures in Haskell"
  10. ^ Stewart & Janssen, 2007

[edit] External links

Personal tools