Fix tmux.conf again. Several options have changed.

This commit is contained in:
Darth Joulupukki 2016-10-23 12:49:37 +03:00
parent f397c7ad9e
commit d8fd53e611

View file

@ -1,4 +1,4 @@
# Truck's tmux config, started with the tmux productive book.
# Truck's updated 2016 tmux config
# fix the prefix to control-a and remap control-a to work like screen
set -g prefix C-a
@ -24,55 +24,69 @@ bind | split-window -h
bind - split-window -v
# I dunno about this vi shit, yeah fuck that, be more awesome.
# this not only is ijkm, proper movement, but adds tab and enter to the mix.
bind C-i select-pane -U
bind C-j select-pane -L
bind C-k select-pane -R
bind C-m select-pane -D
# wasd. cuz.
bind C-w select-pane -U
bind C-a select-pane -L
bind C-s select-pane -D
bind C-d select-pane -R
# Resize
bind -r W resize-pane -U 5
bind -r A resize-pane -L 5
bind -r S resize-pane -D 5
bind -r D resize-pane -R 5
# now that messed up d/D, so redo them on e/E
bind -r E choose-client
bind -r e detach-client
# cycle thru windows, which seems... no. bullshit. that is p and n. period.
# what I _do_ want is resize on those, like in awesome.
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
bind -r I resize-pane -U 5
bind -r M resize-pane -D 5
set -g mouse-utf8 on
#initial mouse on
set -g mouse on
#mouse select-resize
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window on
# choose colors wisely! why the fuck did I say that
set -g status-fg colour202
set -g status-bg colour17
set -g window-status-fg colour184
set -g window-status-bg colour234
set -g pane-border-fg colour53
set -g pane-border-bg colour233
set -g pane-active-border-fg colour47
set -g pane-active-border-bg colour22
#set -g message-fg colour190
#set -g message-bg colour18
set -g message-bg colour160
set -g message-fg colour252
# pane colors
set -g pane-border-bg colour238
set -g pane-border-fg colour249
set -g pane-active-border-bg colour029
set -g pane-active-border-fg colour023
# message colors
set -g message-bg colour214
set -g message-fg colour022
#status bar
# H-hostname, h, hostname without domain ##- a #
# Window:
# F - Flag, I - Index T- Title W - Name
# Pane index: P Screen index: S
# Pane index: P Screen index: S
# #(shell command result line 1)
#[colorchangestuffs]
set -g status-utf8 on
set -g status-left "#[fg=colour83]#S ䷀#[bg=colour22]#I#[bg=colour156,fg=colour20]𝕡#P#[fg=colour150,bg=colour55] ≋ #W"
# if not using powerline
set -g status-left-length 40
set -g status-right "%Y/%m/%e %H:%M %Z"
set-window-option -g status-left "Sn:#S "
set-window-option -g status-left-fg colour166
set-window-option -g status-left-bg colour239
set-window-option -g status-right "[#F] #H %H:%M %Y/%m/%e %Z"
set-window-option -g status-right-fg colour254
set-window-option -g status-right-bg colour236
set-window-option -g window-status-format " #I: {#D-#W} "
set-window-option -g window-status-current-format " #I: {#D-#W} "
set-window-option -g window-status-current-fg green
set-window-option -g window-status-current-bg black
# if using powerline
#include ~/.local/lib/python2.7/site-packages/powerline/tmux/powerline.conf
setw -g monitor-activity on
set -g visual-activity on
@ -81,8 +95,7 @@ set -g status-justify left
# mouse fixin's
# the blog where this came from is fuckign bullshit with it's copy paste blocking
# anyway. toggle mousemode on/off
# toggle mousemode on/off
bind m \
set -g mouse on\; \
@ -92,4 +105,5 @@ bind M \
set -g mouse off \; \
display 'M: OFF'
# my compose script
bind C-v command-prompt -p compose "if '~/bin/tmuxcompose/compose.py \\%% | tmux load-buffer -' 'pasteb -d' 'display notfound'"