Software:dwm

From HandWiki
Short description: Dynamic window manager for X Window System

dwm
Dwm.svg
Dwm-shot.png
dwm-5.7.2 showing urxvt, GIMP, and Chromium.
Original author(s)Anselm R. Garbe[1]
Developer(s)suckless.org
Initial releaseJuly 14, 2006; 18 years ago (2006-07-14)[2]
Written inC
Operating systemUnix-like
Size26 KB (source code)[3]
TypeWindow manager
LicenseMIT[4]
Websitedwm.suckless.org
dwm's xinerama support: tiling on two screens simultaneously

dwm is a minimalist dynamic window manager for the X Window System developed by Suckless that has influenced the development of several other X window managers, including xmonad[5] and awesome.[6][7] It is externally similar to wmii, but internally much simpler. dwm is written purely in C for performance[8] and lacks any configuration interface besides editing the source code.[9] One of the project's guidelines is that the source code is intended to never exceed 2000 SLOC, and options meant to be user-configurable are all contained in a single header file.[7]

Features

dwm supports multiple workspaces and, unlike ratpoison, allows moving and resizing windows with the mouse.[10] Older versions of dwm displayed their stdin in a status bar, along the edge of the screen. Recent versions instead display the root window's name, which can be set by independent processes. This is often used to show information that would appear in the notification area of other desktop environments—a clock, system load info, laptop battery and network status, music player information and the like. This status line is often complemented with dmenu, a textual application launcher from the same developers as dwm. dwm uses a focus-follows-mouse model and lacks any window decoration other than a border to show focus. Since dwm's configurability amounts to patching the source code, many other options are possible.[11]

dmenu

dmenu is a keyboard-driven menu utility developed as part of the dwm project. When invoked, usually by a user-configured key combination, dmenu displays a horizontal menu of its stdin stream at the top edge of the screen. This is usually used to pipe in a list of executable names from the user's $PATH, but dmenu can be used for any purpose where a menu is required. The user can start typing a program name, and dmenu will narrow the list to show only substring matches for what the user typed. The user can also use the arrow keys to navigate the menu. When a choice is made, dmenu sends the selected text to stdout, which is usually piped into a shell to launch the program. Command-line options can alter the font and colors of the menu, make the search case-insensitive, as well as switch the menu to a vertical orientation or place it at the bottom of the screen. By default, only X Font Server fonts are supported although a patch exists to enable TrueType fonts using Xft.

dmenu is similar in function to application launchers such as Katapult or GNOME Do for Linux or LaunchBar or Quicksilver for Mac OS X in that it allows quick launching of programs from a graphical environment using the keyboard.

In addition to dwm,[12] dmenu is often used with other window managers like xmonad,[13] or Openbox,[12] and other software like the uzbl web browser.[14]

Forks and patches

dwm has been an influential project; many other window managers are based on dwm's source code or inspired by it. An extensive list of forks and patches can be found at the official site. Below is a list of a few notable examples:

  • awesome extends dwm with FreeType support, reconfigurability, Lua support, theming, and more layout types.
  • xmonad is a dwm rewrite in Haskell with additional features.

See also

References

  1. Garbe, Anselm R. "Anselm R Garbe". garbe.us. http://garbe.us. 
  2. 0.1 Release tag
  3. "dwm dynamic window manager". dwm.suckless.org. http://dwm.suckless.org. 
  4. "MIT/X Consortium License". suckless.org. http://git.suckless.org/dwm/plain/LICENSE. 
  5. Kolmodin, Lennart (April 2, 2007). "xmonad". Bits and Bytes. http://lennartkolmodin.blogspot.com/2007/04/xmonad.html. 
  6. Danjou, Julien (20 Sep 2007). "Announcing 'awesome'". dwm (Mailing list). Archived from the original on 3 April 2010. Retrieved 2011-05-15.
  7. 7.0 7.1 Auza, Jun (August 2, 2008). "20 Most Nimble and Simple X Window Managers for Linux". TechSource. http://www.junauza.com/2008/08/20-most-nimble-and-simple-x-window.html. 
  8. "dwm home page". http://dwm.suckless.org. "dwm is customized through editing its source code, which makes it extremely fast and secure - it does not process any input data which isn’t known at compile time" 
  9. Byfield, Bruce (2007-05-31). "Keyboard-driven environments open a new window on the desktop". Linux.com. SourceForge, Inc.. http://www.linux.com/archive/feed/62218. 
  10. "A Review And Tutorial Of The DWM Window Manager". Linux Goodies. http://www.linuxgoodies.com/review_dwm.html. 
  11. "patches". https://dwm.suckless.org/patches/. 
  12. 12.0 12.1 Arch Linux Magazine Team (January 2010). "Software Review: 2009 LnF Awards". Arch Linux Magazine. http://www.archlinux.org/static/magazine/2010/ALM-2010-Jan.html#review. 
  13. "100 open source gems - part 2". TuxRadar. Future Publishing. 21 May 2009. http://www.tuxradar.com/content/100-open-source-gems-part-2. 
  14. Vervloesem, Koen (15 July 2009). "Uzbl: a browser following the UNIX philosophy". LWN.net. Eklektix, Inc.. https://lwn.net/Articles/341245/. 

Further reading

  • (in German) Tobias Walkowiak, Dynamische Fenster mit DWM. Ressourcen sparen mit dem etwas anderen Window Manager, freeX, issue 6/07, (Oct/Nov 2007) pp. 44–47

External links