# Tmux on ddubsOS β€” Summary & Cheatsheet ## πŸš€ Summary of modules/home/terminals/tmux.nix ### ⌨️ What is the Tmux Prefix? - The prefix is a special key you press before most tmux commands, so tmux can tell them apart from regular typing. - Notation guide used below: - C-x = hold Control and press x (e.g., C-a means Control+a) - M-x = hold Alt/Meta and press x (sometimes shown as Alt+x) - S-x = hold Shift and press x (often implicit for uppercase letters) - Tmux default prefix is C-b (Control+b). In this config it’s changed to C-a (Control+a), which mirrors the historical GNU Screen workflow many users prefer. Quick examples (with prefix = C-a): - New window: press C-a then c - Next window: press C-a then n - Split horizontally: press C-a then | - Split vertically: press C-a then - - Resize left: press C-a then C-h (hold Control and press h) - Program - tmux enabled; prefix: C-a; key mode: vi; baseIndex: 1; pane-base-index: 1 - baseIndex: window numbering starts at 1 instead of 0 - pane-base-index: pane numbering inside a window starts at 1 instead of 0 - Terminal overrides RGB; terminal set to "kitty"; shell: zsh - Mouse: enabled; 12-hour clock; history-limit: 5000; renumber-windows: on - Status/UX - Status bar at top; passthrough: on; confirmations reduced (kill-pane without prompt) - Plugins - vim-tmux-navigator, sensible, catppuccin --- ## πŸ—οΈ Keybindings Cheatsheet Navigation - Prefix h/j/k/l β€” select-pane Left/Down/Up/Right - Prefix o β€” select next pane - C-Tab β€” next-window - C-S-Tab β€” previous-window - M-Tab β€” new-window Splits - Prefix | β€” split-window -h (cwd) - Prefix \ β€” split-window -fh (cwd) - Prefix - β€” split-window -v (cwd) - Prefix _ β€” split-window -fv (cwd) Resize - Prefix C-h/C-j/C-k/C-l β€” resize-pane 15 cols/rows in direction - Prefix m β€” toggle zoom (resize-pane -Z) Windows - Prefix c β€” new-window - Prefix n β€” next-window - Prefix p β€” previous-window (note: config binds 'n' twice; intended p for previous) - Prefix t β€” clock-mode - Prefix q β€” display-panes - Prefix u β€” refresh-client Session/Reload - Prefix r β€” source-file ~/.config/tmux/tmux.conf - Prefix x β€” kill-pane (no prompt) Popups (display-popup) - Prefix C-y β€” lazygit (80%x80% at cwd) - Prefix C-n β€” prompt for session name; create and switch - Prefix C-j β€” switch session via fzf - Prefix C-r β€” yazi (90%x90% at cwd) - Prefix C-z β€” nvim ~/ddubsos/flake.nix (90%x90%) - Prefix C-t β€” zsh (75%x75% at cwd) Menu (display-menu) - Prefix d β€” Dotfiles menu with quick-open entries: - f: flake.nix (ddubsOS) - c: core packages (ddubsOS) - g: global packages (ddubsOS) - k: keybinds (Hyprland) - w: window rules (Hyprland) - z: ZaneyOS flake.nix - p: ZaneyOS packages - q: Exit Notes - Pane/Window indices start at 1. - Terminal passthrough and RGB enabled for truecolor.