How do you customize rxvt?
How do you customize rxvt?
I want to change the colours in rxvt - can anyone tell me how to do that?
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!
Root forever!
- Gorilla no baka
- Posts: 234
- Joined: Sun 26 Oct 2008, 05:27
- Location: UK
- Contact:
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.alienjeff wrote:rxvt --help
man rxvt
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.
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:
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:
Now I'd just like to tweak the colours output by the ls command. Maybe that's set in options for 'ls'?
Through this, I found three more options I want to tweak:
Code: Select all
Rxvt*scrollBar_floating: true
Rxvt*title: consolepup
Rxvt*geometry: 80x65
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
I like black backgrounds because it makes the command line look scarydjnrempel 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 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!
Root forever!
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?DaveS wrote: As for searching, use this (bookmark it), a brilliant way to search this forum http://wellminded.com/puppy/pupsearch.html
Okay, LS_colors explained explains the options. To set them, add this to ~/.bashrc:
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:
And the colours are:
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
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
[/quote]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!)
Just a line for Google
puppy linux rxvt configure prompt 4.3.1
Do You know how to set up the promt to show the directory I am at?
Do You know how to set up the promt to show the directory I am at?
Try this in your /root/.bashrc file:
and this in your /root/.Xdefaults file:
Code: Select all
export PS1="\[\e[32;1m\]\T: \w > \[\e[0m\]"
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
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
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?
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).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
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.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.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Thanks, that did it.
Lines of code like this are really Chinese for me.
Lines of code like this are really Chinese for me.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Hello Béèm
You may find this page useful (i did): http://www.pantz.org/software/shell/enhancingshellprompt.html
CatDude
.
You, me, and plenty of others too i should think.Béèm wrote:...Lines of code like this are really Chinese for me.
You may find this page useful (i did): http://www.pantz.org/software/shell/enhancingshellprompt.html
CatDude
.
