-
-
Save jakubhomoly/2f7c2a5aaf98288de4bdc421d45c99e6 to your computer and use it in GitHub Desktop.
.tmux.conf
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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# start with window 1 (instead of 0) | |
set -g base-index 1 | |
# start with pane 1 | |
set -g pane-base-index 1 | |
# 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 | |
# 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 | |
# present a menu of URLs to open from the visible pane. sweet. | |
bind-key u capture-pane \;\ | |
save-buffer /tmp/tmux-buffer \;\ | |
split-window -l 10 "urlview /tmp/tmux-buffer" | |
# Enable mouse mode (tmux 2.1 and above) | |
set -g mouse on | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'" | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
###################### | |
### DESIGN CHANGES ### | |
###################### | |
# panes | |
## Status bar design | |
# status line | |
#set -g status-utf8 on | |
set -g status-justify left | |
set -g status-bg default | |
set -g status-fg colour12 | |
set -g status-interval 2 | |
# window status | |
setw -g window-status-format " #F#I:#W#F " | |
setw -g window-status-current-format " #F#I:#W#F " | |
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W " | |
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W " | |
# Info on left | |
set -g status-left 'Session: #S' | |
# loud or quiet? | |
set-option -g visual-activity off | |
set-option -g visual-bell off | |
set-option -g visual-silence off | |
set-window-option -g monitor-activity off | |
set-option -g bell-action none | |
set -g default-terminal "screen-256color" | |
# The modes { | |
setw -g clock-mode-colour colour135 | |
set -g mode-style fg=colour196,bg=colour238,bold | |
# } | |
# The panes { | |
set -g pane-border-style fg=colour238,bg=colour235 | |
set -g pane-active-border-style fg=colour51,bg=colour236 | |
# } | |
# The statusbar { | |
set -g status-position bottom | |
set -g status-bg colour234 | |
set -g status-fg colour137 | |
set -g status-left '' | |
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S ' | |
set -g status-right-length 50 | |
set -g status-left-length 20 | |
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' | |
setw -g window-status-current-style fg=colour81,bg=colour238,bold | |
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' | |
setw -g window-status-style fg=colour138,bg=colour235,none | |
setw -g window-status-bell-style fg=colour255,bg=colour1,bold | |
# } | |
# The messages { | |
set -g message-style fg=colour232,bg=colour166,bold | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated with tmux 3.0a compatible configuration