You are not logged in.
I know two ways to get the desktop background image in openbox.
1. spacefm - add the following line to ~/.config/openbox/autostart
spacefm --desktop &
To select a background, open spacefm and go to View, Preferences, then check the Wallpaper box and select an image. That image will come up as the background when you start openbox.
2. nitrogen - add the following line to ~/.config/openbox/autostart
nitrogen --set-scaled /usr/share/images/desktop-base/desktop-background
3. If you use lxdm, openbox will take the background and gtk theme set in /etc/lxdm/lxdm.conf
(Nobody expects the Spanish Inquisition!)
I checked pcmanfm, but I couldn't find a setting for the desktop background.
Offline
I checked pcmanfm, but I couldn't find a setting for the desktop background.
The command to allow PCManFM to set wallpapers and enable the use of desktop icons is:
pcmanfm --desktop
The native desktop menu of the window manager will be replaced with that provided by PCManFM. However, it can easily be restored from the PCManFM menu itself by selecting
Desktop preferences
and then enabling the
Right click shows WM menu
option in the Desktop tab.
What economists call over-production is but a production that is above the purchasing power of the worker, who is reduced to poverty by capital and state.
----+- Peter Kropotkin -+----
Offline
The command to allow PCManFM to set wallpapers and enable the use of desktop icons is:
pcmanfm --desktop
The native desktop menu of the window manager will be replaced with that provided by PCManFM. However, it can easily be restored from the PCManFM menu itself by selecting
Desktop preferences
and then enabling the
Right click shows WM menu
option in the Desktop tab.
Thanks, that works.
If you do get the native window manager menu on right-click, you need to run pcmanfm --display-pref to get the the desktop settings. (to change the wallpaper again after enabling the wm menu)
Offline
Excellent to have this documented here. Thanks to both of you.
Offline
ways to get the desktop background image in openbox
Some more alternatives:
Example usage:
hsetroot -cover /usr/share/images/desktop-base/desktop-background
Once a background is set with feh a script is placed at ~/.fehbg and this can be run from the openbox autostart file so that the last chosen wallpaper is kept updated:
sh ~/.fehbg
And here's an automatic wallpaper changer using images in ~/Pictures/wallpapers:
while sleep 600; do feh --bg-scale --randomize ~/Pictures/wallpapers; done &
As an aside, commands in the openbox autostart file shouldn't be backgrounded unless they need to be: test for this by running the command in a terminal, if the prompt is returned then do not add an ampersand — we noticed problems with race conditions in BunsenLabs if ampersands were added unnecessarily.
For example, the nitrogen line does not need an ampersand at the end.
Brianna Ghey — Rest In Power
Offline
Thanks, I knew there had to be other ways. (It's linux.)
OMG, I've been using feh for years, and I just read the man page for the first time. I had no idea it could do so much.
Offline
If you do get the native window manager menu on right-click, you need to run pcmanfm --display-pref to get the the desktop settings. (to change the wallpaper again after enabling the wm menu)
Thank you.
What economists call over-production is but a production that is above the purchasing power of the worker, who is reduced to poverty by capital and state.
----+- Peter Kropotkin -+----
Offline
As an aside, commands in the openbox autostart file shouldn't be backgrounded unless they need to be: test for this by running the command in a terminal, if the prompt is returned then do not add an ampersand — we noticed problems with race conditions in BunsenLabs if ampersands were added unnecessarily.
Nice tip. Thank you.
What economists call over-production is but a production that is above the purchasing power of the worker, who is reduced to poverty by capital and state.
----+- Peter Kropotkin -+----
Offline
Gosh that looks sexy. As a fan of Clearlooks and dark red, the new theme sounds like music to my ears.
Offline
FTR: With plain openbox, setting the theme in:
obconf - just changes the title bar, buttons (and borders?) but not
the highlights.
lxappearance - changes the highlights. (gets rid of the raleigh blue)
lxappearance-obconf - apparently does nothing, and it's described as a
theme switcher for LXDE.
gtk2-engines - didn't seem to do anything in openbox.
To get the cinnabar highlights in synaptic or other root apps, you can copy ~/.config/gtk-3.0/settings.ini to root's home after you set the theme with lxappearance.
Offline
To get the cinnabar highlights in synaptic or other root apps, you can copy ~/.config/gtk-3.0/settings.ini to root's home after you set the theme with lxappearance.
...or...open lxappearance as root...
sudo lxappearance
...or use su if you prefer, then enter...
lxappearance
When lxappearance opens, you can choose the theme and icons that you want to use for the root apps.
Last edited by MiyoLinux (2020-10-15 23:57:40)
I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.
Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned.
Offline