wlanboy

tutorials and ruby scripts

Read my tutorials

Tutorial

Tutorial: tmux-configuration

#history limit
set -g history-limit 5000   

# activity
set -g monitor-activity on
set -g visual-activity off
set -g bell-action none

#  modes
setw -g clock-mode-colour colour5
setw -g mode-style 'fg=colour1 bg=colour18 bold'

# panes
set -g pane-border-style 'fg=colour19 bg=colour0'
set -g pane-active-border-style 'bg=colour0 fg=colour9'

# statusbar
set -g status-position bottom
set -g status-justify left
set -g status-style 'bg=colour18 fg=colour137 dim'
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
set -g status-right-length 50
set -g status-left-length 20

setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '

setw -g window-status-style 'fg=colour9 bg=colour18'
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '

setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'

# start windows numbering at 1
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on 
set -g set-titles on 

# rename window to display current program
setw -g automatic-rename on   

# messages
set -g message-style 'fg=colour232 bg=colour16 bold'

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix

# split current window horizontally
bind - split-window -v
# split current window vertically
bind _ split-window -h