Personal tmux configuration with custom keybindings, session management, and Tokyo Night theme.
Current Prefix:
Ctrl+Space
-
Clone this repository or copy the files to your
~/.config/tmux/directory:git clone https://github.com/djalil45800/tmux.git ~/.config/tmux -
Ensure the sessionizer script is executable:
chmod +x ~/.config/tmux/tmux-sessionizer mv ~/.config/tmux/tmux-sessionizer ~/.local/bin/tmux-sessionizer
-
Start tmux to load the configuration automatically
| Action | Shortcut |
|---|---|
| Sessionizer (Project fuzzy finder) | Prefix + f |
| Detach from session (keep it running) | Prefix + d |
| Reload configuration | Prefix + r |
| List active sessions (from Shell) | tmux ls |
| Attach to last session (from Shell) | tmux a |
| Action | Shortcut |
|---|---|
| Vertical Split (side by side) | Prefix + v |
| Horizontal Split (top/bottom) | Prefix + s |
| Quick Navigate (No prefix needed) | Alt + h j k l |
| Close current pane | Prefix + x (then y) |
| Maximize / Restore pane (Zoom) | Prefix + m |
| Resize Panes (Vim Style) | Prefix + h j k l (hold keys) |
| Action | Shortcut |
|---|---|
| Create new window | Prefix + c |
| Go to window by index | Prefix + 1, 2, 3... |
| Previous / Next window | Prefix + p / n |
| Rename current window | Prefix + , |
| Action | Shortcut |
|---|---|
| Enter copy mode | Prefix + [ |
| Start selection | v |
| Copy selection (wl-copy / Fedora) | y |
| Paste from buffer | Prefix + P |
| Exit copy mode | Esc or q |
The tmux-sessionizer script provides a quick way to create and switch to project sessions using fzf for fuzzy finding.
- Uses
fdto find directories (excluding.gitandnode_modules) up to 3 levels deep - Pipes results to
fzffor interactive selection - Creates a new tmux session named after the selected directory (with dots replaced by underscores)
- If not in tmux, creates a new session; otherwise switches to it
fd(find alternative)fzf(fuzzy finder)tmux
Press Prefix + f to launch the sessionizer, then type to search for your project directory.
- Theme: Tokyo Night inspired
- Status Bar: Located at the Bottom
- Window List: Center-aligned
- Active Window: Highlighted with Blue + Underscored
- Kill entire server:
tmux kill-server - Configuration file:
~/.config/tmux/tmux.conf - Sessionizer script:
~/.local/bin/tmux-sessionizer
tmux.conf- Main tmux configurationtmux-sessionizer- Project session management scriptREADME.md- This documentation