Skip to content

Instantly share code, notes, and snippets.

@She110ck
Last active December 18, 2020 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save She110ck/fc6b16830c22833881c3f3ede96a26f2 to your computer and use it in GitHub Desktop.
Save She110ck/fc6b16830c22833881c3f3ede96a26f2 to your computer and use it in GitHub Desktop.
tmux colors for remote servers
set -g default-terminal "screen-256color"
#set-option -sg default-terminal "tmux-256color"
# current window
set-window-option -g window-status-current-bg '#6272a4' #cyan
set-window-option -g window-status-current-fg black
set-window-option -g window-status-bg black #colour14
set-window-option -g window-status-fg colour12
#left
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
# previous pane color, doesn't work on centos 7
set -g window-status-last-style fg=yellow,bold
# whole line default
set -g status-bg black
set -g status-fg white
# border
set -g pane-border-fg white #'#6272a4'
set -g pane-active-border-fg colour14 #'#ff79c6'
# border background
# set -g pane-active-border-bg colour14 #'#ff79c6'
set-option -g status-position bottom
setw -g automatic-rename on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# problems with guake
set -g mouse on
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment