EvilZone

General Tech => Operating System => : Sparky712 March 29, 2013, 09:18:38 PM

: [Arch Linux] Background/wallpaper won't stick
: Sparky712 March 29, 2013, 09:18:38 PM
I'm appending the code to the autostart files (~/.xinitrc, ~/.config/openbox/autostart) but no matter what, the background  will not persist through to the next session. Tint2 does, despite not being in either file.
For reference, I have tried the following:

$ sh ~/.fehbg &
and
eval `cat ~/.fehbg`
how can I fix this?

Also, oddly, my Tint2 is autostarting despite not being in either file.
: Re: [Arch Linux] Background/wallpaper won't stick
: proxx March 29, 2013, 11:28:08 PM
Just make a script called set_wallpaper.sh
Append : feh --bg-scale /home/user/WALLPAPER.jpg

Add it to your .xinitrc with a sleep delay of 1 or 2.

That should just work.
: Re: [Arch Linux] Background/wallpaper won't stick
: techb March 30, 2013, 01:11:15 AM
I use nitrogen with no problems.
: Re: [Arch Linux] Background/wallpaper won't stick
: Sparky712 March 30, 2013, 09:33:40 AM
Thanks both of you, very helpful, +1 to you both.
: Re: [Arch Linux] Background/wallpaper won't stick
: s3my0n March 30, 2013, 03:47:33 PM
JFYI feh creates a .fehbg script in your home directory everytime you run it to set a wallpaper, so no need for another script calling feh. Just add:

sh ~/.fehbg &

to your .xinitrc file.
: Re: [Arch Linux] Background/wallpaper won't stick
: techb March 30, 2013, 06:43:34 PM
JFYI feh creates a .fehbg script in your home directory everytime you run it to set a wallpaper, so no need for another script calling feh. Just add:

sh ~/.fehbg &

to your .xinitrc file.

I would add it to openbox autostart but that's just me.
: Re: [Arch Linux] Background/wallpaper won't stick
: proxx March 30, 2013, 07:24:53 PM
I would add it to openbox autostart but that's just me.

Yes that make more sense.
: Re: [Arch Linux] Background/wallpaper won't stick
: techb March 30, 2013, 08:50:15 PM
you could put it as the first script in autorun to be executed so it shows up right away. But like i said before, I use nitrogen, it doubles as an image viewer also.
: Re: [Arch Linux] Background/wallpaper won't stick
: lucid March 31, 2013, 11:50:36 PM
I always used nitrogen too. In your autostart file just add nitrogen --restore &. Although I'm sure you already got it working by now.
: Re: [Arch Linux] Background/wallpaper won't stick
: Sparky712 April 01, 2013, 01:36:37 PM
Yeah, I got it working now... however, its in my ~/.xinitrc rather than my autostart. for some reason, the commands don't work in my autostart, but they do there. I'd already done it by the time S3my0n commented, but yeah, I've done what he said. everything is working fine.