Set Desktop Wallpaper in FVWM and other WM

Share your own howto's etc. Not for support questions!

Set Desktop Wallpaper in FVWM and other WM

Postby mvto » 2012-02-20 20:14

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
mvto
 
Posts: 15
Joined: 2010-04-14 13:49
Location: Monterey Bay Area, California, USA.

Re: Set Desktop Wallpaper in FVWM and other WM

Postby Loafers » 2012-10-30 00:20

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>
User avatar
Loafers
 
Posts: 24
Joined: 2009-09-06 03:39

Re: Set Desktop Wallpaper in FVWM and other WM

Postby adenukolnis » 2012-10-30 01:52

Loafers wrote:
Code: Select all
loafers@ubuntu:~$ xsetroot -solid #505075

ubuntu.....really.......thats sad.......

should be
xsetroot -solid '#505075'
or
xsetroot -solid "#505075"
adenukolnis
 
Posts: 459
Joined: 2012-02-24 18:36

Re: Set Desktop Wallpaper in FVWM and other WM

Postby Loafers » 2012-10-30 03:26

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!
User avatar
Loafers
 
Posts: 24
Joined: 2009-09-06 03:39


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable