2017-12-17 13:16:02 +00:00
|
|
|
# Reload the config with the "r" key
|
|
|
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
|
|
|
|
|
|
|
# No automatic renaming of windows
|
2019-05-29 17:49:29 +00:00
|
|
|
set automatic-rename off
|
2017-12-17 13:16:02 +00:00
|
|
|
|
|
|
|
# Enable 256-color terminal
|
2019-05-29 17:49:29 +00:00
|
|
|
set default-terminal "screen-256color"
|
2017-12-17 13:16:02 +00:00
|
|
|
|
2017-12-22 22:15:40 +00:00
|
|
|
# Set titles to be informative
|
2019-05-29 17:49:29 +00:00
|
|
|
set set-titles on
|
|
|
|
set set-titles-string "tmux: [#H] [#S] [#W:#D #I:#P]"
|
2017-12-22 11:05:34 +00:00
|
|
|
|
2019-05-29 17:49:29 +00:00
|
|
|
# Change pane colors
|
2019-05-29 18:04:55 +00:00
|
|
|
set -g pane-border-fg colour237
|
|
|
|
set -g pane-active-border-fg colour199
|
2017-12-22 11:05:34 +00:00
|
|
|
|
2019-05-29 17:49:29 +00:00
|
|
|
# Tweak currently active window
|
|
|
|
setw window-status-current-fg colour236
|
|
|
|
setw window-status-current-bg colour199
|
|
|
|
setw window-status-current-format " #F[#W] "
|
|
|
|
setw window-status-current-attr none
|
2017-12-22 22:15:40 +00:00
|
|
|
|
2019-05-29 17:49:29 +00:00
|
|
|
# Tweak display of window overview
|
|
|
|
setw window-status-format " #F[#W][#I] "
|
|
|
|
setw window-status-bg colour237
|
|
|
|
setw window-status-fg colour255
|
2017-12-22 22:15:40 +00:00
|
|
|
|
|
|
|
# Tweak status line design
|
2019-05-29 17:49:29 +00:00
|
|
|
set status-bg colour235
|
|
|
|
set status-fg colour199
|
|
|
|
set status-justify centre
|
|
|
|
set status-left " [#H] [#S] "
|
|
|
|
set status-left-length 100
|
|
|
|
set status-right '[FFKA: #(ip addr show freifunk | grep inet6 | grep -v fe80 | cut -d/ -f1 | cut -d " " -f6)] [%Y-%m-%d %H:%M.%S]'
|
|
|
|
# Refresh status bar every 2s
|
|
|
|
set status-interval 2
|
2017-12-22 11:05:34 +00:00
|
|
|
|
2019-05-29 18:10:25 +00:00
|
|
|
# Set some helpful limits & modes
|
2019-05-29 18:04:55 +00:00
|
|
|
set -g mouse on
|
2019-05-29 18:10:25 +00:00
|
|
|
set -g history-limit 50000
|
2019-05-29 18:04:55 +00:00
|
|
|
|
2019-05-29 18:13:17 +00:00
|
|
|
# Make tmux resize based on smallest client actually viewing the window, not just attached
|
|
|
|
setw -g aggressive-resize on
|
|
|
|
|
2017-12-22 11:05:34 +00:00
|
|
|
# Initialize tmux-plugin-manager
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|