0
0
.dotfiles/tmux/tmux.conf

74 lines
2.3 KiB
Bash

#set -g default-terminal "screen-256color"
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g renumber-windows on
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
bind r source-file ~/.dotfiles/tmux/tmux.conf
set-window-option -g clock-mode-style 12
set-window-option monitor-activity on
set -g base-index 1
set -g mouse on
set -g pane-border-lines "single"
set -g visual-activity on
set -g visual-bell on
set -g mode-keys vi
set-option clock-mode-colour "#00e7e3"
set -g status-bg "#262626"
#set-option -g status-fg "#000011"
set -g status-style "fg=#ffffff,bg=#262626"
set -g pane-border-status top
set -g message-style 'bg=#00d9db,fg=#262626'
set -g pane-border-style 'fg=#affffe'
set -g pane-active-border-style 'fg=#00e7e3'
set -g menu-selected-style 'fg=#000000,bg=#00d9db'
set -g mode-style 'fg=#000000,bg=#00d9db'
### plugins ###
set-environment -g TMUX_PLUGIN_MANAGER_PATH ~/.dotfiles/.tmux/plugins
set-environment -g TMPDIR $PREFIX/tmp
# List of plugins
#set -g @plugin 'tmux-plugins/tpm'
run ~/.dotfiles/.tmux/plugins/tpm/tpm
if-shell '[ ! -z "$PREFIX" ]' {
display-message "prefix no"
run-shell "cat nope > .yesno"
set -g @plugin 'erikw/tmux-powerline'
}
if-shell '[ -z "$PREFIX" ]' {
set-environment -gu POWERLINE_COMMAND
set -gUu @plugin
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set-option status-left-length 140
set-option status-right-length 75
run-shell 'alias powerline-config=~/.dotfiles/powerline-src/scripts/powerline-config'
run-shell '~/.dotfiles/powerline-src/scripts/powerline-daemon --replace'
#run-shell ~/.dotfiles/powerline/bin/powerline-daemon -q
set -g window-status-current-format ""
set-environment -g POWERLINE_CONFIG_COMMAND ~/.dotfiles/powerline-src/scripts/powerline-config
source ~/.dotfiles/powerline-src/powerline/bindings/tmux/powerline.conf
}
#set -g @plugin 'erikw/tmux-powerline'
#set -g @plugin 'git@git.tablet.sh:the-btfash-foundation/tmux-mem-cpu-load'
# set -g @plugin 'thewtex/tmux-mem-cpu-load'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf