ArticleslgStudy

computer science

Dwm

Dwm is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dwm rather than just read about it. In short: 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 and awesome. It is externally similar to wmii, but internally much simpler. dwm is written purely in C for performance and lacks any configuration interface besides editing the source code.

Dwm — main illustration
Dwm — illustration

Key takeaways

  • Dwm belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dwm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dwm from memory before moving on to harder problems.

Reference excerpt

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 and awesome. It is externally similar to wmii, but internally much simpler. dwm is written purely in C for performance and lacks any configuration interface besides editing the source code. One of the project's guidelines is that the source code is intended never to exceed 2000 SLOC, and options meant to be user-configurable are all contained in a single header file.

Features dwm supports multiple workspaces and, unlike ratpoison, allows moving and resizing windows with the mouse. 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.

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, dmenu is often used with other window managers like xmonad, or Openbox, and other software like the uzbl web browser. i3 uses dmenu as the default program launcher.

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

Comparison of X window managers

References

Further reading

External links Official website Going fast with DWM review in Linux Journal

Illustrations

Dwm illustration
Dwm illustration
Dwm: dwm's xinerama support: tiling on two screens simultaneously
dwm's xinerama support: tiling on two screens simultaneously

Worked examples

Example 1 — a first encounter with Dwm

Start with the simplest possible case. Write down what Dwm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dwm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dwm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dwm

In research
Dwm appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dwm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dwm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Application launchers, Free X window managers, Free software programmed in C, so understanding it makes those chapters shorter.
In everyday life
Look for Dwm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dwm” →

How to study Dwm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dwm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dwm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dwm in simple terms?

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 and awesome. It is externally similar to wmii, but internally much simpler. dwm is written purely in C for performance an…

Why does Dwm matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dwm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dwm.

Tags

  • Application launchers
  • Free X window managers
  • Free software programmed in C
  • Software using the MIT license
  • Tiling window managers
  • Unix windowing system-related software

Keep exploring