LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2003, 12:05 PM   #1
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Rep: Reputation: 15
how to make my rxvt more beautiful


I dont know what your rxvt looks like. But I really do not like my current RXVT. It just have a white background and nothing else.

what can I do to make it more pretty?
 
Old 07-28-2003, 12:11 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Man rxvt and various related X pages.

A lot of people seem to do translucent terms, but mostly with eterm or aterm or something - not sure if rxvt can do it or not. I just do

rxvt -ls -bg black -fg green

*shrug* Maybe not much, but I like it. A lot of people don't like rxvt though - they go for heavier, more 'featureful' terms. So if you want something really nice, maybe look into another xterm?
 
Old 07-28-2003, 12:25 PM   #3
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
I tested it and it only is useful temporarily. I mean I want to my rxvt be what I mde it last time. whenever I open rxvt it is a pretty one.

can I make it?
 
Old 07-28-2003, 12:38 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I don't understand. You're saying you'd configured it before and you want it like that again? I can't help you there because I don't know how it was but anything that was done before can be done again as long as it's not dependent on an unsupported element of an earlier version or something. Good luck with that.
 
Old 07-28-2003, 02:33 PM   #5
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
Thank you all the same.
 
Old 07-29-2003, 09:47 PM   #6
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
What he needs is a decent applications resource defaults file!

That way he does not need to keep using command line parameters

Put the file in the directory specified by the environmental variable
XAPPLRESDIR, or put it in /etc/X11/app-defaults

Please adjust the colors to taste!


!*****************************************************************************!
!*+-------------------------------------------------------------------------+*!
!*| |*!
!*| FILE: ${XAPPLRESDIR}/Rxvt |*!
!*| DATE: 2002-09-07 |*!
!*| AUTHOR: Corin |*!
!*| |*!
!*+-------------------------------------------------------------------------+*!
!*****************************************************************************!

!+---------------------------------------------------------------------------+!
!| Rxvt defaults |!
!+---------------------------------------------------------------------------+!

Rxvt.geometry: 80x25+0+157

Rxvt*backspacekey: \^?

Rxvt.meta8: False
Rxvt.saveLines: 256
Rxvt.utmpInhibit: True

Rxvt.bigfont_key: Right
Rxvt.smallfont_key: Left

!+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::+!
!| color settings |!
!+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::+!

Rxvt.foreground: #ffffff
Rxvt.background: #000000

!+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::+!
!| font settings |!
!+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::+!

Rxvt.font: \
-misc-fixed-medium-r-normal--20-140-100-100-c-100-iso8859-1

Rxvt.font1: \
-misc-nil-medium-r-normal--2-20-75-75-c-10-misc-fontspecific

Rxvt.font2: \
-misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1

Rxvt.font3: \
-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1

Rxvt.font4: \
-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1

Rxvt.font5: \
-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1

Rxvt.font6: \
-sony-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1

!+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::+!
!| Key symbol bindings |!
!+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::+!

Rxvt.keysym.Insert: \\e[2~
Rxvt.keysym.Home: \\e[1~
Rxvt.keysym.Prior: \\e[5~
Rxvt.keysym.Select: \\e[3~
Rxvt.keysym.End: \\e[4~
Rxvt.keysym.Next: \\e[6~

!+---------------------------------------------------------------------------+!
!| Rxvt - rxvt - defaults |!
!+---------------------------------------------------------------------------+!

rxvt.colorBD: #ffff00
rxvt.colorRV: #ffffff
rxvt.colorUL: #ffffff

!+---------------------------------------------------------------------------+!
!| Rxvt - console - defaults |!
!+---------------------------------------------------------------------------+!

console.iconName: console

console.geometry: 89x8+0+0

console.boldFont: \
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1

console.font: \
-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1

console.font1: \
-misc-nil-medium-r-normal--2-20-75-75-c-10-misc-fontspecific

console.font2: \
-misc-fixed-medium-r-normal--7-50-100-100-c-50-iso8859-1

console.font3: \
-misc-fixed-medium-r-normal--8-60-100-100-c-50-iso8859-1

console.font4: \
-misc-fixed-medium-r-normal--10-70-100-100-c-60-iso8859-1

console.font5: \
-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1

console.font6: \
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1

console.font7: \
-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso8859-1

console.foreground: #eeffff
console.background: #202048

console.cursorColor: #bbffff
console.cursorColor2: #99dddd

console.pointerColor: #ddffff

console.scrollColor: #99dddd
console.troughColor: #77bbbb

console.colorBD: #ffff00
console.colorRV: #ffffff
console.colorUL: #ffffff

!+---------------------------------------------------------------------------+!
!| Rxvt - vi - defaults |!
!+---------------------------------------------------------------------------+!

vi.iconName: vi

vi.cursorColor: #bc34de
vi.cursorColor2: #9a12bc

vi.pointerColor: #de56ff

vi.scrollColor: #9a12bc
vi.troughColor: #79009a

vi.colorBD: #ffff00
vi.colorRV: #ffffff
vi.colorUL: #ffffff

!*****************************************************************************!


NB note that if you install this file and then do

rxvt -name console, you get the appearance specified by the settings in
the file above for console and not rxvt.

So that means you could have lots of different color settings for applications
like vi or whatever and create appropriate entries for them named
vi.* in the file above, hence you can get color coded rxvts if you were
to do

rxvt -name vi -e vi
 
Old 07-31-2003, 08:36 AM   #7
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
I tried e-mailing the apps-default file to g-xaiofei but am getting this error

g-xiaofei@vip.sina.COM Delay reason: SMTP error from remote mailer after RCPT TO:<g-xiaofei@vip.sina.COM>:
host pop3.vip.sina.com [202.108.35.190]: 445 \267\376\316\361\306\367\276\334\276\370 - server rejected (#4.4.4)
 
Old 07-31-2003, 11:05 AM   #8
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
What's wrong with my mail sever? Mybe it was busy at that time

I can receive other american's email. Would you mind mail it to me once again.
You can mail to me both at g-xiaofei@vip.sina.com and g_linux@hotmail.com

Thank you very for your kindness.
 
Old 07-31-2003, 02:42 PM   #9
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
This time the e-mail has left the queue.

Now do you understand about how to use

rxvt -n vi -e vi

with the above file to get specific color schemes for different applications?

And then depending on your shell you can create aliases eg for bash

if [ -n "${DISPLAY}" ]
then
alias vi='rxvt -name vi -e vi'
alias root='rxvt -name root -e su - root'
... etc etc
fi


Obviously you can also create your own color schemes for just rxvt without having to run an application in the rxvt eg

if you had the appropriate lines for

bright.foreground
... etc

and

dark.foreground
... etc

you could do

rxvt -name bright

and

rxvt -name dark

to get a brightly colored or darkly colored rxvt.

Isn't X11 so wonderful and so configurable?

[But you do have to do the work to get it work!]
 
Old 08-01-2003, 03:30 AM   #10
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
Thank you very much. I have got your email.

It will help for me i believe.
 
Old 08-01-2003, 04:20 AM   #11
gexiaofei
Member
 
Registered: Jul 2003
Location: Beijing,China
Distribution: RedFlag Linux, and RedHat Linux(now)
Posts: 133

Original Poster
Rep: Reputation: 15
Sorry I cant get it work. Could you please tell me what exactly what should i do with the file you send to me.
I am a linuxbie and I thinkk I do not quite catch you.

Thanks.

xiaofei
 
Old 08-01-2003, 10:00 AM   #12
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Glad to hear that you got the e-mail.

Now I did say above --

Quote:
Put the file in the directory specified by the environmental variable
XAPPLRESDIR, or put it in /etc/X11/app-defaults
Let me just explain how X11 programs (provided that they have been
correctly written by the programmer) obtain their resources, taken
from the approximate and incomplete sequence described in
the O'Reilly book "X User Tools" by Mui and Vercia

When the X11 program starts up it looks for entries in a file whose name is
the "class" of the application -- for rxvt, the class is Rxvt --

NB in each case below, replace class with the actual class name eg Rxvt

1) in the file /usr/lib/$LANG/app-defaults/class if it exists

2) in the file /usr/lib/X11/app-defaults/class if it exists
or on many systems in the file /etc/X11/app-defaults/class if it exists

3) if the environmental variable XUSERFILESEARCHPATH is set,
then it looks for the file $XUSERFILESEARCHPATH/class

4) if the environmental variable XAPPLRESDIR is set,
then it looks for the file $XAPPLRESDIR/$LANG/class
otherwise for the file $XAPPLRESDIR/class
otherwise for the file $HOME/$LANG/class
otherwise for the file $HOME/class

5) then it checks in the X server display RESOURCE_MANAGER property
resources are added to this using the command
xrdb - merge apps_default_file
To see what is present in RESOURCE_MANAGER user
xrdb -q

6) then it checks in the file $HOME/.Xdefaults if it exists

7) then it checks to see if the variable $XENVIRONMENT points to a file
and looks in that file

8) if XENVIRONMENT has not been set, then it checks for
$HOME/.Xdefaults-hostname

9) then it processes any command line options which always override
any of the settings above eg - fg color or -xrm 'Rxvt*foreground: color'


So my advise to you is rather than mess up what you have in the installed
system applications defaults directory /etc/X11/app-defaults (but you
can do so if you wish, its your system) created a directory

mkdir -p /usr/local/X11R6/app-defaults

and put your customized app-defaults in there, like the Rxvt file I sent you, and set the environmental variable XAPPLRESDIR to point to that directory

So if you are using sh, bash, or ksh as your login shell
put the following lines in your $HOME/.profile

if [ -n "${DISPLAY}" ]
then
XAPPLRESDIR="/usr/local/X11R6/app-defaults"
export XAPPLRESDIR
fi

or if your login shell is csh or tcsh,
put the following lines in your $HOME/.cshrc or $HOME/.tcshrc
(as appropriate)

if (${?DISPLAY} == 1) setenv XAPPLRESDIR "/usr/local/X11R6/app-defaults"

Once that is done, and you have sourced your .profile or .cshrc or
.tcshrc, then you will be able to fire up rxvt and it will read the defaults.

Again, I draw your attention to what I already described above as
to how to get color scheme specific versions of rxvt with applications
running in them

eg rxvt -name vi -e vi

and how to set up aliases for them in your .profile for the Bourne, Korn,
or Bash login shell.

So do you understand what is happening now when you fire up an
X11 application and how to set its application defaults resources?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make the terminal much beautiful? codejungle Linux - Software 5 02-13-2005 09:43 AM
Slackware's beautiful fonts t2701 Slackware 2 09-04-2004 09:59 PM
Beautiful artwork Kurt M. Weber General 5 02-01-2004 03:54 PM
I bombed my beautiful new Debian :( Bruce Hill Linux - Newbie 7 07-31-2003 02:20 AM
a beautiful makefile jrpretz Linux - General 2 06-04-2003 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration