LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-09-2004, 03:58 AM   #1
Pwcca
Member
 
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169

Rep: Reputation: 30
No more black fonts por favor?


Ok, i'm using a "transparent" aterm and I prefer black or at least very dark desktops. I am having trouble changing the color assignments for files and directories for my terminals.

I have edited /etc/DIR_COLORS and ~/.dir_colors changing all references to any black fonts to white or grey. I am sill coming up with regular files being represented by black fonts, and consequently... I can't see them.

Can anyone tell me what I'm missing?

Thx.


Quote:
# Configuration file for the color ls utility
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.

# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
# off.
COLOR all

# Extra command line options for ls go here.
# Basically these ones are:
# -F = show '/' for dirs, '*' for executables, etc.
# -T 0 = don't trust tab spacing when formatting ls output.
# -b = better support for special characters
OPTIONS -F -b -T 0

# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM xterm
TERM vt100
TERM screen
TERM aterm

# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
EIGHTBIT 1

# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00;37 # global default, although everything should be something.
FILE 00;37 # normal file
DIR 04;37 # directory
LINK 01;36 # symbolic link
FIFO 40;33 # pipe
SOCK 01;35 # socket
BLK 47;33;01 # block device driver
CHR 47;33;01 # character device driver
ORPHAN 47;31;01 # symlink to nonexistent file

# This is for files with execute permission:
EXEC 01;32

# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
.cmd 01;32 # executables (bright green)
.exe 01;32
.com 01;32
.btm 01;32
.bat 01;32

.tar 01;31 # archives or compressed (bright red)
.tgz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.bz2 01;31
.rpm 01;31
.deb 01;31
.z 01;31
.Z 01;31
.gz 01;31

.jpg 01;35 # image formats
.gif 01;35
.bmp 01;35
.ppm 01;35
.tga 01;35
.xbm 01;35
.xpm 01;35
.tif 01;35

.mpg 01;37 # movie formats
.avi 01;37
.mov 01;37

.mp3 01;33
.ogg 01;33
.flac 01;33
.flc 01;33

Last edited by Pwcca; 02-09-2004 at 04:00 AM.
 
Old 02-09-2004, 01:19 PM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi,

do you have somewhere a script, i suppose now a bash shell, .bashrc with
eval "dircolors -b" ????
This will create the environment variables required for color ls output. It is necessary to update the colors...

do you use an alias for ls??? something like ...
alias ls "ls --color=always" ???
This is not necessary and can make the colors don't work..

Regards

Slackie
 
Old 02-09-2004, 01:27 PM   #3
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
I think it's far easier to start from this angle: background of aterm is black, foreground text is white.

Speaking of which, what are your current aterm settings?
 
Old 02-09-2004, 01:30 PM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
he wrote already that he is using a transparent aterm background with dark desktops wallpaper...
 
Old 02-09-2004, 01:33 PM   #5
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
I assumed it's not 100% transparent.

Black background with ~40-70% transparency works fine for most dark backgrounds.
 
Old 02-09-2004, 02:48 PM   #6
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by slackie1000
he wrote already that he is using a transparent aterm background with dark desktops wallpaper...
I'm thinking that's not exactly what snacky was getting at. You can have a 100% transparent aterm on a black wallpaper, but it's going to assume your term background is the default white, and display darker fonts. If you set your aterm background to black, regardless of whether you can't see the blackness, aterm won't display fonts in black. At least I've never seen a black font, and I haven't touched any dircolors.
 
Old 02-09-2004, 02:53 PM   #7
BlankFrank
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Suse 9.2 (AMD64) / Mandrake 10
Posts: 62

Rep: Reputation: 15
Hi folks

sorry to jump in

I'd like to start using aterm instead of konsole cos I like the idea of having the console tranparent or at least semi-transparent. One thing though - can you cut and paste with aterm - cos I can't find it if you can.

And - how do you assign colours (and tranparency for that matter) to aterm.

Thanks!
 
Old 02-09-2004, 03:18 PM   #8
Pwcca
Member
 
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by mikshaw
I'm thinking that's not exactly what snacky was getting at. You can have a 100% transparent aterm on a black wallpaper, but it's going to assume your term background is the default white, and display darker fonts. If you set your aterm background to black, regardless of whether you can't see the blackness, aterm won't display fonts in black. At least I've never seen a black font, and I haven't touched any dircolors.
I never thought of that. I will give it a try. My arguments when I start aterm are simply

aterm -tr

However, I would like to be able to maintain 100% "transparency"

Aterm adjusting for the terminal background colors would explain why these pesky black fonts dont show up when i'm using bash and not in X, no?
 
Old 02-09-2004, 03:24 PM   #9
Pwcca
Member
 
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169

Original Poster
Rep: Reputation: 30
Ok, I tried it and it doesnt work.

If i use a pure black background ala aterm -bg black , then I can't see the black fonts that are there. I tried it with tinting and transparancy and the black fonts are still there. Are you sure it's not .dir_colors?
 
Old 02-09-2004, 03:38 PM   #10
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
ok,

pwcca, do you have a .dir_colors file in your home?
if you have, this just mean that /etc/DIRCOLORS will be overwritten...
the fact is, if you have or not, you need to assign environment variables
you can to that with the command...
eval 'dircolors -b'
this wil "create" LS_COLORS and LS_OPTIONS ...
with that you can have your colors...
it does not matter if you use /etc/DIRCOLORS .dir_colors /whatever/DIRCOLORS...
you should tell to "ls" to get those colors from somewhere...
the possibility, cause it is not the only one, that i know is to assing environment variables with eval command...
if there is some misunderstanding let me know..

Regards

Slackie
 
Old 02-09-2004, 03:49 PM   #11
stirling
Member
 
Registered: Feb 2004
Distribution: LFS, Ubuntu
Posts: 52

Rep: Reputation: 16
"can you cut and paste with aterm"
highlight is copy, shift+insert is paste

"And - how do you assign colours (and tranparency for that matter) to aterm."
man aterm

mine looks like so:
aterm -g 118x44+70+0 -tr +sb -sl 400 -ls -fg rgb:ff/ff/f0 -fn vga

window geometry, transparent, no scrollbar, 400 line scrollbuffer, login shell, ivory text, vga font

you might want to look at the reverse video option, too.
 
Old 02-09-2004, 03:52 PM   #12
BlankFrank
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Suse 9.2 (AMD64) / Mandrake 10
Posts: 62

Rep: Reputation: 15
Much appreciated!
 
Old 02-09-2004, 04:39 PM   #13
Pwcca
Member
 
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by slackie1000
ok,

pwcca, do you have a .dir_colors file in your home?
if you have, this just mean that /etc/DIRCOLORS will be overwritten...
the fact is, if you have or not, you need to assign environment variables
you can to that with the command...
eval 'dircolors -b'
this wil "create" LS_COLORS and LS_OPTIONS ...
with that you can have your colors...
it does not matter if you use /etc/DIRCOLORS .dir_colors /whatever/DIRCOLORS...
you should tell to "ls" to get those colors from somewhere...
the possibility, cause it is not the only one, that i know is to assing environment variables with eval command...
if there is some misunderstanding let me know..

Regards

Slackie
Slackie,

I'm not sure if this is exclusive to Slackware, but I have /etc/DIR_COLORS and also ~/.dir_colors. I sym link both files to a single dir_colors file that resides with my other global settings. That file is inluded with my first post.

Interestingly, I just discovered that neither of these files are being used to assign colors. I changed a few color assignments, restarted aterm -tr -e /bin/bash --login and no change at all.

Are there any other files that could effect colors?
 
Old 02-09-2004, 10:42 PM   #14
Pwcca
Member
 
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169

Original Poster
Rep: Reputation: 30
Problem solved.

I've been using aterm as my terminal in X. aterm must be listed as
TERM xrvt
in ~/.dir_colors because it is based on xrvt.

That is why my color changed were not being affected.

Thanks everybody for the input.
 
Old 02-09-2004, 10:49 PM   #15
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
w00t!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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




All times are GMT -5. The time now is 06:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration