You are not logged in.

#1 2011-02-12 07:52:36

Aesir
Member
Registered: 2011-02-03
Posts: 22

Urxvt color scheme

Hi everyone,

I have a rather simple problem that I can not figure out how to fix.  Certain pieces of text in urxvt are highlighted in black (e.g. when I restart a daemon, for example: /etc/rc.d/alsa restart).  This is an issue since my font color is already in black and I can therefore not see any of the text.  it should be a simple color configuration in my .Xdefaults but I have tried different combinations and can't solve it.  Could anyone point to the part of the file I should edit?  Thanks a lot!

#transparency - true or false (default)
URxvt*transparent:true

# tint with any color; i.e., blue, red, tomato4, olivedrab2, etc.
#   some nice listings are at:
#     http://www.nisrv.com/modules.php?name=Hex_Colors
#     http://www.htmlgoodies.com/tutorials/colors/article.php/3478921
URxvt*tintColor:white

# shading - 0 to 99 darkens, 101 to 200 lightens.
#   Don't use with tintColor; use a darker or lighter color instead.
#URxvt*shading:60

# scrollback buffer lines - 65535 is max (64 is default)
URxvt*saveLines:12000

# font color (default is black)
URxvt*foreground:black

# background color (prior to tinting) (default is white)
URxvt*background:white

# xft fonts - anti-aliased xft font setup is nice, but can be choppy
URxvt*font: xft:Bitstream Vera Sans Mono:pixelsize=13

# traditional fonts - a more traditional font setup in lieu of xft
#URxvt*font:-*-courier-medium-r-normal-*-*-140-*-*-*-*-iso8859-1
#URxvt*boldFont:-*-courier-bold-r-normal-*-*-140-*-*-*-*-iso8859-1

# Replace blue folder colors with a lighter shade for clarity. To
# set colored folders and files within urxvt, xterm, and aterm, add
# the following line to your ~/.bashrc ($HOME/.bashrc) file under
# the heading "# User specific aliases and functions":
#   alias ls="ls -h --color=auto"
URxvt*color4:      black
urxvt*color8:     #006400
urxvt*color9:     #330000
urxvt*color10:    red
urxvt*color11:    #4B0082
URxvt*color12:      #00009C
urxvt*color13:    #FF6103
urxvt*color14:    #5E2605
urxvt*color15:    black

# scrollbar - true (default) or false
URxvt*scrollBar:true

# scrollbar position - left=false (default) or right=true
URxvt*scrollBar_right:true

# scrollbar style - rxvt (default), plain, next, or xterm
URxvt*scrollstyle:plain

# scrollbar color
URxvt*scrollColor:#242424


# added for irssi
urxvt*perl-lib:         /usr/lib/urxvt/perl/
urxvt*perl-ext-common:  default,matcher
urxvt*matcher.button:   1
urxvt*urlLauncher:      /usr/bin/chromium
URxvt*cutchars:         `"()'*<>[]{|}

Last edited by Aesir (2011-02-12 07:52:46)

Offline

#2 2011-02-12 12:24:36

Meyithi
Member
From: Wirral, UK
Registered: 2009-06-21
Posts: 550
Website

Re: Urxvt color scheme


The mind roams more freely in empty rooms.
dwm - colours - ncmpcpp - system
irc://irc.freenode.net:meyithi

Offline

#3 2011-02-12 19:26:39

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Urxvt color scheme

Aesir wrote:

Hi everyone,

I have a rather simple problem that I can not figure out how to fix.  Certain pieces of text in urxvt are highlighted in black (e.g. when I restart a daemon, for example: /etc/rc.d/alsa restart).  This is an issue since my font color is already in black and I can therefore not see any of the text.  it should be a simple color configuration in my .Xdefaults but I have tried different combinations and can't solve it.  Could anyone point to the part of the file I should edit?  Thanks a lot!

Check out the link that was posted above.  You've got a few things in there that might be causing issues...

Also, you have set color15 and color4 to black when they should be white and blue respectively.  This can definitely cause problems, because some applications will assume the default colors are being used and will place white on black (color15 on color0); in your case the end result is black on black.


thayer williams ~ thayerwilliams.ca

Offline

#4 2011-05-19 16:22:37

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: Urxvt color scheme

just include URxvt*color0-15 in your .Xdefaults and check the colors with a bash color script for example:

#!/bin/bash
#

T='gYw'   # The test text

echo -e "\n                 40m     41m     42m     43m\
     44m     45m     46m     47m";

for FGs in '    m' '   1m' '  30m' '1;30m' '  31m' '1;31m' '  32m' \
           '1;32m' '  33m' '1;33m' '  34m' '1;34m' '  35m' '1;35m' \
           '  36m' '1;36m' '  37m' '1;37m';
  do FG=${FGs// /}
  echo -en " $FGs \033[$FG  $T  "
  for BG in 40m 41m 42m 43m 44m 45m 46m 47m;
    do echo -en "$EINS \033[$FG\033[$BG  $T  \033[0m";
  done
  echo;
done
echo

Offline

Board footer

Powered by FluxBB