DEV Community

Sérgio Araújo
Sérgio Araújo

Posted on

Dwm change workspace behavior

I want the following

Every time I close the last window in a certain workspace the dwm jumps to the next active window.

I asked to our beloved bard.google.com:
dwm linux - when close last window jump to the next active workspace

and he said:
To make dwm jump to the next active workspace when you close the last window in the current workspace, you can add the following line to your config.h file:

#define SWAPWORKSPACESONLASTWINDOWCLOSE 1
Enter fullscreen mode Exit fullscreen mode

Once you have added this line, recompile and install dwm. Now, whenever you close the last window in a workspace, dwm will automatically switch to the next active workspace.

The suggested change worked nicely and now my workflow improved a little bit more. The feeling is: The Linux world is endless, it gives us endless customization on the tip of our fingers.

Top comments (0)