Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify X selection to use with xclip #24

Closed
wants to merge 1 commit into from
Closed

Specify X selection to use with xclip #24

wants to merge 1 commit into from

Conversation

torandu
Copy link

@torandu torandu commented Jan 23, 2013

The default X selection for xclip is XA_PRIMARY. To paste in an X Window
System, you would use the middle mouse button. Most users are likely
interested in Ctrl+p to paste when using the '-c' option. This change
specifies XA_CLIPBOARD to enable standard keyboard paste.

The default X selection for xclip is XA_PRIMARY. To paste in an X Window
System, you would use the middle mouse button. Most users are likely
interested in Ctrl+p to paste when using the '-c' option. This change
specifies XA_CLIPBOARD to enable standard keyboard paste.
@ConradIrwin
Copy link
Owner

Hi @torandu,

Unfortunately, I (almost) always use middle-click paste because ctrl+v doesn't work in a terminal.

If you really want to change this, I'd accept a pull request that let you configure your XCLIP options, e.g. export XCLIP=xclip -sel clip in ~/.bashrc, but the primary clipboard is a much better default.

@torandu
Copy link
Author

torandu commented Jan 23, 2013

@ConradIrwin ,
Got it. I was probably too focused on my own reasons/ use case: using keyboard to paste instead of mouse.

Rather than set an env var XCLIP, what do you think about exporting X selection?
E.g. export X_SELECTION=clipboard

The default would of course be: X_SELECTION=primary

This could then be used to set commands for either xclip or xsel.

Thanks for the feedback!

@ConradIrwin
Copy link
Owner

That sounds great :)

Conrad

On Wednesday, January 23, 2013, Sean Gallagher wrote:

@ConradIrwin https://github.com/ConradIrwin ,
Got it. I was probably too focused on my own reasons/ use case: using
keyboard to paste instead of mouse.

Rather than set an env var XCLIP, what do you think about exporting X
selection?
E.g. export X_SELECTION=clipboard

The default would of course be: X_SELECTION=primary

This could then be used to set commands for either xclip or xsel.

Thanks for the feedback!


Reply to this email directly or view it on GitHubhttps://github.com//pull/24#issuecomment-12619863.

@goodell
Copy link

goodell commented Jan 23, 2013

Why not just copy to both clipboards?

@rking
Copy link
Collaborator

rking commented Jan 24, 2013

@goodell - I use the "Clipboard" selection specifically for durability. If a tool started spamming it I'd be surprised.

@torandu - Wait a second... the use case of using the keyboard is satisfied with Shift+Insert, is it not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants