Tiling
Summary
This note is a quick reference for Sway tiling shortcuts and the tmux shortcuts that go well with a keyboard-first workflow.
Sway tiling shortcuts
| Shortcut | Purpose |
|---|---|
Mod + F | toggle fullscreen |
Mod + V | split vertically and open below |
Mod + B | split horizontally and open to the right |
Mod + E | toggle split direction |
Mod + Shift + arrows | move window |
Mod + Shift + Space | toggle floating mode |
Mod + R | enter resize mode |
Mod + 1-0 | switch workspace |
Mod + Shift + 1-0 | move window to workspace |
tmux basics
Default prefix
Ctrl + Bmeans: pressCtrl + B, release it, then press the next key.
Sessions
| Shortcut | Description |
|---|---|
tmux new -s name | create a new session called name |
tmux ls | list active sessions |
tmux attach -t name | attach to an existing session |
tmux kill-session -t name | destroy a session |
Prefix + D | detach from session |
Prefix + S | list sessions interactively |
Prefix + $ | rename current session |
Windows
| Shortcut | Description |
|---|---|
Prefix + C | create a new window |
Prefix + , | rename current window |
Prefix + N | next window |
Prefix + P | previous window |
Prefix + 0-9 | jump to a window by number |
Prefix + W | open interactive window list |
Prefix + & | close current window |
Panes
| Shortcut | Description |
|---|---|
Prefix + % | vertical split |
Prefix + " | horizontal split |
Prefix + arrows | move between panes |
Prefix + Z | zoom or unzoom pane |
Prefix + X | close pane |
Prefix + O | cycle to next pane |
Prefix + Q | show pane numbers |
Prefix + { | swap pane left |
Prefix + } | swap pane right |
Prefix + Space | cycle pane layouts |
Prefix + Alt + arrows | resize pane |
Copy mode and helpers
| Shortcut | Description |
|---|---|
Prefix + [ | enter copy / scroll mode |
Q | exit copy mode |
Prefix + ] | paste copied text |
tmux source ~/.tmux.conf | reload config |
tmux list-keys | list all tmux bindings |
Prefix + ? | open help |
Prefix + T | display clock |
Related
- Back to Shortcuts
- [Apps & Session](Apps & Session)
- Terminal