diff --git a/.gitmodules b/.gitmodules index e9cd691..c11093e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "zgen"] path = zgen url = https://github.com/tarjoilija/zgen +[submodule "tmuxcompose"] + path = tmuxcompose + url = https://github.com/truck/tmuxcompose diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..65fc3d4 --- /dev/null +++ b/tmux.conf @@ -0,0 +1,97 @@ +# Truck's tmux config, started with the tmux productive book. + +# fix the prefix to control-a and remap control-a to work like screen +set -g prefix C-a +unbind C-b +bind-key a send-prefix +bind-key C-a last-window + +# faster response +set -sg escape-time 0 + +# colors woot +set -g default-terminal "screen-256color" + +# 1-based window numbering +set -g base-index 1 +setw -g pane-base-index 1 + +# reloader +bind r source-file ~/.tmux.conf \; display "Ok! I'm Reloaded!" + +# splittage +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 + +# 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 + +#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 + +#status bar +# H-hostname, h, hostname without domain ##- a # +# Window: +# F - Flag, I - Index T- Title W - Name +# 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" + +setw -g monitor-activity on +set -g visual-activity on + +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 + +bind m \ + set -g mode-mouse on \; \ + set -g mouse-resize-pane on \; \ + set -g mouse-select-pane on \; \ + set -g mouse-select-window on \; \ + display 'M: ON' + +bind M \ + set -g mode-mouse off \; \ + set -g mouse-resize-pane off \; \ + set -g mouse-select-pane off \; \ + set -g mouse-select-window off \; \ + display 'M: OFF' \ No newline at end of file diff --git a/tmuxcompose b/tmuxcompose new file mode 160000 index 0000000..e9e14a0 --- /dev/null +++ b/tmuxcompose @@ -0,0 +1 @@ +Subproject commit e9e14a0628d27dbfab3e7a8ea5fe5e5a24736791