Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 03-24-2007, 10:24 AM   #1
LQ Newbie
Registered: Jun 2003
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
Fluxbox help with default text apps background and foreground

I have a fairly fresh install of Fluxbox on my Gentoo desktop system. I am trying to configure the default colors used for xterms, gvim windows, and other textual applications. By default, if I open an xterm or run gvim, the background color is set to white and the foreground or text color is set to black. I want to reverse this.

I know you can set the fluxbox menu command for these applications to specific background and foreground colors using -bg and -fg (xterm -bg black -fg white), however this does not fix it by default; it only sets it for the menu selection.

I also set xterm*background: black and xterm*foreground: white in the .Xresources file. This sets the xterm behavior correctly, but does not fix any other app, like gvim or fbrun.

How can I set this by default? I assume there must be a way, since black on white is already set up. How can this be set for all apps? It is rather frustrating to have to set each menu choice with -fg -bg, and typing these each time in the xterm window also seems suboptimal to me.

Anyone have a clue to share with me?
Old 03-24-2007, 10:32 AM   #2
LQ Newbie
Registered: Jun 2003
Distribution: Gentoo
Posts: 2

Original Poster
Rep: Reputation: 0
Of course, I post.. then find the answer

I set up ~/.Xresources like this:
*background: black
*foreground: grey

then set my ~/.xinitrc with this:
xrdb -load $HOME/.Xresources
exec startfluxbox

and it works.


background, fluxbox, foreground, gentoo, linux, xorg

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
tty background/foreground color neo77777 Linux - General 11 11-25-2014 08:59 AM
Can Linux run in background with Win at foreground achtung_linux Linux - General 5 02-10-2007 08:54 PM
How to bring a background diamon to foreground lieuquocdat Linux - Software 8 07-20-2006 06:53 AM
Background and Foreground Datamike Linux - Software 2 01-20-2006 04:20 PM
How do I customize background/foreground colors in Eclipse? wearetheborg Linux - Newbie 0 09-10-2004 02:48 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration