First session with Sway

  1. Open a terminal, run swaymsg splitv and use your terminal shortcut to open a second terminal. The two windows should appear one above the other.
  2. In the new terminal run swaymsg splith and open a third terminal. Notice how only the lower section splits. Close the practice terminals individually with exit.

Make it your own

Find the installed keyboard shortcuts and display settings in the main Sway guide. Change one setting, check the result, and record its previous value so you can restore it.

Read the full Sway guide

See nested splits

Run swaymsg splitv in a terminal and open another terminal with your installed shortcut. It appears below the first. In the new terminal run swaymsg splith and open a third. Observe the lower area split again.

Inspect outputs and config

Use swaymsg -t get_outputs for output names and modes. Use swaymsg -t get_inputs for input devices. If you edit configuration, validate with sway -C before running swaymsg reload.

If something goes wrong

If a window opens in an unexpected place, inspect which container had focus. For a missing display, use the exact name from swaymsg -t get_outputs. If the bar disappears after editing, validate syntax with sway -C.