strummolo/conf/tmux.conf
2020-05-17 11:42:09 +02:00

75 lines
2.2 KiB
Plaintext

# use ISO-8859-1
#set -g iso8859-1
#set-window-option -g iso8859-1 on
#set -g utf8
#set-window-option -g utf8 on
# make tmux display things in 256 colors
setw -g xterm-keys on
set -g default-terminal "screen-256color"
# set scrollback history to 10000 (10k)
set -g history-limit 10000
# fixes shift-pageup/shift-pagedown
#set -ga terminal-overrides 'xterm*:smcup@:rmcup@'
# shorten command delay
set -sg escape-time 1
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# make the current window the first window
bind T swap-window -t 1
set -g mouse on
# bind WheelUp and WheelDown for scroll
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
#bind-key -t vi-copy WheelUpPane halfpage-up
#bind-key -t vi-copy WheelDownPane halfpage-down
# bind PageUp for copy-mode
bind-key S-Pageup copy-mode -u
# bind S to toggle synchronize-panes
bind-key S set-window-option synchronize-panes \; display "synchronize-panes is now #{?pane_synchronized,on,off}"
# ----------------------
# set some pretty colors
# ----------------------
# set pane colors - hilight the active pane
set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour240 #base01
# colorize messages in the command line
set-option -g message-style bg=black,fg=brightred #base02
# ----------------------
# Status Bar
# -----------------------
set-option -g status on # turn the status bar on
#set -g status-utf-8 on # set utf-8 for the status bar
set -g status-interval 5 # set update frequencey (default 15 seconds)
### solarized ###
set-option -g status-style bg=colour235,fg=colour130 #base02 // 235
set-window-option -g window-status-style fg=colour33,bg=default #base0 // 224
set-window-option -g window-status-current-style fg=colour196,bg=default #orange // 166
# visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
set -g status-right-length 150
set -g status-right "#H | Load:#(uptime | awk -F "average:" '{print $2}') | %d-%b-%Y - %H:%M "