From bf4c2c056bc66f0fea2bd58a75a45b0b8dd7bf30 Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Tue, 12 Jun 2018 10:42:52 +0000 Subject: [PATCH] This config is for ancient ubuntu/debian/etc with tmux 1.8 --- tmux.conf.2016 | 96 +++++++++++++++++++++++++++++++------------------- 1 file changed, 59 insertions(+), 37 deletions(-) diff --git a/tmux.conf.2016 b/tmux.conf.2016 index 09c8c8d..a96c7ad 100644 --- a/tmux.conf.2016 +++ b/tmux.conf.2016 @@ -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,56 +24,72 @@ 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 -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 - +#initial mouse on +set -g mouse-utf8 on +set -g mouse-select-window on +set -g mouse-select-pane on +set -g mouse-resize-pane 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 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 -#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" -#set -g status-left-length 40 -#set -g status-right "%Y/%m/%e %H:%M %Z" -source "/home/truck/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf" +# if not using powerline + +set -g status-left-length 40 +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 @@ -82,15 +98,21 @@ 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\; \ + 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' 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' +# my compose script bind C-v command-prompt -p compose "if '~/bin/tmuxcompose/compose.py \\%% | tmux load-buffer -' 'pasteb -d' 'display notfound'"