You are not logged in.

#1 2008-10-09 03:20:18

Convergence
Member
Registered: 2005-07-02
Posts: 377

URXVT configs

I just set up an old computer for someone, and noticed that text scrolling in a TE was very slow.  So, started experimenting with different TE's, and found that terminals based on rxvt were MUCH faster than anything else that i've tried.  ( A test that I found online would be to run "time seq -f 'teeeeeeeeeeeeeeeeeeeeeeeeeeeeeest %g' 1000000")

So I downloaded Mrxvt, and found a nifty sample config online.  http://materm.svn.sourceforge.net/viewv … trc.sample.  This allowed me to choose from several different setups by how I envoke mrxvt.  They were all beautiful, so I added each one of  these invocations to my flux menu, and was thrilled.  Unfortunately, i discovered that MRXVT does not support unicode, and I couldn't tolerate looking at the ugly character rendering.

So, still  hopeful, I turned to URXVT.  Unfortunately, it doesn't seem to be as easy to configure, and I can't find any good samples on the web. 

So, If someone could either post urxvt configs, or suggest a TE that isn't slooooow, I'd appreciate it.


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#2 2008-10-09 03:30:30

anubis2591
Member
Registered: 2008-07-06
Posts: 52
Website

Re: URXVT configs

Sure, here's my .Xdefaults

!------------------------------------------------------------------------------
! c o l o r -  s e t t i n g s

*background: #222222
*foreground: #777777

! Default
! 0: black
*color0:  #222222
*color8:  #222222
! 1: red
*color1:  #9f6767
*color9:  #9f6767
! 2: green
*color2:  #92ac68
*color10: #92ac68
! 3: yellow
*color3:  #d0d293
*color11: #d0d293
! 4: blue
*color4:  #9aacc3
*color12: #9aacc3
! 5: magenta
*color5:  #bb77a4
*color13: #bb77a4
! 6: cyan
*color6:  #77bbb5
*color14: #77bbb5
! 7: white
*color7:  #777777
*color15: #777777

!------------------------------------------------------------------------------
! u r x v t

URxvt*geometry:         112x22  
URxvt*font:            xft:terminus:size=8
URxvt*urlLauncher:         firefox  
URxvt*scrollBar:        false
URxvt*scrollBar_right:        true
URxvt*scrollColor:        #000000

All the options are set in your ~.Xdefualts file, you can find many online. Also all the options are in urxvt's man page.

Last edited by anubis2591 (2008-10-09 03:36:34)

Offline

#3 2008-10-09 03:45:53

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: URXVT configs

anubis:  Thank you!  Took me a minute, because it wasn't at all what I was looking for, but I love it.  Colors are easy on the eyes, and because it was in the .Xdefaults, it seems all of  the terms use these colors.  Wanted transparency, but this setup is so nice, I think that transparency would hurt more than help. 

Thanks again!


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#4 2008-10-09 03:47:48

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: URXVT configs

By the way, even though I like this setup, I'll still check out other people's configs if they care to post them.


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#5 2008-10-09 03:59:32

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: URXVT configs

urxvt*font:             xft:Bitstream Vera Sans Mono:pixelsize=12
urxvt*termName:         rxvt
urxvt*background:       #000000
urxvt*foreground:       #cccccc
urxvt*scrollBar:        false
urxvt*perl-lib:         /usr/lib/urxvt/perl/
urxvt*perl-ext-common:  default,matcher
urxvt*urlLauncher:      /opt/mozilla/bin/firefox
urxvt*matcher.button:   1
#urxvt*fading:           50
#urxvt*fadeColor:        #000000

Xft*dpi:                96
Xft*antialias:          true
Xft*hinting:            full

urxvt*background:       rgba:0000/0000/0000/cccc

URxvt.transparent:   true
URxvt.tintColor:     black
URxvt.shading:       18 
 
URxvt*color0:      #000000
URxvt*color1:      #9e1828
URxvt*color2:      #aece92
URxvt*color3:      #968a38
URxvt*color4:      #414171
URxvt*color5:      #963c59
URxvt*color6:      #418179
URxvt*color7:      #bebebe
URxvt*color8:      #666666
URxvt*color9:      #cf6171
URxvt*color10:     #c5f779
URxvt*color11:     #fff796
URxvt*color12:     #4186be
URxvt*color13:     #cf9ebe
URxvt*color14:     #71bebe
URxvt*color15:     #ffffff

http://rsontech.net/dotfiles/laptop/.Xdefaults


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#6 2008-10-09 04:12:43

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: URXVT configs

! urxvt

URxvt*geometry:                53x20
URxvt*font:  xft:Terminus:pixelsize=5
URxvt*depth:                32
URxvt*background:            [85]#000000
URxvt*foreground:            [100]#ffffff
URxvt*borderless: 1
URxvt*scrollBar:            false
URxvt*saveLines:  5000
URxvt*termName:    rxvt-unicode
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 1



!Pnevma1
*color0: #2F2E2D
*color8: #4A4845
*color1: #A36666
*color9: #D78787
*color2: #8FA57E
*color10: #A9BA9C
*color3: #D7AF87
*color11: #E4C9AF
*color4: #7FA5BD
*color12: #A1BDCE
*color5: #C79EC4
*color13: #D7BEDA
*color6: #8ADBB4
*color14: #B1E7DD
*color7: #D0D0D0
*color15: #EFEFEF

!Pnevma2 - A heavy mod of the original.
!*color0: #2F2E2D
!*color8: #4A4845
!*color1: #C37561
!*color9: #D19485
!*color2: #A0A57E
!*color10: #B6B99D
!*color3: #D1A375
!*color11: #DEBC9C
!*color4: #7985A3
!*color12: #98A1B9
!*color5: #AB716D
!*color13: #BE918E
!*color6: #98B9B1
!*color14: #CBE6CB
!*color7: #D0D0D0
!*color15: #EFEFEF

Offline

#7 2008-10-09 04:14:24

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: URXVT configs

ooh, thats nice too.  I'll probably mix em


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#8 2008-10-09 15:36:35

grte
Member
From: Canada
Registered: 2007-03-21
Posts: 42

Re: URXVT configs

! #########################################
!
!    URxvt config
!
urxvt*background:                   #555244
urxvt*foreground:                    white
urxvt*fading:                            0
urxvt*tintColor:                        #000000
urxvt*shading:                         0
urxvt*inheritPixmap:                false
urxvt*scrollBar:                        false
urxvt*title:                               urxvt
urxvt*termName:                  rxvt-unicode
urxvt*scrollTtyKeypress:          true
urxvt*scrollTtyOutput:             false
urxvt*scrollWithBuffer:            false
urxvt*perl-lib:                          /usr/lib/urxvt/perl
urxvt*perl-ext-common:          default,matcher,selection-pastebin
urxvt*urlLauncher:                  firefox
urxvt*matcher.button:            1
urxvt*scrollstyle:                    plain
urxvt*secondaryScroll:           true
urxvt*cutchars:                      `"'&()urxvt*,;<=>?@[]{|}$`
urxvt*font:                            -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
!urxvt*boldFont:                    -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
!urxvt*italicFont:                    -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
!urxvt*bolditalicFont:             -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
urxvt*iconName:                   rxvt-unicode

! #########################################
!
!    Urxvt Colours
!
! Black
*color0:      #131212
*color8:      #474747
! Red 
*color1:      #472323
*color9:      #5c2929
! Green
*color2:      #299E1B
*color10:     #77E768
! Yellow
*color3:      #96833F
*color11:     #D0B249
! Blue
*color4:      #2467AD
*color12:     #6B90EE
! Purple
*color5:      #655272
*color13:     #9F75BA
! Cyan
*color6:      #92B19E
*color14:     #A1CDCD
! White
*color7:      #FFFFFF
*color15:     #97927C

! ########################################

200807190001401440x900skd6.th.png

Offline

#9 2008-10-09 16:44:19

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: URXVT configs

Here's my .Xdefaults Black window, white letters, simple...

urxvt*background:black
urxvt*foreground:white
urxvt*loginShell:true
urxvt*transpscrollbar:true
urxvt*scrollBar_right:true
urxvt*scrollBar:true
urxvt*saveLines:32767
urxvt.cursorBlink:true
urxvt*title: Terminal
urxvt*termName:rxvt-unicode
urxvt*scrollTtyKeypress:true
urxvt*scrollTtyOutput:false
urxvt*scrollWithBuffer:false
urxvt*urlLauncher:opera 
urxvt*perl-ext-common:default,matcher
urxvt*matcher.button:1
urxvt.scrollstyle:plain
urxvt.secondaryScroll:true
urxvt*cutchars:`"'&()urxvt*,;<=>?@[]{|}$`
urxvt*font: xft:Fixed:pixelsize=11:antialias=true:hinting=true
urxvt*boldFont: xft:Fixed:pixelsize=11:antialias=true:autohint=true:hinting=true
urxvt*italicFont: xft:Fixed:pixelsize=11:antialias=true:italic:autohint=true:hinting=true
urxvt*bolditalicFont: xft:Fixed:pixelsize=11: antialias=true:bold:italic:autohint=true:hinting=true

My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#10 2008-10-11 07:04:00

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: URXVT configs

OK, I love terminus, and I would like to get that font working correctly, but It is either too small to read, or too wide, and some of the programs that I use don't display correctly (small monitor).  Is there a way to set terminus so that it isn't spaced so far apart?

Last edited by Convergence (2008-10-11 07:04:45)


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#11 2008-10-11 07:49:16

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: URXVT configs

I get spacing errors when I use Xft sometimes. Have you tried just putting the long font name like "*-terminus-*medium*-12-*" in there?

Offline

#12 2008-10-11 10:02:27

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: URXVT configs

urxvt*font:                            -terminus-*medium*-12-*

apparently i'm  using the wrong format or something, cuz that doesn't work at all.

looking at other people that don't use xft, they do something like:

URxvt.font: -*-terminus-medium-*-*-*-*-140-*-*-*-*-iso8859-1

Which I don't understand, and doesn't seem to work for me either.

I always get the same error:

urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#13 2008-10-11 10:55:21

Convergence
Member
Registered: 2005-07-02
Posts: 377

Re: URXVT configs

Yeah, I think that I'm missing something when I try to install fonts or something.  I did something like this:

1. Install terminus via pacman
2. fc-cache -vf (as root) 
3. entered it into my .Xdefaults file, as described here.

It seems to work great as long as I use xft, but xft apparently causes spacing problems.

So I turned BACK to the wiki, and took a bunch of steps that probably don't apply to me:

This should work in X Window with GNOME, KDE or XFCE4 desktop environments for most applications. However, some GTK1 or old applications don't support fontconfig. (Really? Someone should check this and then fix it) You have to run the following commands in your fonts directory (in the terminal of course):

  mkfontscale
  mkfontdir
  ln -s /usr/share/fonts/encodings/encodings.dir yourfontdirectory/encodings.dir

As I said, I'm not sure that those instructions apply to me, and I'm not sure that I'm using the right dir if they do apply.  I ran "ls -a" in my home dir, and the only directory that had anything to do with fonts was .fontconfig, so I followed those directions in that directory, and it made a couple of directories, but i'm not sure that whatever program is supposed to read that info is going to look for it there.  ugh.


It's a very deadly weapon to know what you're doing
---  William Murderface

Offline

#14 2009-04-06 22:46:13

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: URXVT configs

dmz wrote:
! urxvt

URxvt*geometry:                53x20
URxvt*font:  xft:Terminus:pixelsize=5
URxvt*depth:                32
URxvt*background:            [85]#000000
URxvt*foreground:            [100]#ffffff
URxvt*borderless: 1
URxvt*scrollBar:            false
URxvt*saveLines:  5000
URxvt*termName:    rxvt-unicode
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 1



!Pnevma1
*color0: #2F2E2D
*color8: #4A4845
*color1: #A36666
*color9: #D78787
*color2: #8FA57E
*color10: #A9BA9C
*color3: #D7AF87
*color11: #E4C9AF
*color4: #7FA5BD
*color12: #A1BDCE
*color5: #C79EC4
*color13: #D7BEDA
*color6: #8ADBB4
*color14: #B1E7DD
*color7: #D0D0D0
*color15: #EFEFEF

!Pnevma2 - A heavy mod of the original.
!*color0: #2F2E2D
!*color8: #4A4845
!*color1: #C37561
!*color9: #D19485
!*color2: #A0A57E
!*color10: #B6B99D
!*color3: #D1A375
!*color11: #DEBC9C
!*color4: #7985A3
!*color12: #98A1B9
!*color5: #AB716D
!*color13: #BE918E
!*color6: #98B9B1
!*color14: #CBE6CB
!*color7: #D0D0D0
!*color15: #EFEFEF

that is gorgeous!! hardly took any tweekin 2 get perfect! thanks! smile


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#15 2009-04-07 00:28:35

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: URXVT configs

I haven't read the thread, but in case no one else mentioned it, you can add different configs in Xdefaults such as urxvt1*.. and urxvt2*... and launch urxvt with something like urxvt -name urxvt1 etc. to get seperate configs from your flux menu just like you did mrxvt.

Holy hell, I've posted in this thread before..

Last edited by rson451 (2009-04-07 00:29:14)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#16 2009-04-07 02:15:48

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: URXVT configs

... That's just funny! LMAO! Are you on something? (joking, of course)

Your desire to help others has overcome other abilities! smile

It happens, even to the best of the best. Thank you for the cheering moment!

Btw, urxvt rocks. smile

! urxvt

URxvt*geometry:                115x40
URxvt*font:  xft:cure:pixelsize=8
URxvt*depth:                24
URxvt*background:            [80]#000000
URxvt*foreground:            [30]#ffffff
URxvt*borderless: 1
URxvt*scrollBar:            false
URxvt*saveLines:  2000
!URxvt*termName:    Urxvt
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 1
URxvt.transparent:      true

Last edited by s3kt0r (2009-04-17 03:58:58)


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#17 2009-04-23 15:26:04

Etuxia
Member
From: Stockholm, Sweden
Registered: 2008-10-29
Posts: 68
Website

Re: URXVT configs

This is my URxvt

etu@Trillian ~ $ cat .Xdefaults

URxvt*termName:            rxvt
URxvt*reverseVideo:        true
URxvt*scrollBar:        false
URxvt*font:            xft:DejaVu Sans Mono:size=8

URxvt*perl-ext:            default,matcher
URxvt*matcher.button:        1
URxvt*urlLauncher:              firefox

!urxvt.matcher.pattern.0: \\b(?:(?:https?|ftp|news|file):\/\/|mailto:)[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),~#]+ [ab-zA-Z0-9\-\@;\/?:&=%\$_+!*\x27()~]
URxvt*matcher.pattern.0: \\b(?:(?:https?|ftp):\/\/|mailto:)[\\w\-\@;\/?:&=%\$_.+!*\x27(),~#]+ [\\w\-\@;\/?:&=%\$_+!*\x27()~]
URxvt*matcher.pattern.1:  \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-]

!!! This one matches image URLs and open them in FEH
URxvt*matcher.pattern.2:    \\bhttps?:\/\/[\\w-.]*\/[\\w./?&@#-]*.(jpg|jpeg|png)
URxvt*matcher.launcher.2:    feh $0

!!! Open youtubeliks in your own youtubescript
URxvt*matcher.pattern.3:        \\bhttp:\/\/(www.youtube|youtube).com\/watch\\?v=([\\w-]*)
URxvt*matcher.launcher.3:    /usr/local/bin/dutub $2

etu@Trillian ~ $ cat /usr/local/bin/dutub

#!/bin/bash

mplayer -zoom $(youtube-dl -bg $1)

Last edited by Etuxia (2009-04-23 22:05:58)

Offline

Board footer

Powered by FluxBB