set-option -g prefix C-a unbind-key C-b bind-key a send-prefix # TODO # Finish mapping up all keys # Learn how splits work # WISHLIST # Ideally, update the terminal title/hit the wm for activity on alert # Statusline set-window-option -g mode-keys vi # vi key set-option -g status-keys vi set -g default-terminal "screen-256color" # What's the point of vi keys without pane movement? bind l select-pane -R bind k select-pane -U bind j select-pane -D bind h select-pane -L bind < resize-pane -L 2 bind > resize-pane -R 2 bind - resize-pane -D 2 bind + resize-pane -U 2 bind ` next-layout # copy mode to escape key bind y copy-mode bind ] paste-buffer bind-key ^] send-keys Escape ":set paste\ri" \; paste-buffer\; send-keys Escape ":set nopaste\r" #20:03 < micahcowan> rich0_, just in case, something like ^^ [that] # move tmux copy buffer into x clipboard bind-key C-y save-buffer /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xclip" # splitting and cycling unbind % bind | split-window -h # horizontal split unbind '"' bind S split-window -v # vertical split set-window-option -g automatic-rename off # auto name # messages set-window-option -g mode-style bg=magenta,fg=black # No visual activity set -g visual-activity off set -g visual-bell on set -g status-interval 120 # Less obnoxious colors set -g pane-active-border-style fg=cyan set -g pane-border-style fg=black # Richo's screenlike bindings bind C-n next bind C-space next bind space next bind C-p prev bind C-d detach #unbind C-c bind C-c new-window bind K confirm-before kill-pane bind A command-prompt "rename-window '%%'" # bind M set-window-option monitor-activity (toggle) # bind _ set-window-option monitor-silence 15 (Toggle) bind-key C-a last-window bind-key / command-prompt "split-window -h 'exec man %%'" bind M set-window-option monitor-activity bind _ command-prompt "setw monitor-silence '%%'" bind I set-window-option synchronize-panes # New shells should not inherit pwd # set -g default-path "." set-option -g status-justify left set-option -g status-bg default set-option -g status-fg white set-option -g message-style bg=white,fg=black set-window-option -g window-status-bell-style bg=cyan,bright set-window-option -g window-status-activity-style bg=red,bright set-option -g status-interval 5 set-option -g status-left-length 30 #set-option -g status-left '#[fg=magenta]ยป #[fg=blue,bold]#T#[default]' set-option -g status-left '#[fg=cyan][#S#[fg=black,bold]#P#[default]#[fg=cyan]]#[default]' set-option -g status-right "#[fg=red]#(battery Discharging)#[fg=blue]#(battery Charging) #[default]#[fg=$TMUX_SHELL_COLOR]#h#[default] #{?client_prefix,#[fg=red],#[fg=cyan]}%d %b %R" # Cheers Nei on freenode set-window-option -g window-status-current-format "[#[fg=white]#I:#W#F#[fg=red]]" set-option -g visual-activity on set-window-option -g monitor-activity off set-window-option -g window-status-current-style fg=red,bright # DEBUG # bind r source ~/.tmux.conf # clock set-window-option -g clock-mode-colour cyan set-window-option -g clock-mode-style 24 # vim: ft=tmux