Author Topic: [Arch Linux] Background/wallpaper won't stick  (Read 2484 times)

0 Members and 1 Guest are viewing this topic.

Offline Sparky712

  • Peasant
  • *
  • Posts: 117
  • Cookies: 14
    • View Profile
[Arch Linux] Background/wallpaper won't stick
« on: 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.
« Last Edit: March 29, 2013, 09:54:53 pm by Sparky712 »

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #1 on: 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.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #2 on: March 30, 2013, 01:11:15 am »
I use nitrogen with no problems.
>>>import this
-----------------------------

Offline Sparky712

  • Peasant
  • *
  • Posts: 117
  • Cookies: 14
    • View Profile
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #3 on: March 30, 2013, 09:33:40 am »
Thanks both of you, very helpful, +1 to you both.

Offline s3my0n

  • Knight
  • **
  • Posts: 276
  • Cookies: 58
    • View Profile
    • ::1
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #4 on: 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.
Easter egg in all *nix systems: E(){ E|E& };E

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #5 on: 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.
>>>import this
-----------------------------

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #6 on: March 30, 2013, 07:24:53 pm »
I would add it to openbox autostart but that's just me.

Yes that make more sense.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #7 on: 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.
>>>import this
-----------------------------

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #8 on: 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.
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Sparky712

  • Peasant
  • *
  • Posts: 117
  • Cookies: 14
    • View Profile
Re: [Arch Linux] Background/wallpaper won't stick
« Reply #9 on: 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.