Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

aterm background

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
adssse
Posts: 71
Joined: 2006-01-17 05:36

aterm background

#1 Post by adssse »

I was wondering how to change aterm so that it automatically has a black background and white foreground. I have searched on the net but they refer me to .Xdefaults, which I cannot locate using ls -a. I found that I can execute it as

Code: Select all

aterm -bg black -fg white
but I would like it to do this automatically when I open it. Thanks for any assistance.

Scotti
Moderator Team Member
Moderator Team Member
Posts: 305
Joined: 2005-11-08 01:13

#2 Post by Scotti »

You may create ~/.Xdefaults yourself and put that line in it.

Code: Select all

$ echo "aterm -bg black -fg white" > ~/.Xdefaults
Another solution is to edit wherever you launch aterm from. For example, if you click on a desktop icon, edit the launch line from "aterm" to "aterm -bg black -fg white".

Here's an article on tweaking more aterm settings.

adssse
Posts: 71
Joined: 2006-01-17 05:36

#3 Post by adssse »

Thanks for your reply. I checked out the link you provided and followed what it said. I created .Xdefaults in my home directory and entered the following lines

Code: Select all

 aterm*background: black
aterm*foreground: white
I also tried entering:
aterm -bg black -fg white

After doing this aterm still starts up with a white background and black text. I am using Sarge and fluxbox and have tried starting aterm from the menu and command line with no luck. I must be doing something wrong but I am not sure what.[/code]

Scotti
Moderator Team Member
Moderator Team Member
Posts: 305
Joined: 2005-11-08 01:13

#4 Post by Scotti »

That's weird the .Xdefaults didn't work.

One thing you should make sure of is if you're editing the correct menu file. The default Fluxbox menu is generated in /etc/X11/fluxbox, called fluxbox-menu. If you haven't already, copy that menu to your home fluxbox directory and rename to "menu".

Code: Select all

$ cp /etc/X11/fluxbox/fluxbox-menu ~/.fluxbox/menu
After this edit /etc/X11/fluxbox/init as root to make sure Fluxbox uses the menu in your home directory when you log in as your user. A line near the bottom should look like this:

Code: Select all

session.menuFile: ~/.fluxbox/menu
So from now on edit ~/.fluxbox/menu if you want to make any changes to your menu.

Here's my menu entry which makes aterm look pretty cool:

Code: Select all

aterm -sl 3000 -tr -trsb -si -sk -sh 60 -fg white -bg black -fn fixed

Scotti
Moderator Team Member
Moderator Team Member
Posts: 305
Joined: 2005-11-08 01:13

#5 Post by Scotti »

One other thing I just remembered. I had problems getting Fluxbox to make my custom changes with whichever version of Fluxbox is used with Sarge. This might not be the issue with aterm, but I'm running Sid which includes the latest version of Fluxbox (0.9.14-1). I've had no issues with it so far.

Maybe try upgrading to Sid if you're not using a production machine? Just a thought.

User avatar
Lux
Posts: 474
Joined: 2006-01-25 13:00
Location: Finland

#6 Post by Lux »

After doing this aterm still starts up with a white background and black text.
Looks like your ~/.Xdefaults isn't being read. If you use some startup file to start fluxbox (like ~/.xinitrc or ~/.xsession) you could try adding there the following line:

Code: Select all

xrdb -load $HOME/.Xdefaults
Or you could rename ~/.Xdefaults to ~/.Xresources and see if that makes any difference. I use ~/.Xresources and it works fine.

Here's the aterm section from my ~/.Xresources:

Code: Select all

XTerm*saveLines: 10000                                                                                                       
aterm*foreground: white                                                                                                      
aterm*background: black                                                                                                      
aterm*font: terminus-iso8859-15-14                                                                                           
aterm*transparent: true                                                                                                      
aterm*transpscrollbar:true                                                                                                   
aterm*shading: 60
This configuration uses the "pseudo transparency" for aterm's background and scrollbar and the iso8859-15 coded size 14 fonts from the xfonts-terminus package (see "xlsfonts | more" to list the available fonts on your system).
"Hit the philistines three times over the head with the Elisp reference manual."
-- Michael A. Petonic --

Harold
Posts: 1482
Joined: 2005-01-07 00:15
Been thanked: 3 times

#7 Post by Harold »

You are attempting to launch aterm in reverse video mode, so you want to use the -rv switch in the command line. To have this done automatically, you want to add the following alias to ~/.bashrc.

alias aterm='aterm -rv'

Then do . ~/.bashrc to instruct bash to rescan this file. (Or, do what a Windows user would do: log out and log back in.)

adssse
Posts: 71
Joined: 2006-01-17 05:36

#8 Post by adssse »

I was able to get aterm working the way I wanted it to by using the ~/.Xresources method (even tried a few different colors woohoo). I noticed that in /etc/X11/Xsession.options it specifies allow-user-resources, but doesnt say anything about defaults. Is this the reason why .Xresources would work and .Xdefaults would not? I am happy with the way it is working, I am just curious. Thanks again for everyones help, I learned quite a bit.

Post Reply