Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Well yeah I have a problem, I'm using trackball and I don't have middleclick, I even don't want to have it. i can't figure out what is the shortcut to paste it that way? because if you want to copy something from xterm you need to use middleclick. Ctrl+V and Shift+INS is using another clipboard.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Push both left and right buttons at the same time. If you prefer keyboard shortcuts take a look to this.

share|improve this answer
add comment

In most X11 programs, ShiftInsert should work – it pastes from the same "PRIMARY" selection that xterm copies to.

If you need to paste to Firefox or Chromium, though, you will need a program that synchronizes both selections, such as Klipper (KDE), Parcellite/Clipit (GNOME), or loliclip (generic). [The term is "clipboard manager".]


Alternatively, configure Xterm to copy to the "CLIPBOARD" selection instead, by adding one of the following to your ~/.Xresources file:

  1. Retain normal behavior when selecting, but copy to "CLIPBOARD" when CtrlShiftC is pressed:

    XTerm*vt100*translations:   #override           \n\
        Shift <Key> Delete: insert-selection(SELECT)    \n\
        Shift Ctrl <Key> C: select-end(CLIPBOARD)       \n\
        Shift Ctrl <Key> V: insert-selection(CLIPBOARD) \n\
        Shift Ctrl <Key> N: spawn-new-terminal()        \n
    
  2. Always copy to "CLIPBOARD" when selecting:

    XTerm*selectToClipboard: true
    

(Run xrdb -merge ~/.Xresources after editing.)

share|improve this answer
    
and why not .Xdefaults? with dwm it's loading by default –  holms Oct 15 '12 at 14:05
    
sorry for not selecting your answer, but 'choutos' actually answered the question. Although I will use your hack anyway =) –  holms Oct 15 '12 at 14:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.