# WM SWAY Sway is a GNU/Linux window manager used to display graphical interface programs. Unlike KDE, GNOME, and others, it is not a full desktop environment. However, it is extremely fast, even on older PCs like mine. One of the key strengths of this window manager is its wide array of keyboard shortcuts for system management. # Main Commands... Here is a series of commands to manage the Sway layout: Select one of the windows and press: * $mod + e: Toggles the layout between horizontal (side-by-side) and vertical (stacked one on top of the other). This is the main command you are looking for to place windows side by side. * $mod + s: Switches to stacked mode (windows are layered on top of each other with a vertical list of titles). * $mod + w: Switches to tabbed mode (windows appear as tabs, web-browser style). ## How to choose where the next window opens If you want the next window you open to automatically align with the current one: * To open it on the right: press $mod + b (horizontal split) and then open the new app. * To open it underneath: press $mod + v (vertical split) and then open the new app. (Note: $mod is usually the Windows/Super or Alt key, depending on how you configured it in your configuration file). ## Other useful commands Below are additional commands to manage windows and the overall environment: * $mod + Shift + c: Reloads Sway without restarting the session (useful when you update the shortcut configuration file). * $mod + Shift + q: Closes the active window. * $mod + Shift + e: Exits Sway. * $mod + 4: Opens a new workspace 4 in Sway. ## Workspaces Workspaces close automatically if they do not contain any active windows. To move an active window to a new workspace, type $mod + Shift + number (where number is the new workspace you want to create). To switch from one workspace to another, simply press $mod + workspaceNumber.