This config is for ancient ubuntu/debian/etc with tmux 1.8

This commit is contained in:
Andrew Holland 2018-06-12 10:42:52 +00:00
parent b890c26ec7
commit bf4c2c056b

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 # fix the prefix to control-a and remap control-a to work like screen
set -g prefix C-a set -g prefix C-a
@ -24,56 +24,72 @@ bind | split-window -h
bind - split-window -v bind - split-window -v
# I dunno about this vi shit, yeah fuck that, be more awesome. # 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. # wasd. cuz.
bind C-i select-pane -U bind C-w select-pane -U
bind C-j select-pane -L bind C-a select-pane -L
bind C-k select-pane -R bind C-s select-pane -D
bind C-m 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. # cycle thru windows, which seems... no. bullshit. that is p and n. period.
# what I _do_ want is resize on those, like in awesome. #initial mouse on
bind -r H resize-pane -L 5 set -g mouse-utf8 on
bind -r L resize-pane -R 5 set -g mouse-select-window on
bind -r I resize-pane -U 5 set -g mouse-select-pane on
bind -r M resize-pane -D 5 set -g mouse-resize-pane on
#set -g mouse-utf8 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 # choose colors wisely! why the fuck did I say that
set -g status-fg colour202 set -g status-fg colour202
set -g status-bg colour17 set -g status-bg colour17
set -g window-status-fg colour184 set -g window-status-fg colour184
set -g window-status-bg colour234 set -g window-status-bg colour234
set -g pane-border-fg colour61
set -g pane-border-bg colour8
set -g pane-active-border-fg colour6
set -g pane-active-border-bg colour24
#set -g message-fg colour190 # pane colors
#set -g message-bg colour18
set -g message-bg colour160 set -g pane-border-bg colour238
set -g message-fg colour252 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 #status bar
# H-hostname, h, hostname without domain ##- a # # H-hostname, h, hostname without domain ##- a #
# Window: # Window:
# F - Flag, I - Index T- Title W - Name # 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) # #(shell command result line 1)
#[colorchangestuffs] #[colorchangestuffs]
#set -g status-utf8 on # if not using powerline
#set -g status-left "#[fg=colour83]#S ䷀#[bg=colour22]#I#[bg=colour156,fg=colour20]𝕡#P#[fg=colour150,bg=colour55] ≋ #W"
#set -g status-left-length 40 set -g status-left-length 40
#set -g status-right "%Y/%m/%e %H:%M %Z" set-window-option -g status-left "Sn:#S "
source "/home/truck/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf" 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 setw -g monitor-activity on
set -g visual-activity on set -g visual-activity on
@ -82,15 +98,21 @@ set -g status-justify left
# mouse fixin's # mouse fixin's
# the blog where this came from is fuckign bullshit with it's copy paste blocking # toggle mousemode on/off
# anyway. toggle mousemode on/off
bind m \ bind m \
set -g mouse on\; \ setw -g mode-mouse on\; \
set -g mouse-select-pane on\; \
set -g mouse-select-window on\; \
set -g mouse-resize-pane on\; \
display 'M: ON' display 'M: ON'
bind M \ bind M \
set -g mouse off \; \ setw -g mode-mouse off \; \
set -g mouse-select-pane off\; \
set -g mouse-select-window off\; \
set -g mouse-resize-pane off\; \
display 'M: 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'" bind C-v command-prompt -p compose "if '~/bin/tmuxcompose/compose.py \\%% | tmux load-buffer -' 'pasteb -d' 'display notfound'"