Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 18:07
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Change the grey background (JWM, Xorg) color? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 15 May 2012, 04:58    Post_subject:  Change the grey background (JWM, Xorg) color? [SOLVED]  

Hello,
I know how to set a jwm background type ( => solid, gradient color or image...) but don't know how to change/define the default grey background color of the desktop: the one that is "behind" and displayed, for example, when background image is accidentally missing...

Thank you.

Cordialement.

_________________


Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Tue 15 May 2012, 14:56    Post_subject:  

I do not think you can - its part of Xorg or Xvesa binary. Some of them have been changed to show black background instead of the gray one. So think you will have to live with the gray or find a Xorg or Xvesa build with the black background.
Back to top
View user's profile Send_private_message Visit_website 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Tue 15 May 2012, 19:15    Post_subject:  

Right click an icon - rox filer - options - pinboard - background.
_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send_private_message 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 16 May 2012, 05:16    Post_subject:  

Thank you.
@rjbrewer
The rox option, though it may be useful in some degree (when background image is missing for example!), is not what I am expected for. I need this background color to be displayed before running rox (login script directly launched from .xinitrc).

@goingnuts
... Unfortunately! Confused

Cordialement.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 16 May 2012, 06:02    Post_subject:  

Hello,
I found something that should probably work: using "xsetroot" program (present on Puppy) that allows user to tailor the appearance of the background ("root") window on a workstation display running X.

Problem: I didn't succeed in making it run whatever the chosen option:
    xsetroot -bg black (Use "black" as the background color).

    xsetroot -rv (This exchanges the foreground and background colors. Normally the foreground color is black and the background color is white).

    xsetroot -solid black (This sets the background of the root window to the specified color. This option is said to be only useful on color servers).

Shocked Sad

Has somebody any idea of what's going wrong?

Cordialement.

_________________

Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Wed 16 May 2012, 10:49    Post_subject:  

Try
Code:
xsetroot -solid SteelBlue

Color name must be present in /usr/X11R7/lib/X11/rgb.txt
To set at start up you can include the command in /root/.xinitrc
Code:
[ $(which xsetroot) ] && xsetroot -solid SteelBlue

Attached a static build of xsetroot - just rename the attachment to xsetroot and copy it to /usr/X11R7/bin.
xsetroot.gz
Description  static build of xsetroot
gz

 Download 
Filename  xsetroot.gz 
Filesize  90.39 KB 
Downloaded  134 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 17 May 2012, 05:08    Post_subject:  

Hello,
Thank you a lot!
Quote:
Color name must be present in /usr/X11R7/lib/X11/rgb.txt
black (without capital letter) is present in the list...
Quote:
To set at start up you can include the command in /root/.xinitrc
This is exactly what I did and I thought erroneously this command was not running properly. To be sure, I wrote "pink" in the command line and saw the color at startup, just during a very very short moment before getting the ugly Grey again... So, the problem is more complex indeed. This Grey is displayed between the color defined as background color with xsetroot and the picture defined as wallpaper itself...

Don't know where this Grey is coming from... Evil or Very Mad

I am temporally turning round the problem by setting Grey everywhere... Wink

Cordialement.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 17 May 2012, 05:13    Post_subject:  

Quote:
Attached a static build of xsetroot - just rename the attachment to xsetroot and copy it to /usr/X11R7/bin.
Please, what does exactly "static build of xsetroot" mean?
Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: Thu 17 May 2012, 08:05    Post_subject:  

Quote:
Please, what does exactly "static build of xsetroot" mean?
means that it have no dependencies - no external libraries needed - standalone application...

Maybe try this: After booting to your graphical desktop open rxvt. Kill ROX-Filer by this command: "Killall ROX-Filer". Now your Xorg background should be visible - what color? Then set the background color with xsetroot (command: xsetroot -solid SteelBlue). Do you get the new background color?
Back to top
View user's profile Send_private_message Visit_website 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 17 May 2012, 09:33    Post_subject:  

Hello,
Thank you for explanation.
Quote:
Maybe try this: After booting to your graphical desktop open rxvt. Kill ROX-Filer by this command: "Killall ROX-Filer". Now your Xorg background should be visible - what color? Then set the background color with xsetroot (command: xsetroot -solid SteelBlue). Do you get the new background color?
Good idea: this gave me the way to proceed and to ask correctly the question.
When I killed (killall - without capital letter! Wink) ROX, nothing happened. First, my wallpaper was normally displayed and I couldn't see the background color, even after running the xsetroot command. So I set a simple non tiled pattern as background image, and... background around was... Grey.
Now, I know this has nothing to do with xsetroot, any ROX option or even JWM, though it is useful to know how to configure them. This is my wallpaper setter that displays this default ugly Grey...

Cordialement.

_________________

Back to top
View user's profile Send_private_message Visit_website 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: Thu 17 May 2012, 14:27    Post_subject:
Sub_title: neutral
 

hi Argolance - meh, the native wallpaper-setter does use the roxpin in some fashion if I recall correct..

grey (or gray85) is simply neutral, using any rgb-listed gives the solids and gray## is a way to fine-tune the neutral (lower ## is darker). fwiw, xorg default rootwindow appears as a solid deep black for me while Xvesa (the simple kdrive server, not xorg's xvesa option) gives a sort of fine chainlink texture on my CRT display .. about as basic as it gets for the rootwindow. Grey is likely for those who like something other than a black 'void' ..

Personally I'm not a big fan of rox setting the bg other than a temporary roxpin (it does have some effect on other bgsetters if killed, so I generally do a menu-cmd to return things to normal so shading & tint work in a console) Neutral

As for disabling rox pinboard when X loads (if you didn't already know), comment out lines in .xinitrc with PuppyPin in them. I mostly do bg-setters in a custom script in /root/Startup (since different window managers have different needs).

Edited_time_total
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4339
Location: Gatineau (Qc), Canada

PostPosted: Thu 17 May 2012, 14:29    Post_subject:  

Bonjour, Argolance.

From my little experience, I believe there are actually three levels of backgrounds:

1 - the one set by xsetroot, which is taken care of by the /root/.xinitrc script
2 - an intermediate one, which is used by conky in normal window mode (Also stalonetray, maybe other programs.)
3 - the background used by ROX-Filer

I'll tell you how I get a independent background for the conky program; this may help you with your own research. (See example below.)

In the .xinitrc script I introduced these lines, at line 156 (in my version of .xinitrc, anyway). In any case, it believe it should come before the window manager choices.

Code:

# Ajout par musher0, pour faire un fond pour conky, ce qui permet de le
# traiter comme une fenêtre ordinaire.
[ -f /usr/local/bin/xli ] && xli -onroot -fullscreen -gamma 3.3 /usr/share/backgrounds/rapides_inuksuak1204b-fonce.jpg
# /usr/share/backgrounds/sirio_pearl_oyster_shell_60-1280x1024-inv.png
# Autres choix :
### "`cat /root/.config/wallpaper/bg_img`"
### /usr/share/backgrounds/chocolat-xli.png
### /usr/share/backgrounds/444-bleu-3.png
### /usr/share/backgrounds/small_wallpapers/Stardust2-vert-2-128x.jpg &
sleep 1.5s


I'll add the pet for xli a little later, when I have retraced where I have put the pet on my drive!

For now a few explanations of the code above:
- we check if xli exists, BK style
- then we use parameters to process the chosen picture
=> -onroot means "use this picture as background"
=> -fullscreen means "enlarge the chosen picture to fit the screen". (Careful, here. xli also has the -fillscreen parameter, but it does produce satisfactory results for this purpose.)
=> -gamma 3.3 means "darken the image to gamma factor 3.3"

I have included a few other examples. One of note is the
"`cat /root/.config/wallpaper/bg_img`"
as in
Code:
xli -onroot -fullscreen "`cat /root/.config/wallpaper/bg_img`"


This means that you can use the rox background with xli. The overall effect of this is one of pseudo-transparency. Since you have background levels 1) and 2) with the same picture, if level 3) (the rox background) is not on or is missing, level 2) will show the same picture anyway.

xli is a rich program, but it is a console program. See attached for a summary of xli commands.

The other examples indicated use small 32 pixels images that I have created and which are blown up to fill the screen. So I can have a "chocolatey" or a type of blue or a monochorme background if I wish instead of a real photograpĥ.

The "sleep" command at the bottom of this section of script is necessary (at least on my older computer) because xli take that long to process the picture.

I hope this helps.

Have a great day! / Je te souhaite une excellente journée !
fond-avec-conky.jpg
 Description   conky and stalonetray showing independent background level 2), beneath the ROX background.
 Filesize   30.98 KB
 Viewed   786 Time(s)

fond-avec-conky.jpg

xli-help.jpg
 Description   Summary of xli commands
 Filesize   62.62 KB
 Viewed   787 Time(s)

xli-help.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4339
Location: Gatineau (Qc), Canada

PostPosted: Thu 17 May 2012, 14:44    Post_subject:  

Rebonjour ! / Hello again!

Here is the xli pet I mentioned earlier.

Best regards.
xli-1.17.0.pet
Description  On-root and general image manipulation program, for use in console. Can also generate slideshows.
pet

 Download 
Filename  xli-1.17.0.pet 
Filesize  130.7 KB 
Downloaded  131 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4339
Location: Gatineau (Qc), Canada

PostPosted: Thu 17 May 2012, 16:01    Post_subject:  

Hello again, argolance.

A footnote to rjbrewer's post about roxpin.

If you go to /usr/local/apps/ and you right-click on the "ROX-Filer" directory icon (do not go inside this directory), the top two choices are
Activate pin (activer punaiseur)
De-activate pin (désactiver punaiseur)

If you de-activate it, you will see the background set by xli (see above post, and attached picture) or -- if you are not using xli -- a monochrome color.

Now, if you re-activate it, you will see another monochrome color, but not the image defined by PuppyPin. To see your usual PuppyPin, you have to issue this command:
Code:
rox -p=/root/Choices/ROX-Filer/PuppyPin
from console.
In other words indicate the full path to the file "PuppyPin" used by Puppy.

I leave you to ponder these possibilities. / Je laisse ces possibilités à ta réflexion.

Au revoir. / BFN.
default-roxpin_no-xli.jpg
Description  default rox-pin. In this case, it does not matter if you are using a secondary background defined by xli or not.
jpg

 Download 
Filename  default-roxpin_no-xli.jpg 
Filesize  81.2 KB 
Downloaded  143 Time(s) 
no-roxpin_no-xli.jpg
 Description   Rox-pin de-activated, and not using xli
 Filesize   99.92 KB
 Viewed   781 Time(s)

no-roxpin_no-xli.jpg

no-roxpin.jpg
 Description   Rox-pin de-activated, but showing secondary background defined by xli in .xinitrc
 Filesize   40.43 KB
 Viewed   738 Time(s)

no-roxpin.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
Argolance


Joined: 06 Jan 2008
Posts: 1847
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 18 May 2012, 13:16    Post_subject:  

Hello,
Waou! Very Happy
I was not waiting for such an avalanche of precious answers! Thank you so much `f00 & musher0 Wink : this thread should be a relevant source of information about the way to identify the different kinds of backgrounds and to configure them properly!
I played a bit with xli, tried this and that... and finally found what was the reason of this unwanted Grey background color!
Curiious?
... In my .xinitrc file, I just have to comment the lines that make kcommgr (transparency effects manager) running at startup... and my amazing black background stays in place.... So, I moved the command inside a batch file that I copied into the /root/Startup directory for kcompmgr to run after my wallpaper to be set.

Cordialement.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1113s ][ Queries: 13 (0.0096s) ][ GZIP on ]