You are not logged in.

#1 2011-07-21 02:21:49

linovix
Member
Registered: 2011-07-21
Posts: 6

[Solved] Problems with feh

Hi all, I'm new to the forums here and have tried my hardest to just dig around for the information I need, but after going through several topics and forums nothing seems to have worked.  I have been working on getting arch linux set up after fiddling around with ubuntu and fedora for a few years now and have really enjoyed the experience so far.  My problem is getting my background/wallpaper to properly load up when I login.  I have posted below my .xinitrc and autostart.sh files and as you can see they are pretty stripped down.  The background is there because I can see it through the tint tray on my screen as well as the partially transparent gnome-terminal i'm running.  Any suggestions?

P.S. The bg does load up when I run feh in the command line.


~/.xinitrc

#!/bin/sh

# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

#if [ -d /etc/X11/xinit/xinitrc.d ]; then
#  for f in /etc/X11/xinit/xinitrc.d/*; do
#    [ -x "$f" ] && . "$f"
#  done
#  unset f
#fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice


feh --bg-tile /home/andrew/pictures/cosmogony.jpg &
tint2 &
exec openbox-session

~/config/openbox/autostart.sh

# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.

# Set a background color


# D-bus
#if which dbus-launch >/dev/null 2>&1 && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
#fi

# Make GTK apps look and behave how they were set up in the gnome config tools


# Preload stuff for KDE apps


# Run XDG autostart things.  By default don't run anything desktop-specific
# See xdg-autostart --help more info


feh --bg-tile /home/andrew/pictures/cosmogony.jpg &
eval `cat ~/.fehbg` &

Last edited by linovix (2011-07-21 03:47:05)

Offline

#2 2011-07-21 02:29:20

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [Solved] Problems with feh

If I remember correctly from back in the day when I used feh for a wallpaper manager, you don't need to fork the process for it to work. Try removing the "&" from the end of the command.

EDIT: On second though, my advice sucks. tongue Always do the inverse of what I say.

Last edited by cesura (2011-07-21 04:18:54)

Offline

#3 2011-07-21 02:44:34

linovix
Member
Registered: 2011-07-21
Posts: 6

Re: [Solved] Problems with feh

I just tried that seperately with each of the commands and I still just get a grey background.  If this helps the bg image flickers on briefly before disappearing behind the grey.

Offline

#4 2011-07-21 02:56:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Problems with feh

Try setting the image manually and then putting an entry in .xinitrc and autostart that calls your feh config file:

sh .fehbg &

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-07-21 03:12:08

linovix
Member
Registered: 2011-07-21
Posts: 6

Re: [Solved] Problems with feh

Hmm.  Still not working.  Its almost as if something is overriding the bg command and making it grey.

Offline

#6 2011-07-21 03:45:17

linovix
Member
Registered: 2011-07-21
Posts: 6

Re: [Solved] Problems with feh

I figured out what the problem was.  The .xinitrc file in the root folder had not been corrected like I thought it was.  I just commented out the original portion of the file and my background came up as it should.  Thanks for your help!

Offline

Board footer

Powered by FluxBB