DEV Community

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

Posted on

2

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)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more