LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2011, 01:05 AM   #16
derstephen
Member
 
Registered: Sep 2011
Location: Northern Colorado
Distribution: Slackware64
Posts: 79

Rep: Reputation: Disabled

Hi dEnDrOn,

Yeah that's the one. Just copy it as .dir_colors into your home directory and it will override the other ones. Right now all the color codes are for the 16-color scheme, which won't be taking advantage of the 256-color capability.

The first thing I would do is change the "COLOR tty" line to "COLOR all" so you actually see the colors on all your terminals. Then in the command line I would make sure I have 256 colors enabled with
Code:
tput colors
(you have Fedora so I'm pretty certain your default terminal will have them). If you don't you might have reconfigure the terminal with the 256 color option and recompile it (I had to with the SlackBuild of urxvt).

Anyway, then you can start making the changes. Note that 256 ANSI color codes have three fields instead of two, so your color codes will look something like 38;5;# where # is the number of the color (the 38;5 is just the foreground color attribute; see here for more on attributes). To see all the colors and their numbers, download this script and run it with
Code:
 perl ./colortest -w
.
And one last thing: When it comes time to change all those image files, you won't want to go through line by line by hand, so here's a handy sed command you can run right from the command line:
Code:
sed -i s/oldcolor/newcolor/g ~/.dir_colors
so to change all the image files from the default bold magenta (01;35) to a light pink (38;5;213) you would do
Code:
sed -i s/01;35/38;5;213/g ~/.dir_colors
.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-29-2011, 01:19 AM   #17
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i install windowmaker and use a custom desktop background and use xmms skins, but other than that, nothing.
 
Old 09-29-2011, 01:53 AM   #18
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 511

Original Poster
Blog Entries: 12

Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by derstephen View Post
Hi dEnDrOn,

Yeah that's the one. Just copy it as .dir_colors into your home directory and it will override the other ones. Right now all the color codes are for the 16-color scheme, which won't be taking advantage of the 256-color capability...{}..

thanks for the detailed help...I'd surely customize it...-_-
 
Old 09-30-2011, 08:44 AM   #19
Fordalex006
LQ Newbie
 
Registered: Sep 2011
Location: 3121 Nelm Street Alexandria, VA 22304
Posts: 3

Rep: Reputation: 0
Thank you for sharing ideas and information that have sense, I really appreciate your postings. this will help a lot of people who have the same problem. hope to see more helpful posting in the future. Luckily, as a posting bot, I don't bother reading what I respond to.

Last edited by XavierP; 09-30-2011 at 01:17 PM. Reason: Filling in the blanks. Thank me later.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] KDE4: Can I customize System Settings? lefty.crupps Linux - Desktop 3 03-29-2010 11:38 AM
customize linux action_owl Linux - General 5 02-09-2009 03:06 PM
how to customize system tray? caminoix Linux - Newbie 11 06-18-2005 11:29 AM
Who Customize Linux for an Embedded System usage? Rajaee Linux - Software 0 08-18-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:58 AM.

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