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
|
2024-03-17 18:13:15 +01:00
|
|
|
|
2022-12-04 23:38:14 +01:00
|
|
|
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..."
|
|
|
|
|
|
|
|
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-03-17 18:13:15 +01:00
|
|
|
set -sg escape-time 1000
|
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
|
2024-03-17 18:13:15 +01:00
|
|
|
set -as 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-03-17 18:13:15 +01:00
|
|
|
set -g pane-border-style 'fg=colour240'
|
|
|
|
set -g pane-active-border-style 'fg=colour250'
|
2022-12-04 23:38:14 +01:00
|
|
|
#
|
|
|
|
## statusbar
|
|
|
|
set -g status-position bottom
|
|
|
|
set -g status-justify left
|
2024-03-17 18:13:15 +01:00
|
|
|
set -g status-style 'fg=colour246'
|
2024-01-22 17:52:20 +01:00
|
|
|
set -g status-right '#(date +%H:%M)'
|
2024-03-17 18:13:15 +01:00
|
|
|
set -g status-left ' '
|
|
|
|
set -g status-right-length 10
|
|
|
|
set -g status-left-length 10
|
2024-09-12 07:40:22 +02:00
|
|
|
|
2024-01-22 17:52:20 +01:00
|
|
|
setw -g window-status-current-style ''
|
2024-03-17 18:13:15 +01:00
|
|
|
setw -g window-status-current-format '#[fg=colour246]#I:#[fg=colour208]#W'
|
|
|
|
#
|
|
|
|
setw -g window-status-style ''
|
|
|
|
setw -g window-status-format '#[fg=colour246]#I:#W'
|
2024-09-12 07:19:02 +02:00
|
|
|
|
|
|
|
new-session -s main
|