How do you customize rxvt?

Booting, installing, newbie
Message
Author
djnrempel
Posts: 34
Joined: Tue 29 Sep 2009, 03:58

How do you customize rxvt?

#1 Post by djnrempel »

I want to change the colours in rxvt - can anyone tell me how to do that?

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#2 Post by alienjeff »

rxvt --help

man rxvt

google
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#3 Post by DaveS »

If you add this text under the 'savelines' entry in /root/.Xdefaults the colours will change to those you specify. Mine is for black background, white text

Code: Select all

Rxvt*background: black
Rxvt*foreground: white
Rxvt*scrollColor: black
Rxvt*scrollBar_right: true
Spup Frugal HD and USB
Root forever!

djnrempel
Posts: 34
Joined: Tue 29 Sep 2009, 03:58

#4 Post by djnrempel »

Thanks!

[MOB]Trip
Posts: 31
Joined: Wed 07 Oct 2009, 07:43
Location: same shit world u live in.
Contact:

#5 Post by [MOB]Trip »

cool 8)
[img]http://i850.photobucket.com/albums/ab63/Prezzle/triptest.gif[/img]
[img]http://i551.photobucket.com/albums/ii476/Mazine999/mobbu7.gif[/img]

User avatar
Gorilla no baka
Posts: 234
Joined: Sun 26 Oct 2008, 05:27
Location: UK
Contact:

#6 Post by Gorilla no baka »

alienjeff wrote:rxvt --help

man rxvt

google
And don`t forget...

Count your blessings... :P !!!
[img]http://i44.tinypic.com/29zdifo.jpg[/img]
[b]
[color=red]I'M IN MY OWN WORLD[/color].[/b] [color=darkred]IT'S OK, THEY KNOW ME HERE..!!![/color]

djnrempel
Posts: 34
Joined: Tue 29 Sep 2009, 03:58

#7 Post by djnrempel »

alienjeff wrote:rxvt --help

man rxvt

google
As the 'computer guy' in my own office, I can identify with the impatience behind a "RTFM" response like this. And I generally do try to search for an answer before I ask others for help.

In this case however, google did not produce anything. Perhaps I didn't use the right search terms.. rxvt --help produces a list of options, but does not tell you where to set them. man rxvt leads to a web page where the word "Manual" is not an active link, though it looks like it should be. I clicked on the "New Site" link which brought me to sf.net, clicked on "Support", only to be told that "Unfortunately, this project hasn't indicated the best way to get help."

But now, because I asked, we have a handy thread that others have already found, searching for the same answer I was.

All that is to say: yes, I know I should RTFM, but in this case "TFM" did not get me anywhere.

/off-topic

I now am using Dave's config, except I made my text green, because I like it to look really old-school. Well, maybe it should be amber in that case.

djnrempel
Posts: 34
Joined: Tue 29 Sep 2009, 03:58

#8 Post by djnrempel »

This page gives useful documentation of the options displayed by rxvt --help: http://linuxcommand.org/man_pages/rxvt1.html

Through this, I found three more options I want to tweak:

Code: Select all

Rxvt*scrollBar_floating: true
Rxvt*title: consolepup
Rxvt*geometry: 80x65
The geometry option makes the window open with 65 lines of space - so when you type something like rxvt --help, you can actually see most of the output at once.

title lets me have the window named the much friendlier "consolepup" instead of "rxvt"

And scrollBar_floating removes the "trough" from the scrollbar, which looks nicer IMO. I also changed the scrollbar color to grey, instead of having a grey trough with a black scrollbar as before. This was confusing, because it looked like the grey trough was the scroll bar, because the black scrollbar just looked like more background.

Here's my complete .Xdefaults file. The top section is the one's I've played with, the bottom section I'm not sure how to work:

Code: Select all

!warning, needs about 500 bytes per line for scrollback buffer...
Rxvt*saveLines: 1000
Rxvt*background: black
Rxvt*foreground: green
Rxvt*scrollColor: grey
Rxvt*scrollBar_right: true
Rxvt*scrollBar_floating: true
Rxvt*title: consolepup
Rxvt*geometry: 80x65
Rxvt*colorUL: green
!Rxvt*reverseVideo: true

Rxvt*keysym.0xFF50:\001
Rxvt*keysym.0xFF57:\005
!Rxvt*menu: /root/.rxvt.menu
! idea here is 7x14 only iso8859-1, xft:mono fills in other characters...
URxvt.font: x:7x14,xft:mono
!URxvt.font: xft:mono:pixelsize=14
URxvt.boldFont: x:7x14,xft:mono
URxvt.italicFont: xft:mono:italic:autohint=true
Now I'd just like to tweak the colours output by the ls command. Maybe that's set in options for 'ls'?

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#9 Post by DaveS »

djnrempel wrote: I now am using Dave's config, except I made my text green, because I like it to look really old-school. Well, maybe it should be amber in that case.
I like black backgrounds because it makes the command line look scary :)

I THINK you can use a Hex colour here too, so try menu>graphic>gtcolorchooser to get exactly the colour you want. As for searching, use this (bookmark it), a brilliant way to search this forum http://wellminded.com/puppy/pupsearch.html
Spup Frugal HD and USB
Root forever!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#10 Post by DaveS »

Double post
Spup Frugal HD and USB
Root forever!

djnrempel
Posts: 34
Joined: Tue 29 Sep 2009, 03:58

#11 Post by djnrempel »

DaveS wrote: As for searching, use this (bookmark it), a brilliant way to search this forum http://wellminded.com/puppy/pupsearch.html
I'm running Puppies 4.3.1 which has Firefox 3.5.2 with Murga forum search in the search box - that would produce the same results, no?

djnrempel
Posts: 34
Joined: Tue 29 Sep 2009, 03:58

#12 Post by djnrempel »

Okay, LS_colors explained explains the options. To set them, add this to ~/.bashrc:

Code: Select all

alias ls='ls --color'
LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35'
export LS_COLORS
I got an error when I inserted spaces, so don't do that. Note that 0 is the default color.

For quick reference, the codes are:

Code: Select all

di 	 Directory
fi 	File
ln 	Symbolic Link
pi 	Fifo file
so 	Socket file
bd 	Block (buffered) special file
cd 	Character (unbuffered) special file
or 	Symbolic Link pointing to a non-existent file (orphan)
mi 	Non-existent file pointed to by a symbolic link (visible when you type ls -l)
ex 	File which is executable (ie. has 'x' set in permissions). 
*.pet  - all files with extension pet (or  whatever you want to set
And the colours are:
0 = Default Colour
1 = Bold
4 = Underlined
5 = Flashing Text
7 = Reverse Field
31 = Red
32 = Green
33 = Orange
34 = Blue
35 = Purple
36 = Cyan
37 = Grey
40 = Black Background
41 = Red Background
42 = Green Background
43 = Orange Background
44 = Blue Background
45 = Purple Background
46 = Cyan Background
47 = Grey Background
90 = Dark Grey
91 = Light Red
92 = Light Green
93 = Yellow
94 = Light Blue
95 = Light Purple
96 = Turquoise
100 = Dark Grey Background
101 = Light Red Background
102 = Light Green Background
103 = Yellow Background
104 = Light Blue Background
105 = Light Purple Background
106 = Turquoise Background

These codes can also be combined with one another:
di=5;34;43

Setting the LS_COLORS di parameter to the above example will make directories appear in flashing blue text with an orange background (just because flashing text is available doesn't mean you should use it!)
[/quote]

jangirke
Posts: 1
Joined: Thu 21 Jan 2010, 21:29

Just a line for Google

#13 Post by jangirke »

puppy linux rxvt configure prompt 4.3.1

Do You know how to set up the promt to show the directory I am at?

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#14 Post by trapster »

Try this in your /root/.bashrc file:

Code: Select all

export PS1="\[\e[32;1m\]\T: \w > \[\e[0m\]"
and this in your /root/.Xdefaults file:

Code: Select all

Rxvt*keysym.0xFF50:\001
Rxvt*keysym.0xFF57:\005
!Rxvt*menu: /root/.rxvt.menu
Rxvt*saveLines: 1000
Rxvt.background: "black"
Rxvt.foreground: "white smoke"
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#15 Post by Béèm »

Cool, trapster.
In dpup the part of .Xdefaults was already there.

But still a question.
How can I get the time in 24 hour format?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

#16 Post by Kal »

Hi Béèm,

For JWM go to /root/.jwmrc-tray (hidden file, left click eye in rox toolbar) and edit this line with text editor, at the bottom to read like this:

<Clock format="%H:%M ">minixcal</Clock>

I believe that should work. Restart JWM.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#17 Post by Béèm »

Kal wrote:Hi Béèm,

For JWM go to /root/.jwmrc-tray (hidden file, left click eye in rox toolbar) and edit this line with text editor, at the bottom to read like this:

<Clock format="%H:%M ">minixcal</Clock>

I believe that should work. Restart JWM.
Thanks I know that and that's how I operate, but my question was how the get the 24 hour clock format in the script trapster proposed. Thus having it in the rxvt terminal.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

#18 Post by Kal »

Try changing the upper case "T" to lower case "t" in the code, like so:

export PS1="\[\e[32;1m\]\t: \w > \[\e[0m\]"

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#19 Post by Béèm »

Thanks, that did it.
Lines of code like this are really Chinese for me.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#20 Post by CatDude »

Hello Béèm
Béèm wrote:...Lines of code like this are really Chinese for me.
You, me, and plenty of others too i should think.

You may find this page useful (i did): http://www.pantz.org/software/shell/enhancingshellprompt.html

CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

Post Reply