I started using dwm today and am trying to wrap my head around it, as OpenBox is my only other exposure to window managers.As suggested in the official tutorial, I first opened couple of terminals and they all got tiled, with the first terminal being pushed to left, which I understand is the master.I played with the default keybindings and opened and closed many windows and programs. I spent quite a bit of time trying to get what tags are and how to use them.After a while came back to tag 1 and see that the windows, though in tiled mode, somehow changed to a horizontal split like this:Any and all new windows are added horizontally.I don't see any specific keybinding for changing layout of existing windows (like in tmux).So, how can I get back the default tiling mode where master is on left and stacks are on right?
How do I get rid of horizontal split in dwm
dwm
You have (inadvertently) incremented the windows in master, the default keybind for which is Modi, so that all of your clients in that selected tag are in master.You can decrement the number of clients in master with Modd. Each press will decrement the clients in master by 1.It may also be worth pointing out that dwm doesn't use the desktop paradigm; whatever layout is applied to the currently visible tag(s) is applied to all tags—hence the dynamic in dwm.This is a powerful concept as it allows you to tag multiple clients, and manipulate those tags (and the associated views) on the fly. Combined with some rules in your config.h, it provides for an incredibly versatile model for managing clients.See this archived post for an explanation of dwm's tagging/client model.