Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux palette colors in aterm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
r4st3r
n00b
n00b


Joined: 23 Jul 2004
Posts: 15

PostPosted: Fri Oct 08, 2004 5:41 pm    Post subject: linux palette colors in aterm Reply with quote

Hi everyone,

A real quick post that will hopefully solve problems for people wanting the actual linux console colors in their aterms. Yes, the exact colors from /etc/DIR_COLORS that .bashrc reads from--not some, "well it's close enough, or these are nice too" colors. Wanting to do this very thing I went over a bunch of posts and learned quite a bit. I also checked out the docs for aterm under /usr/share/docs. I tried a to experiment on my own with colors, and spent entirely too much time copy and pasting other peoples' .Xdefaults. Finally, I had an epiphany.

In gnome-terminal's profile editing dialogue you can opt to make your own custom palette or preselect built-in color schemes. Part of my gome setup is to pick "linux colors" with a white on black theme. It occured to me that I could probably click on the palette colors and get the right values. So, to make a long story short, here's my ~/.Xdefaults file. Problem solved for everyone wanting the exact linux colors in their aterms.

Code:

# ~/.Xdefaults
# Aterm Terminal Settings

aterm*loginShell:true
aterm*transparent:true
aterm*shading:30
aterm*scrollBar:true
aterm*scrollBar_right:true
aterm*transpscrollbar:true

# 786 lines = 500 KB of memory
aterm*saveLines:786

# Aterm Font Settings, selected using 'xfontsel'

aterm*font:-xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-1
aterm*boldFont:-xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-1

# Aterm Color Settings

aterm*background:  black
aterm*foreground:  white
aterm*cursorColor: white

# I got these colors from using gnome-terminal's color
# dialogue. under Palette, i selected 'linux console'
# and just middle-mouse copied the values over--a swell hack

aterm*color0:      #000000
aterm*color1:      #AA0000
aterm*color2:      #00AA00
aterm*color3:      #AA5500
aterm*color4:      #0000AA
aterm*color5:      #AA00AA
aterm*color6:      #00AAAA
aterm*color7:      #AAAAAA
aterm*color8:      #555555
aterm*color9:      #FF5555
aterm*color10:     #55FF55
aterm*color11:     #FFFF55
aterm*color12:     #5555FF
aterm*color13:     #FF55FF
aterm*color14:     #55FFFF
aterm*color15:     #FFFFFF


Works like a champ. Take care.
Back to top
View user's profile Send private message
Farkenell
Tux's lil' helper
Tux's lil' helper


Joined: 05 Dec 2003
Posts: 88

PostPosted: Sat Oct 09, 2004 8:30 pm    Post subject: Reply with quote

Hrmm...I'm using that as my ~/.Xdefaults but I think something higher up is overriding it....cause I'm not getting any colours on ls (executables, etc)....

anyone able to help out?
Back to top
View user's profile Send private message
r4st3r
n00b
n00b


Joined: 23 Jul 2004
Posts: 15

PostPosted: Sun Oct 10, 2004 8:47 am    Post subject: Reply with quote

Could you post your .bashrc, that's almost has to be what's wrong.

-take care
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Sun Oct 10, 2004 10:14 am    Post subject: Reply with quote

Farkenell wrote:
Hrmm...I'm using that as my ~/.Xdefaults but I think something higher up is overriding it....cause I'm not getting any colours on ls (executables, etc)....

anyone able to help out?


have you set an alias up for ls so it is ls --color
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
r4st3r
n00b
n00b


Joined: 23 Jul 2004
Posts: 15

PostPosted: Wed Oct 27, 2004 10:36 am    Post subject: .bashrc Reply with quote

Yeah, ls needs the color alias. For example, here's my .bashrc

Code:

# /etc/skel/.bashrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $

# This file is sourced by all *interactive* bash shells on startup.  This
# file *should generate no output* or it will break the scp and rcp commands.

# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
alias la="ls --color -a"

export PATH="$PATH:/sbin:/usr/sbin:~/bin"

# Change the window title of X terminals
case $TERM in
   xterm*|rxvt|Eterm|eterm)
      PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
      ;;
   screen)
      PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
      ;;
esac

##uncomment the following to activate bash-completion:
#[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion



Hope this helps. Take care.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
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