dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 95c1b1c0b0d5e62b255f7e1efa8fae20fc6f524c
parent 067b7e03f2b67d8a02aa1f846fda5d2c01659892
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Tue,  3 Sep 2013 13:20:25 +0200

added mouse control and integration with linux clipboard

Diffstat:
M.tmux.conf | 16++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -28,15 +28,17 @@ bind r source-file ~/.tmux.conf \; display "Source file reloaded" set -g base-index 1 # start window numbering at 1 set -g pane-base-index 1 # start pane numbering at 1 -setw -g mode-mouse off -set -g mouse-select-pane off -set -g mouse-resize-pane off -set -g mouse-select-window off +# mouse behavior +setw -g mode-mouse on +set -g mouse-select-pane on +set -g mouse-resize-pane on +set -g mouse-select-window on set -g default-terminal "screen-256color" setw -g utf8 on -setw -g automatic-rename on +setw -g status-utf8 on +setw -g automatic-rename off # Allows us to use C-a a <command> to send commands to a TMUX session inside # another TMUX session @@ -83,4 +85,6 @@ set -g message-fg yellow set -g message-bg black set -g message-attr bright - +# Linux clipboard +bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" +bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"