dwm Configuration^

As with many tools from Suckless, dwm derives its configuration at compile-time from a config.h header file. If you want to modify the default configuration, you must update the config.h, recompile, and restart X to load the new version.

Note

The arrangement of code here is not consistent with the order you’ll find in your config.h. In writing this article, I have rearranged the code to better reflect the logical structure and narrative flow of the content.

Theme

Configures theming options available to dwm, including the theme, window borders, font settings, and the default status bar.

Tags and Rules

Configures tags, which are analogous to work spaces found in other desktop environments and window managers, and rules, which control which tags an application uses by default.

Layout

Configures how dwm handles screen layouts, such as which layouts are available, which are default, and the handling of the master area.

Keyboard and Mouse

Configures the keyboard, shortcuts, and mouse commands.

dwm Source Build dwm Theme Configuration