2022-12-04 23:38:14 +01:00
|
|
|
# tmux config
|
|
|
|
|
|
|
|
# remap prefix from 'C-b' to 'C-a'
|
|
|
|
unbind C-b
|
|
|
|
set -g prefix C-a
|
|
|
|
bind-key C-a last-window
|
|
|
|
bind-key C-n next-window
|
|
|
|
bind-key C-p previous-window
|
|
|
|
bind a send-prefix
|
|
|
|
|
|
|
|
# reload config file (change file location to your the tmux.conf you want to use)
|
|
|
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
|
|
|
|
#set-option -g lock-after-time 3600
|
|
|
|
|
|
|
|
unbind-key C-S-Up
|
|
|
|
unbind-key C-S-Down
|
|
|
|
unbind-key C-M-Up
|
|
|
|
unbind-key C-M-Down
|
|
|
|
unbind-key S-Up
|
|
|
|
unbind-key S-Down
|
|
|
|
|
|
|
|
unbind-key C-Up
|
|
|
|
unbind-key C-Down
|
|
|
|
unbind-key C-Left
|
|
|
|
unbind-key C-Right
|
|
|
|
|
|
|
|
# prefix + arrow creates pane in direction
|
2022-12-23 08:01:00 +01:00
|
|
|
bind | split-window -h
|
|
|
|
bind - split-window -v
|
2022-12-04 23:38:14 +01:00
|
|
|
unbind '"'
|
|
|
|
unbind %
|
|
|
|
|
2022-12-23 08:01:00 +01:00
|
|
|
# select panes using Ctrl-Arrow
|
|
|
|
bind Left select-pane -L
|
|
|
|
bind Right select-pane -R
|
|
|
|
bind Up select-pane -U
|
|
|
|
bind Down select-pane -D
|
2022-12-04 23:38:14 +01:00
|
|
|
|
|
|
|
# resize panes
|
|
|
|
bind -n C-Left resize-pane -L 1
|
|
|
|
bind -n C-Right resize-pane -R 1
|
|
|
|
bind -n C-Down resize-pane -D 1
|
|
|
|
bind -n C-Up resize-pane -U 1
|
|
|
|
|
|
|
|
# zoom/fullscreen
|
|
|
|
bind -n M-f resize-pane -Z
|
|
|
|
|
|
|
|
# move pain up/down the stack with Shift-Alt+Arrow
|
|
|
|
#bind -n C-PgUp swap-pane -U
|
|
|
|
#bind -n C-PgDown swap-pane -D
|
|
|
|
|
|
|
|
# kill pane
|
|
|
|
bind C-Q kill-pane
|
|
|
|
|
|
|
|
# Disable mouse for proper copy & paste
|
|
|
|
set -g mouse off
|
|
|
|
|
|
|
|
set-window-option -g xterm-keys on
|
|
|
|
set -g xterm-keys on
|
|
|
|
|
|
|
|
# count windows from 1
|
|
|
|
set -g base-index 1
|
|
|
|
|
|
|
|
# don't rename windows automatically
|
|
|
|
set-option -g allow-rename off
|
|
|
|
|
|
|
|
# don't set the window title
|
|
|
|
set -g set-titles off
|
|
|
|
|
2022-12-17 12:11:10 +01:00
|
|
|
# Reduce delay for escape key press
|
2024-01-18 22:04:58 +01:00
|
|
|
set -sg escape-time 0
|
2022-12-04 23:38:14 +01:00
|
|
|
|
2024-01-22 16:55:21 +01:00
|
|
|
set -g default-terminal "tmux-256color"
|
2022-12-04 23:38:14 +01:00
|
|
|
|
|
|
|
# we can do utf lines
|
2023-12-12 08:39:33 +01:00
|
|
|
set -sa terminal-overrides ",*:U8=0:"
|
2022-12-04 23:38:14 +01:00
|
|
|
|
|
|
|
set -g aggressive-resize off
|
|
|
|
set -g alternate-screen on
|
|
|
|
|
|
|
|
######################
|
|
|
|
### DESIGN CHANGES ###
|
|
|
|
######################
|
|
|
|
|
|
|
|
# quiet
|
|
|
|
set -g visual-activity off
|
|
|
|
set -g visual-bell off
|
|
|
|
set -g visual-silence off
|
|
|
|
setw -g monitor-activity off
|
|
|
|
set -g bell-action none
|
|
|
|
|
|
|
|
## panes
|
2024-01-22 16:55:21 +01:00
|
|
|
# set -g pane-border-style 'bg=colour0 fg=colour202'
|
|
|
|
# set -g pane-active-border-style 'bg=colour0 fg=colour202'
|
2022-12-04 23:38:14 +01:00
|
|
|
#
|
2024-01-22 17:52:20 +01:00
|
|
|
set -g status-interval 60
|
2022-12-04 23:38:14 +01:00
|
|
|
## statusbar
|
|
|
|
set -g status-position bottom
|
|
|
|
set -g status-justify left
|
2024-01-22 17:52:20 +01:00
|
|
|
set -g status-style 'bg=colour234 fg=colour30'
|
|
|
|
set -g status-right '#(date +%H:%M)'
|
|
|
|
set -g status-left ''
|
|
|
|
set -g status-right-length 20
|
|
|
|
set -g status-left-length 1
|
2024-01-22 16:55:21 +01:00
|
|
|
# #
|
2024-01-22 17:52:20 +01:00
|
|
|
setw -g window-status-current-style ''
|
|
|
|
setw -g window-status-current-format '#[fg=colour37]#[bg=colour235]#I:#W'
|
2024-01-22 16:55:21 +01:00
|
|
|
# #
|
|
|
|
# setw -g window-status-style ''
|
2024-01-22 17:52:20 +01:00
|
|
|
setw -g window-status-format '#[fg=colour30]#I:#W'
|