Skip to content

Feature request: add option to allow xclip -selection [pimary/secondary/clipboard] to be configured from .tmux.conf.local#349

Description

@kting28

Hello, thanks for the wonderful tmux configurations! The only thing I really want is to able to configure the destination of xclip / xsel so that in linux user can use the middle mouse button to paste. By default the "clipboard" selection requires ctrl-v from GUI applications.

As a workaround I'm just rebinding them in user configuration, e.g.:

bind-key    -T copy-mode-vi Enter                send-keys -X copy-pipe-and-cancel "xclip -i -selection primary > /dev/null 2>&1"
bind-key    -T copy-mode-vi y                    send-keys -X copy-pipe-and-cancel "xclip -i -selection primary > /dev/null 2>&1"
bind-key    -T copy-mode-vi MouseDragEnd1Pane    send-keys -X copy-pipe-and-cancel "xclip -i -selection primary > /dev/null 2>&1"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions