Files
joakim 4eb93b7640 Initial commit
Dotfiles managed with GNU Stow: Hyprland (Lua config), Neovim, zsh,
tmux, ghostty, alacritty, waybar, yazi, lazygit, herdr, Claude Code.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 18:02:28 +02:00

55 lines
1.6 KiB
Bash

set -g default-terminal "tmux-256color"
# Set prefix to C-a
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
# Change binding for splitting terminal
unbind %
bind C-h split-window -v
unbind '"'
bind C-v split-window -h
# Refresh config
unbind r
bind r source-file ~/.tmux.conf
bind c new-window -c '#{pane_current_path}'
# Resize panes
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
set -g mouse on
set-option -g focus-events on
set-option -g status-position top
# Vin movement for copy
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse
# tpm plugin
# Rememeber to install tpm on the system!
set -g @plugin 'tmux-plugins/tpm'
# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator' # for navigating panes and vim/nvim with Ctrl-hjkl
set -g @plugin 'jimeh/tmux-themepack' # to configure tmux theme
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
set -g @themepack 'powerline/default/grey' # use this theme for tmux
set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents
set -g @continuum-restore 'on' # enable tmux-continuum functionality
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'