tmux/.tmux.conf
2025-02-27 15:16:36 +01:00

67 lines
4.9 KiB
Bash

set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
# Set prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# ─< Start windows and panes at 1, not 0 >──────────────────────────────────────────────────
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# ────────────────────────────────────< List of plugins >──────────────────────────────────
# ─< Import Plugins >─────────────────────────────────────────────────────────────────────
set -g @plugin 'tmux-plugins/tpm'
# ────────────────────────────< tmux settings everybody agreed >────────────────────────────
set -g @plugin 'tmux-plugins/tmux-sensible'
# ────────────────────────────────────< yank for tmux >──────────────────────────────────
set -g @plugin 'tmux-plugins/tmux-yank'
# ────────────────────< tmux session plugin for after reboot sessions >──────────────────
set -g @plugin 'tmux-plugins/tmux-resurrect'
# ─────────────────────────────────< tmux battery plugin >───────────────────────────────
# set -g @plugin 'tmux-plugins/tmux-battery'
# ─────────────────────────────────────< colorschemes >─────────────────────────────────────
# set -g @plugin 'catppuccin/tmux'
set -g @plugin 'janoamaral/tokyo-night-tmux'
# ────────────────────────────────────< copyct plugin >──────────────────────────────────
set -g @plugin 'tmux-plugins/tmux-copycat'
# ────────────────────────────────< ethernet speed plugin >──────────────────────────────
# set -g @plugin 'tmux-plugins/tmux-net-speed'
# set -g @net_speed_interfaces 'eth0 enp7s0 wlan0'
# ─────────────────────────────────────────< Themes >─────────────────────────────────────────
# ─< catppuccin >─────────────────────────────────────────────────────────────────────────
# set -g @catppuccin_flavour 'mocha' # latte, frappe, mocha or macchiato
# ─< tokyo-night >────────────────────────────────────────────────────────────────────────
set -g @tokyo-night-tmux_window_id_style digital
set -g @tokyo-night-tmux_pane_id_style hsquare
set -g @tokyo-night-tmux_zoom_id_style dsquare
run '~/.tmux/plugins/tpm/tpm'
# ─< Split panes in current directory >───────────────────────────────────────────────────
bind j split-window -v -c "#{pane_current_path}"
bind h split-window -h -c "#{pane_current_path}"
# ─< Make pane fullscreen >─────────────────────────────────────────────────────────────────
bind -n C-f resize-pane -Z
# ───────────────────────────────────< Navigate the panes >───────────────────────────────────
# ─< Switch to the left pane with Prefix + h >────────────────────────────────────────────────
bind -n C-h select-pane -L
# ─< Switch to the right pane with Prefix + l >───────────────────────────────────────────────
bind -n C-l select-pane -R