# Sway Cheatsheet [https://i3wm.org/docs/userguide.html](https://i3wm.org/docs/userguide.html) [https://github.com/swaywm/sway/wiki](https://github.com/swaywm/sway/wiki) Throughout this guide, the Sway logo will be used to refer to the configured modifier. This is the Super/ (`Mod4`) by default, with  key (`Mod1`) being a popular alternative. ## Basics
+ open new terminal
+ hfocus left
+ jfocus down
+ kfocus up
+ lfocus right
+ afocus parent
+ spacetoggle focus mode
## Moving windows
+ + hmove window left
+ + jmove window down
+ + kmove window up
+ + lmove window right
## Modifying windows
+ ftoggle fullscreen
+ vsplit a window vertically
+ bsplit a window horizontally
+ rresize mode
Look at the “Resizing containers / windows” section of the user guide. ## Changing the container layout
+ edefault (toggle vertical/horizontal)
+ sstacking
+ wtabbed
## Floating
+ + spacetoggle floating
+ 🐭drag floating
## Using workspaces
+ 0-9switch to another workspace
+ + 0-9move a window to another workspace
## Opening applications / Closing windows
+ dopen application launcher (dmenu)
+ + qkill a window
## Restart / Exit
+ + creload the configuration file
+ + eexit Sway
Copyright © 2012, Michael Stapelberg All rights reserved Designed by Zeus Panchenko, updated by Moritz Bandemer and Davide Depau Permission is granted to copy, distribute and/or modify this document provided the copyright notice and this permission notice are preserved on all copies.