linux-dev tmux with divider

This commit is contained in:
Tomas Mirchev 2025-09-19 23:19:21 +00:00
parent 42e56f8320
commit f4c3f38078
2 changed files with 72 additions and 1 deletions

View File

@ -87,7 +87,7 @@
},
{
"package": "tmux",
"install": "sudo apt install -y tmux"
"link": { "from": "linux-dev/tmux", "to": "~/.tmux.conf" }
},
{
"package": "nvim",

71
config/linux-dev/tmux Normal file
View File

@ -0,0 +1,71 @@
# Change the prefix from 'C-b' to 'C-Space'
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
set-option -g set-clipboard on
#set -g default-terminal "tmux-256color"
#set -as terminal-features ",*:RGB"
set-option -a terminal-features 'xterm-256color:RGB'
set-option -sg escape-time 10
set-option -g repeat-time 0
set-option -g focus-events on
# Set the base index for windows and panes to 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Increase scrollback buffer size
set -g history-limit 10000
# Light theme with transparent background
set -g status-style bg=default,fg='#4c4f69'
set -g status-left '#[fg=blue,bold][#S] '
set -g status-left-length 50
set -g status-right ''
# set -g pane-border-status bottom # or 'bottom' if status is at top
# set -g pane-border-format '─' # This will fill the entire width automatically
# Window status format - light theme with terminal blue
setw -g window-status-format '#[fg=#6c6f85]#I#[fg=#9ca0b0]:#[fg=#4c4f69]#W#[fg=#9ca0b0]#F'
setw -g window-status-current-format '#[fg=blue,bold]#I#[fg=#9ca0b0]:#[fg=blue,bold]#W#[fg=#9ca0b0]#F'
# Pane border - light theme
set -g pane-border-style fg='#ccd0da'
set -g pane-active-border-style fg=blue
# Message text - light theme
set -g message-style bg='#eff1f5',fg=blue
# Copy mode colors - light theme
setw -g mode-style bg='#acb0be',fg='#4c4f69'
# Enable mouse support
setw -g mouse on
# Fix scroll. Use N3 instead of N1 to make it quicker
bind-key -T copy-mode-vi WheelUpPane send -N1 -X scroll-up
bind-key -T copy-mode-vi WheelDownPane send -N1 -X scroll-down
# Update terminal titles
set-option -g set-titles off
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind -T copy-mode-vi v send-keys -X begin-selection
# Pane navigation using vim-like keys
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# Automatically renumber windows when one is closed
set -g renumber-windows on
# Reload tmux config
bind r source-file ~/.tmux.conf \; display "Reloaded!"