Window Manager Agnostic Workflows

TL;DR

A desktop workflow does not need to be tightly coupled to a specific window manager.

By separating keybindings, launchers, and helper scripts from the WM itself, it becomes possible to switch between dwm, progman, cwm, fvwm, or other WMs while preserving the same keyboard workflow and muscle memory.

Overview

Many lightweight window managers provide their own systems for:

Historically this made sense.

Older systems such as MWM and FVWM often acted as complete desktop environments, containing large amounts of functionality directly inside the window manager itself.

Modern minimalist workflows often take a different approach.

Instead of embedding every behavior inside the WM, responsibilities are separated into smaller independent components.

The Basic Idea

The workflow can be divided into layers:

sxhkd        -> keyboard shortcuts
dmenu        -> launcher/menu
shell script -> system actions
WM           -> window management only

In this model, the window manager focuses primarily on:

while other components remain external and reusable.

Why This Matters

Window manager configurations tend to become difficult to maintain when they accumulate unrelated responsibilities.

Examples:

When these actions are embedded directly into the WM configuration, switching window managers often means rebuilding the entire workflow.

Separating these responsibilities creates a more durable environment.

What Stays Inside the WM

This approach does not require moving every keybinding out of the window manager.

Window-management actions still belong naturally inside the WM itself.

Examples:

These actions are tightly coupled to the WM internals and are usually best kept inside the WM configuration.

sxhkd is primarily used for global desktop actions that remain stable regardless of the active window manager.

Examples:

This creates a cleaner separation between:

while preserving the strengths of the selected WM.

sxhkd as the Input Layer

sxhkd works well as a stable keyboard layer independent from the WM.

Instead of configuring shortcuts individually inside:

the shortcuts remain centralized in one place.

For example:

super + space

can always open the same launcher regardless of the active WM.

This preserves:

dmenu as a Stable Interface

The launcher itself also becomes independent from the WM.

A small shell script combined with dmenu can provide:

Example actions:

Because the launcher exists outside the WM, the same menu can be reused across completely different desktop environments.

Small Desktop Helpers

This separation can also extend beyond keybindings and launchers.

Small independent scripts may handle:

For example, a simple shell script combined with:

can implement time-based background behavior without requiring a full desktop environment or large settings framework.

Example implementation:

root-daynight

A small shell script that implements time-based root background behavior using xsetroot and hsetroot.

Because these components remain independent from the WM itself, they can be reused across different environments with little or no change.

The Window Manager Becomes Smaller

Once launchers and keyboard handling are externalized, the WM itself becomes simpler.

The configuration can focus mostly on:

This aligns naturally with minimalist window managers such as:

where the WM is treated primarily as a window manipulation system rather than a full desktop environment.

Example Structure

A typical setup may look like:

~/.xinitrc.common
~/.xinitrc.dwm
~/.xinitrc.progman
~/.config/sxhkd/sxhkdrc
~/.bin/menu

Shared session components:

remain independent from the selected WM.

Switching WMs may only require changing:

exec dwm

to:

exec progman

Advantages

Conclusion

Historically many window managers attempted to become complete desktop systems.

Modern minimalist workflows often move in the opposite direction:

small independent tools cooperating together

The result is a desktop where the workflow itself becomes more stable than the window manager underneath it.

The WM can change.

The workflow remains.