Simplify tmux config

This commit is contained in:
Wojciech Kozlowski 2019-12-15 15:53:19 +00:00
parent d497d347ad
commit bea87a88d5
4 changed files with 10 additions and 61 deletions

View File

@ -18,7 +18,8 @@ Install all other plugins:
Usage
-----
Source the appropriate file from config in the file ~/.tmux.conf, e.g.
Source the repo's config file from ~/.tmux.conf
```
source ~/.tmux/config/tmux-i3.conf
source ~/.tmux/tmux.conf
```

View File

@ -1,13 +0,0 @@
# Status bar --------------------------------------
# center align the window list
set -g status-justify centre
# set the status bar
set -g status-left "[#S@#H]"
set -g status-right "| #[fg=cyan]#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#[default] | %H:%M %a %d-%b-%Y"
set -g status-left-length 15
set -g status-right-length 75
# Source the common settings ----------------------
source ~/.tmux/config/tmux.conf

View File

@ -1,11 +0,0 @@
# Status bar --------------------------------------
# center align the window list
set -g status-justify centre
# set the status bar
set -g status-left ""
set -g status-right ""
# Source the common settings ----------------------
source ~/.tmux/config/tmux.conf

View File

@ -1,16 +1,16 @@
# Global options ----------------------------------
# Status bar --------------------------------------
# Set tmux to use 256 colours
set -g default-terminal "xterm-256color"
#"screen-256color"
# center align the window list
set -g status-justify centre
# set the status bar
set -g status-left ""
set -g status-right ""
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
# Custom bindings ---------------------------------
# Change prefix to Ctrl-a like in Screen
@ -26,25 +26,6 @@ bind-key M-k confirm kill-server
# toggle statusbar
bind-key b set-option status
# map Vi movement keys as pane movement keys
bind-key j select-pane -L
bind-key k select-pane -D
bind-key l select-pane -U
bind-key \; select-pane -R
bind -n F1 select-window -t 1
bind -n F2 select-window -t 2
bind -n F3 select-window -t 3
bind -n F4 select-window -t 4
bind -n F5 select-window -t 5
bind -n F6 select-window -t 6
bind -n F7 select-window -t 7
bind -n F8 select-window -t 8
bind -n F9 select-window -t 9
bind -n F10 select-window -t 10
bind -n F11 select-window -t 11
bind -n F12 select-window -t 12
# Colors ------------------------------------------
# default statusbar colors
@ -70,17 +51,8 @@ set -g pane-border-bg default
set -g pane-active-border-fg "#005577"
set -g pane-active-border-bg default
# command/message line colors
#set -g message-fg white
#set -g message-bg black
#set -g message-attr bright
# Plugin manager ----------------------------------
# List of plugins
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \