You are not logged in.

#1 2007-07-24 04:37:19

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

set background wallpaper (SOLVED)

in GNOME it was easy to set background by just right clicking on the desktop and choosing a wallpaper. now i no longer use Desktops, rather i use a Window Manager, "stumpwm" or "ratpoison" and there are no menus in Window Managers

i even read the man page of "xsetroot" but that deals with "bmp" images only. i have wallpapers in jpeg/png format. how can i set the background using them?

Last edited by geek.arnuld (2007-07-24 08:01:52)

Offline

#2 2007-07-24 04:51:16

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: set background wallpaper (SOLVED)

check the openbox wiki page about feh. same goes for all WM's


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2007-07-24 06:59:02

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: set background wallpaper (SOLVED)

I use feh. Put something like this in ~/.fehbg

feh --bg-scale /path/to/your/image.jpg

And then use

eval `cat ~/.fehbg`

in your .xinitrc or openbox's autostart.sh file.


To get something done, a committee should consist of no more than three persons, two of them absent.
--
Twitter Github

Offline

#4 2007-07-24 07:57:28

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: set background wallpaper (SOLVED)

onearm wrote:

I use feh. Put something like this in ~/.fehbg

feh --bg-scale /path/to/your/image.jpg

And then use

eval `cat ~/.fehbg`

in your .xinitrc or openbox's autostart.sh file.

sorry, it does not work.i still get a black background :-(

-------- ~/.fehbg -----------------
feh --bg-scale /home/arnuld/.local/wallpapers/background

---------- ~/.xinitrc --------------
# set background
eval 'cat ~/.fehbg'

# exec wmii
# exec ratpoison
exec /usr/local/bin/stumpwm
# exec wmaker


NOTE: "background" is just a symbolic link to the original wallpaper

Offline

#5 2007-07-24 08:01:35

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: set background wallpaper (SOLVED)

geek.arnuld wrote:
onearm wrote:

I use feh. Put something like this in ~/.fehbg

feh --bg-scale /path/to/your/image.jpg

And then use

eval `cat ~/.fehbg`

in your .xinitrc or openbox's autostart.sh file.

sorry, it does not work.i still get a black background :-(

-------- ~/.fehbg -----------------
feh --bg-scale /home/arnuld/.local/wallpapers/background

---------- ~/.xinitrc --------------
# set background
eval 'cat ~/.fehbg'

# exec wmii
# exec ratpoison
exec /usr/local/bin/stumpwm
# exec wmaker


NOTE: "background" is just a symbolic link to the original wallpaper

OK, i got it. it was my mistake i entered this:

'

instead of

`

thanks anyway

Offline

#6 2007-07-24 08:59:48

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: set background wallpaper (SOLVED)

geek.arnuld wrote:

exec /usr/local/bin/stumpwm

its recommended to install all applicatons via pacman using pkgbuilds. arch doesnt install anything on /usr/local
writing pkgbuilds for applications not already done also means u can contribute by uploading them to AUR wink

Last edited by dolby (2007-07-24 09:02:27)


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#7 2007-07-24 10:10:05

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: set background wallpaper (SOLVED)

dolby wrote:

its recommended to install all applicatons via pacman using pkgbuilds. arch doesnt install anything on /usr/local

i installed that myself as Stumpwm was not available in pacman. Stumpwm is written in Common Lisp. i use it because i do not feel any difficulty in setting-up configuration files in my favourite language :-)


dolby wrote:

writing pkgbuilds for applications not already done also means u can contribute by uploading them to AUR wink

ok, i will try that :-)

Offline

#8 2007-07-24 10:23:18

geek.arnuld
Member
From: INDIA
Registered: 2007-05-03
Posts: 135
Website

Re: set background wallpaper (SOLVED)

i was still interested if somebody can tell me "how to set a PNG/JPEG wallpaper as background on a window manager using "xsetroot" or "xsetbg"

BTW, "xsetbg" and "xloadimage' commands do not exist on my system .  Why ?

Offline

#9 2007-07-24 12:28:27

1311219
Member
From: Sweden
Registered: 2007-01-09
Posts: 121

Re: set background wallpaper (SOLVED)

AFAIK, xsetroot can only use bitmaps for window pattern, so you will either have to convert the image to bmp to use it with xsetroot, or you can convert the file to a raw format, and render/write them to the root window - the second one would be the recommended solution, and will require you to use a separate program to decompress the image, and to render them directly on the root window.

Conveniently, many image viewers support rendering images as background, so you will only need to tell the image viewer to render it as background (like the -x parameter to qiv, and the --bg-scale to feh).

Offline

Board footer

Powered by FluxBB