# Use vertical and horizontal chars to split the screen
bind-key | split-window -h
bind-key - split-window -v
+
+# Copy tmux copy buffer to X clipboard
+# bind C-y run "tmux save-buffer - | xclip -i"
+bind C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b"
+# Copy X clipboard to tmux paste buffer
+# bind C-p run "xclip -o | tmux load-buffer -; tmux paste-buffer"
+bind C-y run "xsel -o | tmux load-buffer - ; tmux paste-buffer"