Cleaned tmux

This commit is contained in:
Dreaded_X 2014-11-07 22:57:19 +01:00
parent 364a5a0036
commit 8d7d39aefc
2 changed files with 32 additions and 48 deletions

View File

@ -1,56 +1,47 @@
#tmux config file
#change statusbar
set -g status-bg colour0
set -g status-fg white
set-window-option -g window-status-current-bg white
set-window-option -g window-status-current-fg black
set-option -g display-panes-colour black
set-option -g display-panes-active-colour white
#start powerline
run-shell "powerline-daemon -q"
source-file "$HOME/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
send-keys C-c
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
set -g set-titles-string '#T'
set-option -g set-titles on
setw -g monitor-activity on
setw -g aggressive-resize on
setw -g automatic-rename on
#use ctrl-a instead of ctrl-b
unbind C-b unbind C-b
set -g prefix C-a set -g prefix C-a
#alt-arrow for switching panes
bind -n M-k run-shell 'tmux-vim-select-pane -U' bind -n M-k run-shell 'tmux-vim-select-pane -U'
bind -n M-j run-shell 'tmux-vim-select-pane -D' bind -n M-j run-shell 'tmux-vim-select-pane -D'
bind -n M-h run-shell 'tmux-vim-select-pane -L' bind -n M-h run-shell 'tmux-vim-select-pane -L'
bind -n M-l run-shell 'tmux-vim-select-pane -R' bind -n M-l run-shell 'tmux-vim-select-pane -R'
#notify when something happens in another windows
setw -g monitor-activity on
# set -g visual-activity on
#load tmux setup
bind D source-file ~/.dotfiles/tmux/dev
#add keybind to kill current tmux window
bind X kill-window
#setup kill comnmand
# bind k confirm kill-window
# bind K confirm kill-server
#title stuff
set -g set-titles-string '#T'
set-option -g set-titles on
#setup tabs controls
bind -n C-j new-window bind -n C-j new-window
bind -n C-h prev bind -n C-h prev
bind -n C-l next bind -n C-l next
bind -n C-M-l swap-window -t +1 bind -n C-M-l swap-window -t +1
bind -n C-M-h swap-window -t -1 bind -n C-M-h swap-window -t -1
bind X kill-window
#enable aggressive-resize set -g status-bg "colour0"
setw -g aggressive-resize on set -g message-command-fg "colour0"
set -g status-justify "left"
#autorename set -g status-left-length "100"
setw -g automatic-rename on set -g status "on"
set -g pane-active-border-fg "colour4"
set -g message-bg "colour12"
set -g status-right-length "100"
set -g status-right-attr "none"
set -g message-fg "colour0"
set -g message-command-bg "colour12"
set -g status-attr "none"
set -g status-utf8 "on"
set -g pane-border-fg "colour12"
set -g status-left-attr "none"
setw -g window-status-fg "colour12"
setw -g window-status-attr "none"
setw -g window-status-activity-bg "colour0"
setw -g window-status-activity-attr "none"
setw -g window-status-activity-fg "colour4"
setw -g window-status-separator ""
setw -g window-status-bg "colour0"
set -g status-left "#[fg=colour8,bg=colour4,bold] #S #[fg=colour4,bg=colour0,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour12,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour12] %Y-%m-%d  %H:%M #[fg=colour4,bg=colour12,nobold,nounderscore,noitalics]#[fg=colour8,bg=colour4] #h "
setw -g window-status-format "#[fg=colour12,bg=colour0] #I #[fg=colour12,bg=colour0] #W "
setw -g window-status-current-format "#[fg=colour0,bg=colour12,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour12] #I #[fg=colour0,bg=colour12] #W #[fg=colour12,bg=colour0,nobold,nounderscore,noitalics]"

View File

@ -1,7 +0,0 @@
select-pane -t 0
split-window -h -p 20
split-window -v -p 30 -c "bin"
select-pane -t 0
send-keys -t 0 'vim' C-m
send-keys -t 0 ':NERDTreeToggle' C-m