rxvt-unicode hacking
For any command-line junkies who favor rxvt-unicode, after years of struggle, here are a couple of things that changed my life:
256-color support and clickable URLs: http://heipei.net/2009/01/04/rxvt-un...ickable-links/ Disable horizontal scroll mode, i.e. make long commands word-wrap in rxvt-unicode: http://lists.freebsd.org/pipermail/f...er/026337.html [Solved by adding an entry for urxvt in /etc/termcap] Some other useful resources for using the full power of 256 colors ! : http://graypine.com/data/colorstuff.tar.gz Include is: 256color.pl - displays all colors in a grid colortest - displays color, hex name, decimal name Now truly rxvt-unicode is the ultimate, since xterm (afaik) doesn't have transparency OR click-able links. Very happy slacker. |
now if you can get copy/paste to work between urxvt and X applications, i will switch from mrxvt
|
Quote:
|
Quote:
Code:
#! /usr/bin/perl |
awesome
that works perfectly thanks anyway to enable paste into urxvt? edit: shift+insert does this, sort of. usually not though, tried parcellite and autocutsel, same issue, pasting from urxvt is fine, pasting into urxvt does not work as well |
Quote:
Sadly the clipboard situation in X/Linux is very messy, with applications choosing to use different selections for no good reason. Though this allows you to maintain multiple selections, unlike in Windows, it makes using the clipboard very tedious. I still think the best solution would be to have only a primary selection while being able to use clipboard managers that store the clipboard history allowing easy switching between selections. But what do I know, I am an end-user and the adoption of the various clipboards into all kinds of Linux applications is too ubiquitous to change at this stage. |
i am currently using mrxvt
Mrxvt.macro.Shift+Alt+V: Paste CLIPBOARD Mrxvt.macro.Shift+Alt+C: Exec !/usr/bin/xclip -o | /usr/bin/xclip -selection clipboard these lines allow copy/paste between all applications i have come across sadly, mrxvt has no unicode support |
Quote:
Code:
!urxvt.keysym.M-S-v: command:/usr/bin/xclip -selection clipboard -o [edit] If you want to operate on the clipboard when you copy, you can just change the previous script to use the clipboard instead of the primary selection. Of course xclip would work as well. [/edit] |
Quote:
|
Well, not quite great. This build of rxvt-unicode works well with my newer machines, but is slow with my older ones. I haven't tested it anything else but xmonad, but there is a lot of lag when doing any kind of dynamic resizing/opening of new terminal windows with the 256-color urxvt build.
Edit: Using this script as per your link T3Slider, copy and post works like charm! Code:
#! /usr/bin/perl |
The perl script doesn't cover copying text out of vim running into a terminal window, but the following covers that.
Added this line to my ~/.vimrc: Code:
vmap <C-c> y:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR> From: http://vim.wikia.com/wiki/In_line_co...stem_clipboard |
okay, this is driving me mad
i can copy out of urxvt into, say firefox for example, using the script posted by t3slider, which, unless i am mistaken, replaces the clipboard contents with the primary buffer every time i highlight something in urxvt i can paste into a new urxvt from firefox using "xsel -x; xsel -o -b | xsel -i; xdotool click 2; xsel -x" as a keybinding in xbindkeys however, if i highlight something in urxvt, the above keybinding stops working, or rather, continues to only paste what was highlighted, and ignores any subsequent additions to the clipboard (the clipboard will still work normally outside of urxvt) i simply want both the primary buffer and the X clipboard to always contain the same text, that being, whichever is newest, e.g. highlighted text in urxvt will be available from both, then if i ctrl+C some text in firefox, that text will be in both, and so on. autocutsel claims to do this, but isn't parcellite, likewise (posting this here in hopes someone reads and figures out a solution before i am able to or angrily quit computers) i did try writing a perl extension, but it either does nothing, or pastes the clipboard content into the parent terminal on launch, depending on how badly i have written it with each edit |
Did you ever solve this, botnet? I'm also migrating from mrxvt to urxvt for unicode support (and was very happy with the mrxvt Ctrl+Shift+C or V macros you posted).
First problem, using the SlackBuild urxvt 9.07 on Slackware 13.1 is that the URxvt.keysym.M-S-c: command:<whatever> definition does not seem to work; on pressing Ctrl+Shift a yellow box with "ISO 14755 mode" is displayed after which pressing "c" displays a yellow box with: Code:
c = □ Code:
#! /usr/bin/perl I don't know enough about how urxvt works or perl to even find if the perl script is being run. BTW, I had no success putting urxvt resource definitions in ~/.Xdefaults but they are effective in ~/.Xresources. :scratch: For testing changes to the various config files (/etc/termcap, /etc/inputrc and ~/.Xresources) I do not know what is necessary to fully re-initialise. xrdb -merge /home/c/.Xresources mostly works but does not undo some changes. Logging off and back on does some re-initialisation but there have been some experimental mistakes which seem to have required a reboot to re-initialise -- feels like Windows over again! During experimentation, some error messages were usefully made visible by starting urxvt from a terminal rather than via a launcher -- such as syntactically incorrect entries in ~/.Xresources which made urxvt abort. |
Quote:
Quote:
Code:
URxvt.perl-lib: /home/username/.urxvt/ |
Thanks T3slider :)
No time to follow up immediately but will do so. |
All times are GMT -5. The time now is 07:08 PM. |