Skip to content

Instantly share code, notes, and snippets.

@pcanterini
Last active March 17, 2026 23:25
Show Gist options
  • Select an option

  • Save pcanterini/1a00108ea140b096e4243226e5e4968e to your computer and use it in GitHub Desktop.

Select an option

Save pcanterini/1a00108ea140b096e4243226e5e4968e to your computer and use it in GitHub Desktop.
Omarchy tmux cheat sheet

Tmux Cheat Sheet

Based on the active config in ~/.config/tmux/tmux.conf.

Prefix

  • Ctrl+Space primary prefix
  • Ctrl+b secondary/fallback prefix

Config

  • prefix q reload tmux config

Copy Mode

  • prefix [ enter copy mode
  • v begin selection in copy mode
  • y copy selection and exit copy mode

Panes

  • prefix h split top/bottom
  • prefix v split left/right
  • prefix x kill current pane
  • Ctrl+Alt+Left move to left pane
  • Ctrl+Alt+Right move to right pane
  • Ctrl+Alt+Up move to upper pane
  • Ctrl+Alt+Down move to lower pane
  • Ctrl+Alt+Shift+Left resize pane left by 5
  • Ctrl+Alt+Shift+Right resize pane right by 5
  • Ctrl+Alt+Shift+Up resize pane up by 5
  • Ctrl+Alt+Shift+Down resize pane down by 5

Windows

  • prefix r rename current window
  • prefix c create new window in current path
  • prefix k kill current window
  • Alt+1 to Alt+9 jump to window 1-9
  • Alt+Left previous window
  • Alt+Right next window
  • Alt+Shift+Left move current window left
  • Alt+Shift+Right move current window right

Sessions

  • prefix R rename current session
  • prefix C create new session in current path
  • prefix K kill current session
  • prefix P previous session
  • prefix N next session
  • Alt+Up previous session
  • Alt+Down next session

Omarchy Helpers

  • Super+Alt+Return launches a terminal and runs tmux attach || tmux new -s Work
  • t shell alias runs tmux attach || tmux new -s Work
  • tdl <ai> [second_ai] builds a dev layout in the current tmux window: left pane opens "$EDITOR ." (typically Neovim), right pane runs the first AI CLI command, and a bottom pane is left as a terminal
  • tdlm <ai> [second_ai] creates one tdl window per subdirectory of the current directory
  • tsl <pane_count> <command> creates a tiled pane layout and runs the same command in every pane

Layout Helpers

  • tdl c starts a layout with opencode in the AI pane
  • tdl cx starts a layout with claude --allow-dangerously-skip-permissions in the AI pane
  • tdl codex starts a layout with codex in the AI pane
  • tdl c codex starts a layout with two AI panes, one running opencode and one running codex
  • tdlm codex creates one tmux window per child project directory and starts the same editor/AI/terminal layout in each
  • tsl 4 codex creates four tiled panes and runs codex in all of them

Notes

  • These helpers are shell functions, not tmux keybindings
  • They are defined in ~/.local/share/omarchy/default/bash/fns/tmux
  • tdl, tdlm, and tsl must be run from inside an active tmux session
  • tdl uses $EDITOR . for the editor pane, so the exact editor depends on your shell environment
  • The n shell function is also available if you want a quick nvim launcher: n opens nvim ., and n <path> opens nvim <path>

Source Files

  • Live config: ~/.config/tmux/tmux.conf
  • Omarchy default: ~/.local/share/omarchy/config/tmux/tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment