tmux, urxvt, and copy-and-paste woes…Copy/Paste with keyboard in rxvtCopy / paste text selections between...
Jumping frame contents with beamer and pgfplots
Why is a set not a partition of itself?
Can I say: "When was your train leaving?" if the train leaves in the future?
Why do the lights go out when someone enters the dining room on this ship?
Entering the UK as a British citizen who is a Canadian permanent resident
Anatomically Correct Carnivorous Tree
Extracting sublists that contain similar elements
Why is it harder to turn a motor/generator with shorted terminals?
How to cope with regret and shame about not fully utilizing opportunities during PhD?
Why was Thor doubtful about his worthiness to Mjolnir?
Can someone explain homicide-related death rates?
Help in identifying a mystery wall socket
Smallest Guaranteed hash collision cycle length
Is there any good reason to write "it is easy to see"?
Why did I need to *reboot* to change my group membership
How can dragons propel their breath attacks to a long distance
Could there be a material that inverts the colours seen through it?
Why are solar panels kept tilted?
Why is tomato paste so cheap?
As programers say: Strive to be lazy
Does SQL Server allow (make visible) DDL inside a transaction to the transaction prior to commit?
Tikzpicture in figure problem
using `is` operator with value type tuples gives error
LWC1513: @salesforce/resourceUrl modules only support default imports
tmux, urxvt, and copy-and-paste woes…
Copy/Paste with keyboard in rxvtCopy / paste text selections between tmux and the clipboardCopy-paste between urxvt and abiwordUrxvt and tmux - set window titletmux mouse scrolling without altering copy/paste?How to copy and paste with a mouse with tmuxTmux copy mode Home and End keysCopy and paste with single command/key with tmuxCan I ask Tmux to immediately exit copy mode and paste the content when you yank?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school.
I did get tmux-yank almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit y… This is a lot of key presses.
Anyone knows how I can get this simple behaviour working better?
Here are some versions:
; tmux -V
tmux 2.2
; urxvt256c-ml --version
urxvt: "version": unknown or malformed option.
rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
[…]
; awesome --version
awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@)
• Compiled against Lua 5.3.2 (running with Lua 5.3)
• D-Bus support: ✔
tmux rxvt
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school.
I did get tmux-yank almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit y… This is a lot of key presses.
Anyone knows how I can get this simple behaviour working better?
Here are some versions:
; tmux -V
tmux 2.2
; urxvt256c-ml --version
urxvt: "version": unknown or malformed option.
rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
[…]
; awesome --version
awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@)
• Compiled against Lua 5.3.2 (running with Lua 5.3)
• D-Bus support: ✔
tmux rxvt
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Old school is actually: select with left button and paste with middle button (and it works out-of-the-box). Did I understand correctly? You want to copy with middle button, not paste?
– Martin Sugioarto
Sep 23 '16 at 11:45
@MartinSugioarto: Oops, you are right. Select and copy with left, paste with middle. And that does not work out of the box…
– Sardathrion
Sep 23 '16 at 11:51
@MartinSugioarto: Well, ${insult}! It does indeed work out of the box. Something is FUBAR with my configuration, somewhere:set -g mouse onseems to be it.
– Sardathrion
Sep 23 '16 at 11:53
add a comment |
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school.
I did get tmux-yank almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit y… This is a lot of key presses.
Anyone knows how I can get this simple behaviour working better?
Here are some versions:
; tmux -V
tmux 2.2
; urxvt256c-ml --version
urxvt: "version": unknown or malformed option.
rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
[…]
; awesome --version
awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@)
• Compiled against Lua 5.3.2 (running with Lua 5.3)
• D-Bus support: ✔
tmux rxvt
I am running tmux inside urxvt. I would like to select and copy text using the left mouse button and paste it using the middle mouse button -- I am very old school.
I did get tmux-yank almost working but need to hit SHIFT+Mouse 1 Select doing the selection, then hit y… This is a lot of key presses.
Anyone knows how I can get this simple behaviour working better?
Here are some versions:
; tmux -V
tmux 2.2
; urxvt256c-ml --version
urxvt: "version": unknown or malformed option.
rxvt-unicode (urxvt256c-ml) v9.21 - released: 2014-12-31
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
[…]
; awesome --version
awesome v3.5.9 (Mighty Ravendark)
• Build: Mar 7 2016 18:43:56 for x86_64 by gcc version 6.0.0 (mockbuild@)
• Compiled against Lua 5.3.2 (running with Lua 5.3)
• D-Bus support: ✔
tmux rxvt
tmux rxvt
edited Sep 23 '16 at 11:50
Sardathrion
asked Sep 23 '16 at 7:51
SardathrionSardathrion
2,56442449
2,56442449
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Old school is actually: select with left button and paste with middle button (and it works out-of-the-box). Did I understand correctly? You want to copy with middle button, not paste?
– Martin Sugioarto
Sep 23 '16 at 11:45
@MartinSugioarto: Oops, you are right. Select and copy with left, paste with middle. And that does not work out of the box…
– Sardathrion
Sep 23 '16 at 11:51
@MartinSugioarto: Well, ${insult}! It does indeed work out of the box. Something is FUBAR with my configuration, somewhere:set -g mouse onseems to be it.
– Sardathrion
Sep 23 '16 at 11:53
add a comment |
1
Old school is actually: select with left button and paste with middle button (and it works out-of-the-box). Did I understand correctly? You want to copy with middle button, not paste?
– Martin Sugioarto
Sep 23 '16 at 11:45
@MartinSugioarto: Oops, you are right. Select and copy with left, paste with middle. And that does not work out of the box…
– Sardathrion
Sep 23 '16 at 11:51
@MartinSugioarto: Well, ${insult}! It does indeed work out of the box. Something is FUBAR with my configuration, somewhere:set -g mouse onseems to be it.
– Sardathrion
Sep 23 '16 at 11:53
1
1
Old school is actually: select with left button and paste with middle button (and it works out-of-the-box). Did I understand correctly? You want to copy with middle button, not paste?
– Martin Sugioarto
Sep 23 '16 at 11:45
Old school is actually: select with left button and paste with middle button (and it works out-of-the-box). Did I understand correctly? You want to copy with middle button, not paste?
– Martin Sugioarto
Sep 23 '16 at 11:45
@MartinSugioarto: Oops, you are right. Select and copy with left, paste with middle. And that does not work out of the box…
– Sardathrion
Sep 23 '16 at 11:51
@MartinSugioarto: Oops, you are right. Select and copy with left, paste with middle. And that does not work out of the box…
– Sardathrion
Sep 23 '16 at 11:51
@MartinSugioarto: Well, ${insult}! It does indeed work out of the box. Something is FUBAR with my configuration, somewhere:
set -g mouse on seems to be it.– Sardathrion
Sep 23 '16 at 11:53
@MartinSugioarto: Well, ${insult}! It does indeed work out of the box. Something is FUBAR with my configuration, somewhere:
set -g mouse on seems to be it.– Sardathrion
Sep 23 '16 at 11:53
add a comment |
1 Answer
1
active
oldest
votes
In case some other poor soul struggles with this, here is my ~/.tmux.conf file. I use the tmux plugin manager so install that first.
# ./tmux.conf
# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# VI-mode…
setw -g mode-keys vi
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"
# Renumber windows
set -g renumber-windows on
# Automaitcally rename.
setw -g automatic-rename
# Allows for faster key repetition
set -s escape-time 0
# Scroll History
set -g history-limit 30000
# Mouse
set -g mouse on # ← This stops the default correct behaviour…
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi' # tmux-yank option.
set -g @yank_selection 'primary' # tmux-yank option.
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF
So, you can use the mouse to select whatever text you wish. If you hit y before releasing the left mouse button, the selection is copy into the primary buffer which you can paste via the middle mouse click.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f311791%2ftmux-urxvt-and-copy-and-paste-woes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In case some other poor soul struggles with this, here is my ~/.tmux.conf file. I use the tmux plugin manager so install that first.
# ./tmux.conf
# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# VI-mode…
setw -g mode-keys vi
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"
# Renumber windows
set -g renumber-windows on
# Automaitcally rename.
setw -g automatic-rename
# Allows for faster key repetition
set -s escape-time 0
# Scroll History
set -g history-limit 30000
# Mouse
set -g mouse on # ← This stops the default correct behaviour…
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi' # tmux-yank option.
set -g @yank_selection 'primary' # tmux-yank option.
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF
So, you can use the mouse to select whatever text you wish. If you hit y before releasing the left mouse button, the selection is copy into the primary buffer which you can paste via the middle mouse click.
add a comment |
In case some other poor soul struggles with this, here is my ~/.tmux.conf file. I use the tmux plugin manager so install that first.
# ./tmux.conf
# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# VI-mode…
setw -g mode-keys vi
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"
# Renumber windows
set -g renumber-windows on
# Automaitcally rename.
setw -g automatic-rename
# Allows for faster key repetition
set -s escape-time 0
# Scroll History
set -g history-limit 30000
# Mouse
set -g mouse on # ← This stops the default correct behaviour…
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi' # tmux-yank option.
set -g @yank_selection 'primary' # tmux-yank option.
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF
So, you can use the mouse to select whatever text you wish. If you hit y before releasing the left mouse button, the selection is copy into the primary buffer which you can paste via the middle mouse click.
add a comment |
In case some other poor soul struggles with this, here is my ~/.tmux.conf file. I use the tmux plugin manager so install that first.
# ./tmux.conf
# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# VI-mode…
setw -g mode-keys vi
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"
# Renumber windows
set -g renumber-windows on
# Automaitcally rename.
setw -g automatic-rename
# Allows for faster key repetition
set -s escape-time 0
# Scroll History
set -g history-limit 30000
# Mouse
set -g mouse on # ← This stops the default correct behaviour…
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi' # tmux-yank option.
set -g @yank_selection 'primary' # tmux-yank option.
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF
So, you can use the mouse to select whatever text you wish. If you hit y before releasing the left mouse button, the selection is copy into the primary buffer which you can paste via the middle mouse click.
In case some other poor soul struggles with this, here is my ~/.tmux.conf file. I use the tmux plugin manager so install that first.
# ./tmux.conf
# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'
# VI-mode…
setw -g mode-keys vi
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window
# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"
# Renumber windows
set -g renumber-windows on
# Automaitcally rename.
setw -g automatic-rename
# Allows for faster key repetition
set -s escape-time 0
# Scroll History
set -g history-limit 30000
# Mouse
set -g mouse on # ← This stops the default correct behaviour…
# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi' # tmux-yank option.
set -g @yank_selection 'primary' # tmux-yank option.
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF
So, you can use the mouse to select whatever text you wish. If you hit y before releasing the left mouse button, the selection is copy into the primary buffer which you can paste via the middle mouse click.
answered Sep 23 '16 at 12:43
SardathrionSardathrion
2,56442449
2,56442449
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f311791%2ftmux-urxvt-and-copy-and-paste-woes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Old school is actually: select with left button and paste with middle button (and it works out-of-the-box). Did I understand correctly? You want to copy with middle button, not paste?
– Martin Sugioarto
Sep 23 '16 at 11:45
@MartinSugioarto: Oops, you are right. Select and copy with left, paste with middle. And that does not work out of the box…
– Sardathrion
Sep 23 '16 at 11:51
@MartinSugioarto: Well, ${insult}! It does indeed work out of the box. Something is FUBAR with my configuration, somewhere:
set -g mouse onseems to be it.– Sardathrion
Sep 23 '16 at 11:53