You are not logged in.

#1 2008-01-11 08:03:30

isolier
Member
Registered: 2008-01-10
Posts: 24

feh Not setting background image[SOLVED]

I don't know what is going on but feh absolutely refuses to set the bg image on x starting up.  I can set it manually just fine but it will not reset it on xstart.  Here is my .xinitrc:

\#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
#exec xterm
exec openbox-session
eval 'cat ~/.fehbg' &

And ~/.fehbg has the command that I use to set the background, which works just fine if I execute the command after I am in x so I have no idea why it isn't working.  Every resource I have looked at on the net says to simply add the "eval 'cat ~/.fehbg' &" line to .xinitrc after you set the background image with feh but I cannot for the life of me figure out what is going on.  Thanks in advance.

Last edited by isolier (2008-01-11 08:55:41)

Offline

#2 2008-01-11 08:10:00

darkarchon
Member
From: Israel
Registered: 2007-02-28
Posts: 44

Re: feh Not setting background image[SOLVED]

You should probably put that line in openbox's startup file, otherwise it never actually gets executed. Or you can put it before 'exec openbox' line

Last edited by darkarchon (2008-01-11 08:16:42)

Offline

#3 2008-01-11 08:14:47

underpenguin
Member
Registered: 2007-02-01
Posts: 116

Re: feh Not setting background image[SOLVED]

I think you need to use  `s instead of 's around your cat ~/.feghbg

Also, Archon is probably right, since you are exec'ing the openbox session and leaving it in the foreground, your command will never execute until openbox-session is done

Last edited by underpenguin (2008-01-11 08:16:06)

Offline

#4 2008-01-11 08:55:27

isolier
Member
Registered: 2008-01-10
Posts: 24

Re: feh Not setting background image[SOLVED]

Wow, you called it underpenguin...  I switched my 's to `s and it runs like a charm.  I don't think I would have ever pieced that one together.  After I got it working I took the advice of putting the statement in openbox' autostart.sh script just to clean things up.  Anyhow, it is working now, thanks again everyone!

Offline

Board footer

Powered by FluxBB