You are not logged in.

#1 2011-09-21 22:20:28

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

[solved] openbox - how do i save the wallpaper to autoload upon start

I am trying to figure out how to set teh wallpaper in openbox to autoload.  i have read every wiki on openbox, openbox themes, autostart, along with numerous others, and i have googled it, but i cant seem to figure this one out, unless something else is malfunctioning that im unaware of.

i have nitrogen isntalled, i used it to set my wallpaper.  when i log out, then back in the wallpaper was always coming back up as black.  I couldnt find the 'autostart.sh' script in my user folder, but i do see the 'autostart'.  i cant understand why its not named autostart.sh.  i do have gnome-settings-daemon installed to i decided to see what the gnome config tools script on top of the autostart file was all about, so i uncommented that.  now when i log in my wallpaper is blue. 

As far as nitrogen, If i dont run it from the command line, i cant figure out how to get it to load a folder with images. its a pain.  i installed feh, but when i enable it as a menu item, it i lose menu access once i login (i think this is similar to the nautilus problem which requires the -no desktop switch to overcome this), is there such a thing with feh?  im thinking feh might be easier to set a wallpaper?

anyhow, how to i set the wallpaper once and for all?

Last edited by wolfdogg (2011-09-21 23:05:38)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#2 2011-09-21 22:24:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

wolfdogg wrote:

i cant understand why its not named autostart.sh.

https://wiki.archlinux.org/index.php/Op … penbox_3.5

Last edited by karol (2011-09-21 22:25:24)

Offline

#3 2011-09-21 22:25:06

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

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

wolfdogg wrote:

I couldnt find the 'autostart.sh' script in my user folder, but i do see the 'autostart'.  i cant understand why its not named autostart.sh.

Wiki Openbox article wrote:

Note: This file used to be called autostart.sh before OpenBox 3.5.0. If you are upgrading, be sure you rename your copy of the file to remove the .sh from the end, or it will stop being read.

wolfdogg wrote:

im thinking feh might be easier to set a wallpaper?

anyhow, how to i set the wallpaper once and for all?

man feh wrote:

BACKGROUND SETTING
feh can also be used as a background setter.  It will store the command line necessary to set the background in ~/.fehbg, so to have your background restored everytime you start X, you can add "eval $(cat ~/.fehbg)" to your X startup script (like ~/.xinitrc).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2011-09-21 22:29:15

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

#
# $HOME/.config/openbox/autostart
#

# Set background image
nitrogen --restore &

Offline

#5 2011-09-21 22:35:19

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

thanks for the reference both of you to the portion on the feature upgrade for the autoscript.

as far as the wallpaper, is it suggested that nitrogen doesnt have this feature, and to use feh then?  and is it suggested that i use it from the command line everytime i want to change the wallpaper. and forget about the menu option?  what i do to get the menu item to work? Am i missing an action or switch?  im just running 'feh' in the command

[EDIT, just saw the restore switch for nitrogen, thanks!]

Last edited by wolfdogg (2011-09-21 22:36:47)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#6 2011-09-21 22:44:12

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

yikes

Offline

#7 2011-09-21 22:46:09

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

ok, with the nitrogen --restore & command added, the wallpaper i set with nitrogen came up, then it switched to blue after, so i guess i need to learn more about gnome-settings-daemon. funny, the command in my autostart for nitrogen is after the script that runs the gnome-settings-daemon, so unless theres a delay, then its something else thats cauing it.

Last edited by wolfdogg (2011-09-21 22:48:31)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#8 2015-07-20 07:42:28

knela
Member
Registered: 2015-07-20
Posts: 1

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

You need a delay. My ~/.config/openbox/autostart has this and works:

# Set wallpaper
#(sleep 1s && nitrogen --restore) &
(sleep 1s && sh ~/.fehbg) &

after running

$ feh --bg-scale /path/to/image.file

Offline

#9 2015-07-20 07:58:40

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

Re: [solved] openbox - how do i save the wallpaper to autoload upon start

Please don't necrobump, particularly solved threads: https://wiki.archlinux.org/index.php/Fo … bumping.22



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB