gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gcmd-dev] custom dircolors in filelist pane


From: Michael
Subject: [gcmd-dev] custom dircolors in filelist pane
Date: Sat, 28 Apr 2007 20:00:44 +0200
User-agent: Alpenglühn 7.2

I checked gcmd option 'Colorize according to LS_COLORS'
and basically i can see nice colored filelists.
However, images and sound files are shown in an ugly pink 
(i guess they call it 'magenta') which is also hard to read.
That's the main file types i'm working with :|

This seems to be the dircolors inbuilt default. (This is part of
coreutils package in debian) However, i evaluate a custom 
dircolors file (eval `dircolors ~/.dir_colors`) in user login script 
which exports LS_COLORS like this,

~ mi: env | grep LS_

LS_COLORS=no=00;00:fi=01;00:di=01;34:ln=01;36:pi=01;33;40:so=01;07;34;42:bd=01;34;40:cd=01;35;40:*.cmd=01;31;40:*.sh=01;31;40:*.exe=01;31;40:*.com=01;31;40:*.btm=01;31;40:*.bat=01;31;40:*.tar=00;34;40:*.tgz=00;33;40:*.rpm=00;33;40:*.arj=00;33;40:*.taz=00;33;40:*.lzh=00;33;40:*.zip=00;33;40:*.z=00;33;40:*.Z=00;33;40:*.gz=00;33;40:*.bz2=00;33;40:*.jpg=01;32:*.jpe=01;32:*.jpeg=01;32:*.png=01;32:*.gif=01;32:*.tif=00;32:*.tiff=00;32:*.bmp=00;32:*.xbm=00;32:*.xpm=00;32:*.mp3=00;32:*.mp2=00;32:*.wav=00;32:*.ogg=00;32:*.flac=00;32:*.mov=00;32:*.wmv=00;32:*.mpeg=00;32:*.avi=00;32:*.fli=00;32:
LS_OPTIONS=--color=auto

and it works on tty and for xterm. You can see i set multimedia to green. 
(I can't compare gnome-terminal since it's doing it's own setup.)

.... so what ?

 m°


ps for the records, here's my dir_cololrs file

# Configuration file for the color ls utility
# Copied /etc/DIR_COLORS to .dir_colors in users $HOME directory
# to override the system defaults.
# You can set colors by the command: eval `'dircolors -b`'
# 2007 --mi

# 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 tty

# 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.
OPTIONS -F -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 screen
TERM xterm
TERM vt100

# 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;00    # global default, although everything should be something.
FILE 01;00      # normal file
DIR 01;34       # directory
LINK 01;36      # symbolic link
FIFO 01;33;40   # pipe
SOCK 01;07;34;42        # socket
BLK 01;34;40            # block device driver
CHR 01;35;40            # character device driver

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

# 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 '#')
#
# executables ( red )
.cmd 01;31;40
.sh 01;31;40
.exe 01;31;40
.com 01;31;40
.btm 01;31;40
.bat 01;31;40
# archives or compressed ( yellow )
.tar 00;34;40
.tgz 00;33;40
.rpm 00;33;40
.arj 00;33;40
.taz 00;33;40
.lzh 00;33;40
.zip 00;33;40
.z   00;33;40
.Z   00;33;40
.gz  00;33;40
.bz2 00;33;40
# multimedia formats (green)
# image formats
.jpg 01;32
.jpe 01;32
.jpeg 01;32
.png 01;32
.gif 01;32
.tif 00;32
.tiff 00;32
.bmp 00;32
.xbm 00;32
.xpm 00;32
# music formats
.mp3 00;32
.mp2 00;32
.wav 00;32
.ogg 00;32
.flac 00;32
# movie formats
.mov 00;32
.wmv 00;32
.mpeg 00;32
.avi 00;32
.fli 00;32









reply via email to

[Prev in Thread] Current Thread [Next in Thread]