Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 24 Nov 2014, 21:55
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How do you customize rxvt?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [21 Posts]   Goto page: 1, 2 Next
Author Message
djnrempel

Joined: 28 Sep 2009
Posts: 34

PostPosted: Tue 06 Oct 2009, 22:34    Post subject:  How do you customize rxvt?  

I want to change the colours in rxvt - can anyone tell me how to do that?
Back to top
View user's profile Send private message 
alienjeff


Joined: 08 Jul 2006
Posts: 2291
Location: Winsted, CT - USA

PostPosted: Tue 06 Oct 2009, 22:55    Post subject:  

rxvt --help

man rxvt

google

_________________
hangout: ##b0rked on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker

Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Wed 07 Oct 2009, 01:32    Post subject:  

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:
Rxvt*background: black
Rxvt*foreground: white
Rxvt*scrollColor: black
Rxvt*scrollBar_right: true

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
djnrempel

Joined: 28 Sep 2009
Posts: 34

PostPosted: Wed 07 Oct 2009, 03:15    Post subject:  

Thanks!
Back to top
View user's profile Send private message 
[MOB]Trip

Joined: 07 Oct 2009
Posts: 31
Location: same shit world u live in.

PostPosted: Wed 07 Oct 2009, 06:13    Post subject:  

cool Cool
_________________


Back to top
View user's profile Send private message Visit poster's website 
Gorilla no baka


Joined: 26 Oct 2008
Posts: 234
Location: UK

PostPosted: Wed 07 Oct 2009, 09:03    Post subject:  

alienjeff wrote:
rxvt --help

man rxvt

google


And don`t forget...

Count your blessings... Razz !!!

_________________


I'M IN MY OWN WORLD.
IT'S OK, THEY KNOW ME HERE..!!!
Back to top
View user's profile Send private message Visit poster's website 
djnrempel

Joined: 28 Sep 2009
Posts: 34

PostPosted: Wed 07 Oct 2009, 14:40    Post subject:  

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.
Back to top
View user's profile Send private message 
djnrempel

Joined: 28 Sep 2009
Posts: 34

PostPosted: Wed 07 Oct 2009, 15:12    Post subject:  

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:
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:
!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'?
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Wed 07 Oct 2009, 15:13    Post subject:  

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 Smile

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!
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Wed 07 Oct 2009, 15:15    Post subject:  

Double post
_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
djnrempel

Joined: 28 Sep 2009
Posts: 34

PostPosted: Wed 07 Oct 2009, 15:24    Post subject:  

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?
Back to top
View user's profile Send private message 
djnrempel

Joined: 28 Sep 2009
Posts: 34

PostPosted: Wed 07 Oct 2009, 15:36    Post subject:  

Okay, LS_colors explained explains the options. To set them, add this to ~/.bashrc:
Code:
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:
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:
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!)
[/quote]
Back to top
View user's profile Send private message 
jangirke

Joined: 21 Jan 2010
Posts: 1

PostPosted: Thu 21 Jan 2010, 19:11    Post subject:  Just a line for Google
Subject description: Another search string
 

puppy linux rxvt configure prompt 4.3.1

Do You know how to set up the promt to show the directory I am at?
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 2027
Location: Maine, USA

PostPosted: Thu 21 Jan 2010, 20:38    Post subject:  

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


and this in your /root/.Xdefaults file:
Code:
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: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Mon 15 Mar 2010, 13:45    Post subject:  

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).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [21 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0906s ][ Queries: 11 (0.0037s) ][ GZIP on ]