Created
February 3, 2022 15:44
-
-
Save Jazzo/59a05fba21dc157891778dd8849a67f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# modes | |
set -g default-terminal "screen-256color" | |
setw -g clock-mode-colour colour5 | |
setw -g mode-style 'fg=colour1 bg=colour16 bold' | |
set -g mouse on # start with mouse mode enabled | |
# panes | |
set -g pane-border-style 'fg=colour34 bg=colour0' | |
set -g pane-active-border-style 'bg=colour0 fg=colour10' | |
# statusbar | |
set -g status-position bottom | |
set -g status-justify left | |
set -g status-style 'bg=colour40 fg=colour137 dim' | |
set -g status-left '' | |
set -g status-right '#[fg=colour232,bg=colour34] %d/%m #[fg=colour232,bg=colour34] %H:%M:%S ' | |
set -g status-right-length 20 | |
set -g status-left-length 20 | |
setw -g window-status-current-style 'fg=colour0 bg=colour255' | |
setw -g window-status-current-format ' #I:#W ' | |
setw -g window-status-style 'fg=colour0 bg=colour34' | |
setw -g window-status-format ' #I:#W ' | |
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold' | |
# copy/paste | |
bind P paste-buffer | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-selection | |
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle | |
#unbind -T copy-mode-vi Enter | |
# messages | |
set -g message-style 'fg=colour231 bg=colour16' | |
set -g base-index 1 # start windows numbering at 1 | |
setw -g pane-base-index 1 # make pane numbering consistent with windows | |
set -g renumber-windows on # renumber windows when a window is closed | |
set -g set-titles on # set terminal title | |
set -g status-interval 10 # redraw status line every 10 seconds | |
# activity | |
set -g monitor-activity on | |
set -g visual-activity off | |
# increase history size | |
set -g history-limit 10000 | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
#bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" | |
# switch panes using Alt-arrow without prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
###################### | |
### DESIGN CHANGES ### | |
# Script to show colors list | |
# for i in {0..255}; do | |
# printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n" | |
# done | |
###################### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment