DWM(1)

๐Ÿ“ฆ
version 6.8 ยท 4 versions
, in ubuntu resolute, ubuntu stonking

๐Ÿ‘‘ DWM โ€” the dynamic window manager, bestie edition ๐Ÿ’…

okay so you opened the manual for dwm(1) and honestly? you're about to have a great time. this is the General Commands Manual page, and i'm gonna walk you through every single bit of it, no cap.


โœจ NAME โœจ

dwm โ€” dynamic window manager ๐ŸชŸ๐Ÿ’–


๐ŸŒธ SYNOPSIS ๐ŸŒธ

dwm [-v]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

dwm is a dynamic window manager for X. it manages your windows in three whole layouts: tiled, monocle, and floating. and the way you can apply any of them dynamically?? iconic. it optimises the environment for whatever app you're using and whatever task you're doing. main character energy fr.

In tiled layouts, windows live in a master area and a stacking area. the master area is on the left and holds one window by default โ€” just the one, she's the favorite ๐Ÿ’… โ€” and the stacking area on the right holds all the other windows. you can adjust the number of master area windows from zero to an arbitrary number, so go off. In monocle layout, all windows are maximised to the screen size. In floating layout, windows can be resized and moved freely. and heads up: dialog windows are always managed floating, regardless of the layout applied โ€” they simply do not participate, periodt.

Windows are grouped by tags. each window can be tagged with one or multiple tags. selecting certain tags displays all windows with these tags. it's giving curated feed ๐ŸŒˆ

Each screen contains a small status bar which displays:

  • all available tags
  • the layout
  • the title of the focused window
  • the text read from the root window name property, if the screen is focused

A floating window is indicated with an empty square and a maximised floating window is indicated with a filled square before the window's title. the selected tags are indicated with a different color. the tags of the focused window are indicated with a filled square in the top left corner. and the tags which are applied to one or more windows are indicated with an empty square in the top left corner. tiny squares doing so much work, we love to see it ๐ŸŽ€

dwm draws a small border around windows to indicate the focus state. yes bestie, the border is the vibe check.


๐Ÿ’– OPTIONS ๐Ÿ’–

  • -v โ€” prints version information to stderr, then exits. that's it, that's the whole option list, she's minimal and she knows it โœจ

๐Ÿ’… USAGE ๐Ÿ’…

๐Ÿ“ Status bar ๐Ÿ“

  • X root window name โ€” is read and displayed in the status text area. It can be set with the xsetroot(1) command. so if you want words up there, xsetroot is your girl.
  • Button1 โ€” click on a tag label to display all windows with that tag; click on the layout label toggles between tiled and floating layout.
  • Button3 โ€” click on a tag label adds/removes all windows with that tag to/from the view.
  • Mod1-Button1 โ€” click on a tag label applies that tag to the focused window.
  • Mod1-Button3 โ€” click on a tag label adds/removes that tag to/from the focused window.

โŒจ๏ธ Keyboard commands โŒจ๏ธ

  • Mod1-Shift-Return โ€” Start st(1). ๐Ÿ–ฅ๏ธ
  • Mod1-p โ€” Spawn dmenu(1) for launching other programs.
  • Mod1-, โ€” Focus previous screen, if any.
  • Mod1-. โ€” Focus next screen, if any.
  • Mod1-Shift-, โ€” Send focused window to previous screen, if any.
  • Mod1-Shift-. โ€” Send focused window to next screen, if any.
  • Mod1-b โ€” Toggles bar on and off.
  • Mod1-t โ€” Sets tiled layout.
  • Mod1-f โ€” Sets floating layout.
  • Mod1-m โ€” Sets monocle layout.
  • Mod1-space โ€” Toggles between current and previous layout.
  • Mod1-j โ€” Focus next window.
  • Mod1-k โ€” Focus previous window.
  • Mod1-i โ€” Increase number of windows in master area.
  • Mod1-d โ€” Decrease number of windows in master area.
  • Mod1-l โ€” Increase master area size.
  • Mod1-h โ€” Decrease master area size.
  • Mod1-Return โ€” Zooms/cycles focused window to/from master area (tiled layouts only).
  • Mod1-Shift-c โ€” Close focused window.
  • Mod1-Shift-space โ€” Toggle focused window between tiled and floating state.
  • Mod1-Tab โ€” Toggles to the previously selected tags.
  • Mod1-Shift-[1..n] โ€” Apply nth tag to focused window.
  • Mod1-Shift-0 โ€” Apply all tags to focused window.
  • Mod1-Control-Shift-[1..n] โ€” Add/remove nth tag to/from focused window.
  • Mod1-[1..n] โ€” View all windows with nth tag.
  • Mod1-0 โ€” View all windows with any tag.
  • Mod1-Control-[1..n] โ€” Add/remove all windows with nth tag to/from the view.
  • Mod1-Shift-q โ€” Quit dwm. ๐Ÿšช

๐Ÿ–ฑ๏ธ Mouse commands ๐Ÿ–ฑ๏ธ

  • Mod1-Button1 โ€” Move focused window while dragging. Tiled windows will be toggled to the floating state.
  • Mod1-Button2 โ€” Toggles focused window between floating and tiled state.
  • Mod1-Button3 โ€” Resize focused window while dragging. Tiled windows will be toggled to the floating state.

๐Ÿงš CUSTOMIZATION ๐Ÿงš

dwm is customized by creating a custom config.h and (re)compiling the source code. This keeps it fast, secure and simple. no runtime config files, no drama, just vibes compiled straight into the binary ๐Ÿ’œ


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

dmenu(1), st(1)


๐Ÿ’€ ISSUES ๐Ÿ’€

okay bestie, buckle up, this one's a little cursed. ๐Ÿ˜ญ

Java applications which use the XToolkit/XAWT backend may draw grey windows only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early JDK 1.6 versions, because it assumes a reparenting window manager.

Possible workarounds are:

  • using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend), or
  • setting the environment variable AWT_TOOLKIT=MToolkit (to use the older Motif backend instead), or
  • running xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D or wmname LG3D (to pretend that a non-reparenting window manager is running that the XToolkit/XAWT backend can recognize), or
  • when using OpenJDK, setting the environment variable _JAVA_AWT_WM_NONREPARENTING=1.
not me listing four whole coping strategies for Java. but here we are. ๐Ÿ™ˆ

๐Ÿ› BUGS ๐Ÿ›

Send all bug reports with a patch to hackers@suckless.org. patch included, always โ€” that's the house rule ๐Ÿซถ


and that's the whole page, you're officially a dwm girlie now โญ slay ๐Ÿ’…โœจ this was dwm-6.8, dated with the DWM(1) footer, from the General Commands Manual โ€” go forth and tile your little heart out ๐Ÿฆ‹๐Ÿ’–๐ŸŒธ

๐Ÿ“ฆ where this page comes from