URxvt Config

User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

URxvt Config

Unread post by elixir » Wed Feb 26, 2014 9:29 am

I do not know if there is already a thread about this. (If so go ahead and delete this one)

But I am interested to see everyones urxvt config for your .Xresources/.Xdefaults file if you use urxvt!

Post away :)
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Wed Feb 26, 2014 9:35 am

Oh yeah we do have something like this - for the color schemes!

http://www.linuxbbq.org/bbs/viewtopic.php?f=4&t=833

Of course there is not much additional info about the hints you can give to rxvt, OTOH they are listed in the manpage.

As for color schemes, most of us have the colors in a separate directory, for example ~/console_colors or /usr/local/share/console_colors and the 'main' .Xresources file only sources the colors with an <include>:

Code: Select all

URxvt*font:             -*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*
URxvt*boldFont:         -*-terminus-bold-*-*-*-14-*-*-*-*-*-*-*

URxvt*scrollBar:        false
URxvt*matcher.button:   1
URxvt*colorBD:          #000000
URxvt*colorUL:          #000000
URxvt*cursorBlink:      false

URxvt*cursorColor:  #00ff00

URxvt*transparent:    false
!URxvt*shading: 20
URxvt*geometry: 100x40

URxvt*allow_bold:       true

#include </home/bbq/console_colors/blurredleaves>
this makes it easier to change colors (check the 'dkeger' tool in BBQ)
..gnutella..

User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

Re: URxvt Config

Unread post by elixir » Wed Feb 26, 2014 9:40 am

I did not know we had a tool to use for changing themes that is cool! And yes I saw that other thread but I started looking deaper into rxvt config and some people have some crazy stuff. I only just found out where the .Xresources file was today so I am still all new to this :P
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Wed Feb 26, 2014 9:45 am

Yeah, rxvt has a bunch of options. One interesting one is 'fade' - it makes the inactive window (if you have more than one open) to fade a bit. Can be helpful sometimes, and irritating sometimes (if the color contrast is not high enough). You can turn of the scrollbar (scrollBar: false), looks better :)

Oh there's a whole bunch. (man rxvt lists them all)

Hope the others will post some of their fave features :)
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: URxvt Config

Unread post by wuxmedia » Wed Feb 26, 2014 10:13 am

just these;

Code: Select all

URxvt*.transparent: true
! URxvt*.shading: 0 to 99 darkens, 101 to 200 lightens
URxvt*.shading: 105

URxvt.perl-ext-common: default,matcher
URxvt.url-launcher: /usr/bin/chromium
URxvt.matcher.button: 1
of course season as needed.

transparency is native, which means it isn't as slick see-through as when using a compositor (e.g. compton)
but for static (tiled) term windows works fine and is light.

the last bit lets you open links from the term, using the full path of your chosen browser.

Code: Select all

which <PUT.NAME.OF.BROWSER.HERE>
is handy here.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: URxvt Config

Unread post by kexolino » Wed Feb 26, 2014 11:32 am

Code: Select all

URxvt.geometry: 80x22
URxvt.scrollBar: false
URxvt.iconFile: /usr/share/icons/Faenza/apps/48/xterm.png
URxvt*letterSpace : 1
URxvt.font: xft:Terminus:pixelsize=9
URxvt.boldFont: xft:Terminus:pixelsize=9
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: /usr/bin/iceweasel
URxvt.matcher.button: 1
URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
URxvt*keysym.Home: \033[1~
URxvt*keysym.End: \033[4~
The last 6 lines are for the ctrl + arrow keys, home and end keys to work as expected. And then under these is my color scheme. Well, I guess the URxvt.geometry line is irrelevant when using a tiler, but I like it in Openbox for example.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Wed Feb 26, 2014 11:37 am

Great, thanks for the 'last lines' especially! Never knew that it could be changed like this!
..gnutella..

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: URxvt Config

Unread post by kexolino » Wed Feb 26, 2014 11:54 am

^ Sometimes it still doesn't work right though, for example in vim in tmux.

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: URxvt Config

Unread post by wuxmedia » Wed Feb 26, 2014 12:01 pm

Code: Select all

URxvt*termName: rxvt-unicode
mostly does it for me.
although it still doesn't work in some servers properly via screen, but that's another thread. 8)
but it doesn't make it jump words like in a browser text box.

edit: ahh might be a tmux/screen thing
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Wed Feb 26, 2014 12:12 pm

..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Wed Feb 26, 2014 12:14 pm

Oh right, Archwiki. Interesting stuff here: https://wiki.archlinux.org/index.php/Rx ... erformance
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: URxvt Config

Unread post by dkeg » Wed Feb 26, 2014 12:22 pm

Code: Select all

*internalBorder:     2
*borderColor:        #111111
*lineSpace:          1         // this and letterSpace allow negative numbers
*scrollWithBuffer:   true      // Shift+PageUp
*visualBell:         true
*mapAlert:           false
*bellIsUrgent:       false
*saveLines:          1024
*highlightSection:   true
*highlightColor:     #000000
*highlightTextColor: #bf3f34
*trimSelection:      true
Xcursor*theme:       DMZ-Black

Work hard; Complain less

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: URxvt Config

Unread post by ivanovnegro » Wed Feb 26, 2014 6:31 pm

kexolino wrote:^ Sometimes it still doesn't work right though, for example in vim in tmux.
In vim you want to use 'gg' to scroll at the beginning and 'GG' to scroll to the end. ;)

Code: Select all

URxvt.iconFile: /home/david/.icons/AwOkenDark/clear/128x128/apps/terminal.png
URxvt.font: -misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1
URxvt*boldFont: -misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1		
urxvt.xftAntialias: true
urxvt.scrollBar: false
urxvt.imLocale: de_DE.UTF-8
urxvt.loginShell: true
urxvt.saveLines: 512
urxvt.geometry: 90x25
urxvt.boldMode: false
urxvt.inheritPixmap: false
urxvt.jumpScroll: true
urxvt.tintColor: white
URxvt*internalBorder: 3
URxvt*internalBordercolor: #121212
urxvt.cursorBlink: false
urxvt.cursorColor: #ff8939
urxvt.cursorColor2: #121212
urxvt.colorBD: #857672
urxvt.colorIT: #bbbbbb
urxvt.colorUL: #999999
urxvt.underlineColor: #999999
urxvt.borderless: true
That is mine. The first line takes a nice icon instead of the ugly default. Season to your preference of installed icons. The rest is some colors for the cursor and/or blinking of it. I have antialias on just in case if I want to switch the font to something free type but I usually choose some of the bitmap fonts. These days it is Fixed.

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: URxvt Config

Unread post by kexolino » Wed Feb 26, 2014 7:02 pm

ivanovnegro wrote:In vim you want to use 'gg' to scroll at the beginning and 'GG' to scroll to the end. ;)
Yeah I know, but sometimes I don't want to exit insert mode just for jumping a few words, and I want to use ctrl + arrow keys, but instead of jumping words it somehow deletes text O_o

User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

Re: URxvt Config

Unread post by elixir » Wed Feb 26, 2014 10:47 pm

After reading all of this, Bacon informed about the beautiful program 'dkeger'. That is all I need for my .Xresources cofig now :p
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: URxvt Config

Unread post by rhowaldt » Mon Mar 02, 2015 11:24 am

reading through this now and applying various options, i suddenly discover my urxvt refresh rate is slow as fuck. i have no idea why this is suddenly the case. tried googling it and found only a thing about xft-fonts, which, i think, i am not using?

current .Xdefaults

Code: Select all

URxvt*termName: rxvt-unicode

URxvt*letterSpace : 1
URxvt*font:             -*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*
URxvt*boldFont:         -*-terminus-bold-*-*-*-14-*-*-*-*-*-*-*

URxvt*scrollBar:        false
URxvt*cursorBlink:      false

URxvt*buffered: false
URxvt*transparent:    false

URxvt*allow_bold:       true

URxvt.keysym.Control-Up: \033[1;5A
URxvt.keysym.Control-Down: \033[1;5B
URxvt.keysym.Control-Left: \033[1;5D
URxvt.keysym.Control-Right: \033[1;5C
URxvt*keysym.Home: \033[1~
URxvt*keysym.End: \033[4~

#include </home/rhowaldt/console_colors/readamidst>
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Mon Mar 02, 2015 12:26 pm

rho, you could try with rxvt-unicode or any other rxvt (lite?) and compare. .Xdefaults/.Xresources looks ok to me.
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: URxvt Config

Unread post by wuxmedia » Mon Mar 02, 2015 12:26 pm

I think I have *rxvt* linux worked out, then it just says 'fuck you, no you can't do that'
"Seek, and Ye shall find"
"Github | Chooons | Site"

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: URxvt Config

Unread post by machinebacon » Mon Mar 02, 2015 12:28 pm

wux, should be cap. R
..gnutella..

User avatar
slartie
Grump
Posts: 416
Joined: Tue Jun 18, 2013 12:35 pm
Location: Denmark
Contact:

Re: URxvt Config

Unread post by slartie » Mon Mar 02, 2015 2:11 pm

Apart from .Xdefaults being deprecated, everything looks fine.

Other than that, the only culprit I can point to, is your gfx driver. In case of ATI/NVI the opensource and binary blob drivers can give issues version to version. If you're using the binary blob, try switching to the OSS version and vice verse, or try up/downgrading the driver.

Post Reply