2020-07-24 16:59:39 +02:00
|
|
|
set -g default-terminal "st-256color"
|
|
|
|
set -ga terminal-overrides ",st-256color:Tc"
|
2020-08-11 21:05:34 +02:00
|
|
|
set -g escape-time 0
|
2020-07-24 23:08:03 +02:00
|
|
|
set -g mouse on
|
2020-07-24 16:59:39 +02:00
|
|
|
|
|
|
|
unbind C-b
|
|
|
|
unbind C-a
|
|
|
|
unbind Space
|
|
|
|
unbind C-Space
|
|
|
|
unbind r
|
|
|
|
unbind Tab
|
|
|
|
|
|
|
|
set -g prefix C-a
|
|
|
|
bind C-a send-prefix
|
|
|
|
|
|
|
|
bind-key C-a last-window
|
|
|
|
bind-key Space next-window
|
|
|
|
bind-key C-Space previous-window
|
|
|
|
|
|
|
|
bind-key Tab select-pane -t :.+ \; swap-pane -U
|
|
|
|
|
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
# set inactive/active window styles
|
2020-08-11 21:05:34 +02:00
|
|
|
set -g window-style 'fg=colour247,bg=colour233'
|
2020-07-24 23:08:03 +02:00
|
|
|
set -g window-active-style 'fg=colour244,bg=colour234'
|
2020-07-24 16:59:39 +02:00
|
|
|
|
|
|
|
set-window-option -g xterm-keys on
|
2020-08-11 21:05:34 +02:00
|
|
|
# allow set-titles to change the window title under st
|
|
|
|
# http://opennomad.com/content/goodbye-screen-hello-tmux
|
|
|
|
# http://stackoverflow.com/questions/15195624
|
|
|
|
set-option -ga terminal-overrides ',st-256color:smkx=\E='
|
|
|
|
|
2020-07-24 16:59:39 +02:00
|
|
|
|
|
|
|
# status bar
|
|
|
|
set -g status-style fg=colour208,bg=colour237
|
|
|
|
# set-option -g status-attr default
|
|
|
|
set-option -g status-position bottom
|
2021-08-02 21:44:14 +02:00
|
|
|
set-option -g status-interval 60
|
2020-07-24 16:59:39 +02:00
|
|
|
set-option -g status-bg default
|
|
|
|
set-option -g status-fg white
|
|
|
|
|
|
|
|
# Left side of status bar
|
2021-08-02 21:44:14 +02:00
|
|
|
set-option -g status-left-length 10
|
2020-07-24 23:08:03 +02:00
|
|
|
#set-option -g status-left "#[fg=brightwhite,bg=colour234] #S #[fg=default,bg=default] "
|
|
|
|
set-option -g status-left '#{?client_prefix,#[bg=colour62] ,#[bg=colour234] #S }#[fg=default,bg=default] '
|
2020-07-24 16:59:39 +02:00
|
|
|
|
|
|
|
# Window status
|
2020-07-24 23:08:03 +02:00
|
|
|
set-option -g window-status-format "#[fg=white,bg=colour234] #I #[fg=white,bg=colour234] #W "
|
|
|
|
set-option -g window-status-current-format "#[fg=brightwhite,bg=colour62] #I #[fg=brightwhite,bg=colour234] #W "
|
2020-07-24 16:59:39 +02:00
|
|
|
set-option -g window-status-separator " "
|
|
|
|
set-option -g status-justify left
|
|
|
|
|
|
|
|
# Right side of status bar
|
2021-08-02 21:44:14 +02:00
|
|
|
set-option -g status-right-length 80
|
|
|
|
WEATHER='#(curl -s wttr.in/Berlin\?format\="%%t+%%C+%%w+%%m")'
|
|
|
|
set-option -g status-right "#[fg=brightwhite,bg=colour62]🌡 BER #[fg=brightwhite,bg=colour234] $WEATHER #[fg=brightwhite,bg=colour62] #[fg=brightwhite,bg=colour234] #(whoami)@#h "
|
2020-07-24 16:59:39 +02:00
|
|
|
|
|
|
|
# pane border
|
|
|
|
set -g pane-border-style fg=colour238,bg=colour235
|
|
|
|
set -g pane-active-border-style fg=colour62,bg=colour236
|
|
|
|
|
|
|
|
# Pane number indicator
|
2020-07-24 23:08:03 +02:00
|
|
|
set-option -g display-panes-colour colour234
|
2020-07-24 16:59:39 +02:00
|
|
|
set-option -g display-panes-active-colour brightwhite
|
|
|
|
|
|
|
|
# Clock mode
|
2020-07-24 23:08:03 +02:00
|
|
|
# set-option -g clock-mode-colour white
|
|
|
|
# set-option -g clock-mode-style 24
|
2020-07-24 16:59:39 +02:00
|
|
|
|
|
|
|
# Message
|
|
|
|
set -g message-style fg=default,bg=default
|
|
|
|
|
|
|
|
# Activity
|
|
|
|
set-option -g monitor-activity on
|
|
|
|
set-option -g monitor-silence 0
|
|
|
|
set-option -g monitor-bell on
|
|
|
|
set-option -g activity-action other
|
|
|
|
set-option -g visual-activity on
|
|
|
|
|
|
|
|
# Window numbering
|
|
|
|
set-option -g base-index 1
|
|
|
|
set-option -g pane-base-index 1
|
|
|
|
set-option -g renumber-windows on
|
2020-08-11 21:05:34 +02:00
|
|
|
|
|
|
|
# select default layout
|
|
|
|
set-option -g main-pane-width 65
|
|
|
|
set-option -g main-pane-height 65
|
|
|
|
bind Enter select-layout main-vertical
|