gentoo-dots/.config/tmux/tmux.conf

87 lines
2.2 KiB
Plaintext
Raw Normal View History

2023-09-04 20:25:14 +02:00
# Colors with alacritty
set-option -sa terminal-overrides ",alacritty:Tc"
# enable mouse support
set -g mouse on
# start window and panes indexing at 1
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
2023-10-22 11:30:36 +02:00
# SPEED
set -g escape-time 0
set-option -g status-interval 1
2023-09-04 20:25:14 +02:00
# set prefix key to ctrl + space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
bind -n M-K previous-window
bind -n M-J next-window
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
2024-01-08 16:13:23 +01:00
bind "'" split-window -v -c "#{pane_current_path}"
2023-09-04 20:25:14 +02:00
bind '\' split-window -h -c "#{pane_current_path}"
# Floating popup keybindings
bind-key g run-shell 'tmux-popup lazygit'
bind-key f run-shell 'tmux-popup nnn'
bind-key h run-shell 'tmux-popup htop'
2023-11-23 15:05:08 +01:00
bind-key t run-shell 'tmux-popup t'
2023-09-04 20:25:14 +02:00
# Vim keybindings for pane movement
setw -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
2023-10-22 11:31:32 +02:00
# Skip kill pane %Number% (y/n) prompt
bind-key x kill-pane
2023-10-22 11:31:49 +02:00
# Don't exit from tmux when closing a session
set -g detach-on-destroy off
2023-09-04 20:25:14 +02:00
# Catppuccin settings
set -g @catppuccin_flavour 'frappe'
2023-11-23 15:05:08 +01:00
set -g @catppuccin_window_right_separator "█ "
2023-09-04 20:25:14 +02:00
set -g @catppuccin_window_number_position "right"
2023-11-23 15:05:08 +01:00
set -g @catppuccin_window_middle_separator " | "
2023-09-04 20:25:14 +02:00
2023-11-23 15:05:08 +01:00
set -g @catppuccin_window_default_fill "none"
2023-09-04 20:25:14 +02:00
2023-11-23 15:05:08 +01:00
set -g @catppuccin_window_current_fill "all"
2023-09-04 20:25:14 +02:00
2023-11-23 15:05:08 +01:00
set -g @catppuccin_status_modules_right "application session date_time"
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator "█"
set -g @catppuccin_date_time_text "%Y-%m-%d %H:%M"
# Status bar border
setw -g pane-border-status top
setw -g pane-border-format '─'
2023-09-04 20:25:14 +02:00
# Bar to top
set-option -g status-position top
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'catppuccin/tmux'
2023-11-23 15:05:08 +01:00
set -g @plugin 'tmux-plugins/tmux-battery'
2023-09-04 20:25:14 +02:00
set -g @plugin 'wfxr/tmux-fzf-url'
2024-01-08 16:13:29 +01:00
run '~/.local/share/tmux/plugins/tpm/tpm'