1

There are 2 kind of clipboards on my os (manjaro i3). Xclip, which keeps the last selected text, and the regular clipboard which must be explicitly copied.
I have noticed urxvt copies selected text in both clipboard, but I only need it to copy to xclip instead of the regular clipboard. Is there a way to do this?

Edit: my Xresources

URxvt.clipboard.autocopy: false URxvt.font: 9x15,xft:TerminessTTFNerdFontMono ! URxvt.font: -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1 ! URxvt.bold.font: -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1 URxvt.depth: 32 URxvt.background: [100]#222D31 URxvt*scrollBar: false URxvt*mouseWheelScrollPage: false URxvt*cursorBlink: true URxvt*background: black URxvt*foreground: grey URxvt*saveLines: 5000 ! URxvt*inheritPixmap: true ! URxvt*transparent: true ! URxvt*shading: 138 URxvt*transparent: true URxvt*shading: 20 URxvt.iso14755: false URxvt.keysym.Shift-Control-V: eval:paste_clipboard URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard URxvt.keysym.Control-Left: \033[1;5D URxvt.keysym.Shift-Control-Left: \033[1;6D URxvt.keysym.Control-Right: \033[1;5C URxvt.keysym.Shift-Control-Right: \033[1;6C URxvt.keysym.Control-Up: \033[1;5A URxvt.keysym.Shift-Control-Up: \033[1;6A URxvt.keysym.Control-Down: \033[1;5B URxvt.keysym.Shift-Control-Down: \033[1;6B URxvt.perl-ext-common: default,font-size,clipboard,selection-to-clipboard ! URxvt.keysym.M-C-c: perl:clipboard:copy ! URxvt.keysym.M-v: perl:clipboard:paste ! URxvt.keysym.M-C-v: perl:clipboard:paste_escaped ! URxvt*termName: string ! URxvt*geometry: geometry ! URxvt*chdir: string ! URxvt*loginShell: boolean ! URxvt*multiClickTime: number ! URxvt*jumpScroll: boolean ! URxvt*skipScroll: boolean ! URxvt*pastableTabs: boolean ! URxvt*scrollstyle: plain ! URxvt*scrollBar_right: boolean ! URxvt*scrollBar_floating: true ! URxvt*scrollBar_align: mode ! URxvt*thickness: number ! URxvt*scrollTtyOutput: boolean ! URxvt*scrollTtyKeypress: boolean ! URxvt*scrollWithBuffer: boolean ! URxvt*tintColor: !7DA55 ! URxvt*blurRadius: HxV ! URxvt*fading: number ! URxvt*fadeColor: color ! URxvt*utmpInhibit: boolean ! URxvt*urgentOnBell: boolean ! URxvt*visualBell: boolean ! URxvt*mapAlert: boolean ! URxvt*meta8: boolean ! URxvt*tripleclickwords: boolean ! URxvt*insecure: boolean ! URxvt*cursorUnderline: boolean ! URxvt*pointerBlank: boolean ! URxvt*color0: color ! URxvt*color1: color ! URxvt*color2: color ! URxvt*color3: color ! URxvt*color4: color ! URxvt*color5: color ! URxvt*color6: color ! URxvt*color7: color ! URxvt*color8: color ! URxvt*color9: color ! URxvt*color10: color ! URxvt*color11: color ! URxvt*color12: color ! URxvt*color13: color ! URxvt*color14: color ! URxvt*color15: color ! URxvt*colorBD: color ! URxvt*colorIT: color ! URxvt*colorUL: color ! URxvt*colorRV: color ! URxvt*underlineColor: color ! URxvt*scrollColor: color ! URxvt*troughColor: color ! URxvt*highlightColor: color ! URxvt*highlightTextColor: color ! URxvt*cursorColor: color ! URxvt*cursorColor2: color ! URxvt*pointerColor: color ! URxvt*pointerColor2: color ! URxvt*borderColor: color ! URxvt*iconFile: file ! URxvt*font: fontname ! URxvt*boldFont: fontname ! URxvt*italicFont: fontname ! URxvt*boldItalicFont: fontname ! URxvt*intensityStyles: boolean ! URxvt*inputMethod: name ! URxvt*preeditType: style ! URxvt*imLocale: string ! URxvt*imFont: fontname ! URxvt*title: string ! URxvt*iconName: string ! URxvt*buffered: boolean ! URxvt*depth: number ! URxvt*visual: number ! URxvt*transient-for: windowid ! URxvt*override-redirect: boolean ! URxvt*hold: boolean ! URxvt*externalBorder: number ! URxvt*internalBorder: number ! URxvt*borderLess: true ! URxvt*lineSpace: number ! URxvt*letterSpace: number ! URxvt*skipBuiltinGlyphs: boolean ! URxvt*pointerBlankDelay: number ! URxvt*backspacekey: string ! URxvt*deletekey: string ! URxvt*print-pipe: string ! URxvt*modifier: modifier ! URxvt*cutchars: string ! URxvt*answerbackString: string ! URxvt*secondaryScreen: boolean ! URxvt*secondaryScroll: boolean ! URxvt*perl-lib: string ! URxvt*perl-eval: perl-eval ! URxvt*perl-ext-common: string ! URxvt*perl-ext: string ! URxvt*iso14755: boolean ! URxvt*iso14755_52: boolean ! URxvt*xrm: string ! URxvt*keysym.sym: keysym ! URxvt*background.border: boolean ! URxvt*background.expr: string ! URxvt*background.interval: seconds ! URxvt*bell-command: string ! URxvt*kuake.hotkey: string ! URxvt*matcher.button: string ! URxvt*matcher.launcher: string ! URxvt*matcher.launcher.*: string ! URxvt*matcher.pattern.*: string ! URxvt*matcher.rend.*: string ! URxvt*remote-clipboard.fetch: string ! URxvt*remote-clipboard.store: string ! URxvt*searchable-scrollback: string ! URxvt*selection-autotransform.*: string ! URxvt*selection-pastebin.cmd: string ! URxvt*selection-pastebin.url: string ! URxvt*selection.pattern-0: string ! URxvt*tab-bg: colour ! URxvt*tab-fg: colour ! URxvt*tabbar-bg: colour ! URxvt*tabbar-fg: colour ! URxvt*url-launcher: string !URxvt.font:xft:DejaVu Sans Mono:pixelsize=28 
2
  • sidestep the problem by using tmux maybe? Commented Jan 10, 2023 at 22:19
  • posted my Xresources. Weirdly, on my other manjaro instllation, it works as expected Commented Jan 11, 2023 at 13:19

1 Answer 1

1

Try

URxvt.clipboard.autocopy: false 
3
  • didn't work, stil same behviour Commented Jan 11, 2023 at 13:17
  • 1
    @user2741831 - it should work if you also remove the ,selection-to-clipboard part which is at the end of the URxvt.perl-ext-common:... line. Run xrdb -load .Xresources after that and then restart urxvt Commented Jan 11, 2023 at 14:02
  • that did the trick, thanks Commented Jan 11, 2023 at 14:30

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.