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

ShortcutPurpose
Mod + Ftoggle fullscreen
Mod + Vsplit vertically and open below
Mod + Bsplit horizontally and open to the right
Mod + Etoggle split direction
Mod + Shift + arrowsmove window
Mod + Shift + Spacetoggle floating mode
Mod + Renter resize mode
Mod + 1-0switch workspace
Mod + Shift + 1-0move window to workspace

tmux basics

Default prefix

Ctrl + B means: press Ctrl + B, release it, then press the next key.

Sessions

ShortcutDescription
tmux new -s namecreate a new session called name
tmux lslist active sessions
tmux attach -t nameattach to an existing session
tmux kill-session -t namedestroy a session
Prefix + Ddetach from session
Prefix + Slist sessions interactively
Prefix + $rename current session

Windows

ShortcutDescription
Prefix + Ccreate a new window
Prefix + ,rename current window
Prefix + Nnext window
Prefix + Pprevious window
Prefix + 0-9jump to a window by number
Prefix + Wopen interactive window list
Prefix + &close current window

Panes

ShortcutDescription
Prefix + %vertical split
Prefix + "horizontal split
Prefix + arrowsmove between panes
Prefix + Zzoom or unzoom pane
Prefix + Xclose pane
Prefix + Ocycle to next pane
Prefix + Qshow pane numbers
Prefix + {swap pane left
Prefix + }swap pane right
Prefix + Spacecycle pane layouts
Prefix + Alt + arrowsresize pane

Copy mode and helpers

ShortcutDescription
Prefix + [enter copy / scroll mode
Qexit copy mode
Prefix + ]paste copied text
tmux source ~/.tmux.confreload config
tmux list-keyslist all tmux bindings
Prefix + ?open help
Prefix + Tdisplay clock