You are not logged in.
Pages: 1
Topic closed
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)
Offline
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
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.
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.
im thinking feh might be easier to set a wallpaper?
anyhow, how to i set the wallpaper once and for all?
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).
Offline
#
# $HOME/.config/openbox/autostart
#
# Set background image
nitrogen --restore &Offline
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)
Offline
![]()
Offline
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)
Offline
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.fileOffline
Please don't necrobump, particularly solved threads: https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing
Offline
Pages: 1
Topic closed