From f4c3f380786810cee724df48a3448e9b77ccb9f1 Mon Sep 17 00:00:00 2001 From: Tomas Mirchev Date: Fri, 19 Sep 2025 23:19:21 +0000 Subject: [PATCH] linux-dev tmux with divider --- config.json | 2 +- config/linux-dev/tmux | 71 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 config/linux-dev/tmux diff --git a/config.json b/config.json index c032c86..91c7a1c 100644 --- a/config.json +++ b/config.json @@ -87,7 +87,7 @@ }, { "package": "tmux", - "install": "sudo apt install -y tmux" + "link": { "from": "linux-dev/tmux", "to": "~/.tmux.conf" } }, { "package": "nvim", diff --git a/config/linux-dev/tmux b/config/linux-dev/tmux new file mode 100644 index 0000000..cb351ae --- /dev/null +++ b/config/linux-dev/tmux @@ -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!"