aboutsummaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
index 3cd0926..730af54 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -54,3 +54,8 @@ set-window-option -g window-status-current-format "#[fg=colour235, bg=colour27]â
# Use 256 colours
set -g default-terminal "screen-256color"
+
+# move x clipboard into tmux paste buffer
+bind C-x run "tmux set-buffer \\"$(xclip -o)\\"; tmux paste-buffer"
+# move tmux copy buffer into x clipboard
+bind C-y save-buffer ~/.tmux-buffer \; run-shell "xsel -i -b <~/.tmux-buffer && rm ~/.tmux-buffer"