Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Set Desktop Wallpaper in FVWM and other WM

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
mvto
Posts: 15
Joined: 2010-04-14 13:49
Location: Monterey Bay Area, California, USA.

Set Desktop Wallpaper in FVWM and other WM

#1 Post by mvto »

Code to set desktop wallpaper with FVWM and possibly other Linux Window Managers. It works for Openbox, Fluxbox and FVWM.

Install feh
then after the prompt:

Code: Select all

feh --bg-scale /path to background/image.png

To tile the image:

Code: Select all

feh --bg-tile “/path/to/image”
To centre the image:

Code: Select all

feh --bg-center “/path/to/image”

The next example

Code: Select all

 sudo fvwm-root --retain-pixmap /path to background/image.png
That sets the wallpaper for just this session.

I use GIMP or ImageMagick to convert images from jpg to png for FVWM.
Nautilus caused my PC to freeze; but the above code has worked fine.

If you just want to make your screen background a solid color you can use the following command after the prompt:

Code: Select all

xsetroot -solid color
replace the word color with the color you want the screen to be.

Here is an additional way to set your wallpaper at least in Fluxbox. The above methods worked in FVWM, Openbox and Fluxbox Window Managers.
Use feh in your current directory where the picture is that you want for the background image and put in the following code; that will set your wallpaper.

Code: Select all

  $ wpsetters=feh fbsetbg image.png
To set your wallpaper to load automatically when you start your computer you can use "autostart" in the OpenBox Window Manager.
Make a file titled autostart with the following in it

Code: Select all

feh --bg-scale /directories to image location.png &
For example

Code: Select all

 feh --bg-scale /home/go/wallpapers/seagulls.png
where in seagulls.png is the image file and before that are the directories leading up to it.
Then restart the PC and upon starting up the desktop wallpaper image will load.

I also put conky& in the autostart file; so both conky and the background image wallpaper load upon start up. You need to put the "&" after your command.
Nettop Zino HD 400 (Dell) 3.5” 7200RPM HD
AMD Athlon X2 3250e 1.6Ghz,
8GB, HD 500GB, Graphics ATI Mobility Radeon HD3200
Debian Sqeeze, Xubuntu, Microsoft Windows Vista. Openbox, FVWM, Fluxbox, e16, e17 Window Managers.

User avatar
Loafers
Posts: 24
Joined: 2009-09-06 03:39

Re: Set Desktop Wallpaper in FVWM and other WM

#2 Post by Loafers »

mvto wrote:If you just want to make your screen background a solid color you can use the following command after the prompt:

Code: Select all

xsetroot -solid color
replace the word color with the color you want the screen to be.
is there a way to do this with a hex triplet?

I keep on getting an invalid argument :(:

Code: Select all

loafers@ubuntu:~$ xsetroot -solid #505075
usage: xsetroot [options]
  where options are:
  -display <display>   or   -d <display>
  -fg <color>   or   -foreground <color>
  -bg <color>   or   -background <color>
  -rv   or   -reverse
  -help
  -def   or   -default
  -name <string>
  -cursor <cursor file> <mask file>
  -cursor_name <cursor-font name>
  -xcf <ARGB cursor file> <cursor size>
  -solid <color>
  -gray   or   -grey
  -bitmap <filename>
  -mod <x> <y>

adenukolnis
Posts: 459
Joined: 2012-02-24 18:36

Re: Set Desktop Wallpaper in FVWM and other WM

#3 Post by adenukolnis »

Loafers wrote:

Code: Select all

loafers@ubuntu:~$ xsetroot -solid #505075
ubuntu.....really.......thats sad.......

should be
xsetroot -solid '#505075'
or
xsetroot -solid "#505075"

User avatar
Loafers
Posts: 24
Joined: 2009-09-06 03:39

Re: Set Desktop Wallpaper in FVWM and other WM

#4 Post by Loafers »

adenukolnis wrote:
Loafers wrote:

Code: Select all

loafers@ubuntu:~$ xsetroot -solid #505075
ubuntu.....really.......thats sad.......
:twisted:
adenukolnis wrote:should be
xsetroot -solid '#505075'
or
xsetroot -solid "#505075"
thanks :D!

Post Reply