You are not logged in.

#1 2009-01-15 23:55:50

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Openbox - Can't Set Background

I installed Gnome a while ago, everything worked well. Then I decided to get into Openbox and the minimalistic setup.

I tried to set my wallpaper image through autostart.sh

autostart.sh:

#!/bin/bash

# Run the system-wide support stuff
. $GLOBALAUTOSTART

# Programs to launch at startup
feh --bg-scale /home/vg/Pictures/HD_Wall/1680x1050_HD_Wallpeper_154_Zixpk.jpg &

# Programs that will run after Openbox has started
(sleep 2 && tint -c /home/vg/Downloads/tint/tintrc1b) &
xcompmgr &
trayer --expand true --transparent true --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request &
feh --bg-scale /home/vg/Pictures/HD_Wall/1680x1050_HD_Wallpeper_154_Zixpk.jpg &
feh --bg-scale /home/vg/Pictures/HD_Wall/1680x1050_HD_Wallpeper_154_Zixpk.jpg &

But it won't set my wallpaper. It will set the correct wallpaper upon startup, but then after a second or two, the wallpaper changes to some random Gnome wallpaper (the green leaf one).

Why is this happening and how do I fix it?

Offline

#2 2009-01-16 00:14:32

Xappe
Member
Registered: 2008-05-17
Posts: 105

Re: Openbox - Can't Set Background

If you can live without the gnome-settings-daemon it should be easy. Comment the lines for starting the daemon in /etc/xdg/openbox/autostart.sh. That's the global autostart file.


vanum est vobis ante lucem surgere

Offline

#3 2009-01-16 00:31:32

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Openbox - Can't Set Background

Must be nautilus kicking in I guess?

Why do you have the same command three times btw?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-01-16 00:37:35

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Openbox - Can't Set Background

Xappe wrote:

If you can live without the gnome-settings-daemon it should be easy. Comment the lines for starting the daemon in /etc/xdg/openbox/autostart.sh. That's the global autostart file.

Hmm, I really need this: # Make GTK apps look and behave how they were set up in the gnome config tools

Or another way to imitate this feature. I need the right icon theme and gtk theme working.

Offline

#5 2009-01-16 00:50:05

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Openbox - Can't Set Background

Use lxappearance to set the gtk and icon themes.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2009-01-16 01:04:47

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Openbox - Can't Set Background

Xyne wrote:

Use lxappearance to set the gtk and icon themes.

How do I make the settings stay?

Offline

#7 2009-01-16 01:14:37

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Openbox - Can't Set Background

If you really want to continue using gnome-settings-daemon, open gconf-editor and set the following to no/false/uncheck :

/desktop/gnome/background/draw_background
/apps/gnome_settings_daemon/plugins/background/active

You can also disable these :

/apps/nautilus/preferences/background_set
/apps/nautilus/preferences/show_desktop

EDIT: This is what my ~/.gtkrc-2.0 looks like:

#gtk-theme-name = "MurrinaVerdeOlivo"
#gtk-theme-name = "MurrinaCappuccino"
gtk-theme-name = "MurrinaNeoGraphite"
#gtk-theme-name = "MurrinaEalm"
#gtk-theme-name = "Clearlooks"

style "user-font"
{
        font_name="Bitstream Vera Sans 9"
}
widget_class "*" style "user-font"

gtk-icon-theme-name = "black-white_2-Neon"
#gtk-icon-theme-name = "Tango"

#gtk-icon-sizes = "panel-menu=16,16:panel=16,16:gtk-menu=16,16:\
#gtk-large-toolbar=24,24:gtk-small-toolbar=16,16:gtk-button=16,16"

gtk-icon-sizes = "panel-menu=16,16:panel=16,16:gtk-menu=16,16:\
gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16"

You can try copying this, and editing the values. You don't need no lxappearance wink
If you do it this way, then don't start gnome-settings-daemon. I'd recommend this.

Oh, and you only need to write that feh command once in your autostart smile

Last edited by moljac024 (2009-01-16 01:19:44)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#8 2009-01-16 01:47:58

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Openbox - Can't Set Background

Xyne wrote:

Use lxappearance to set the gtk and icon themes.

Or gtk-chtheme for the GTK+ themes. I just edit ~/.gtkrc-mine and drop the name of my icon theme in there.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2009-01-16 08:16:19

xcession
Member
From: Udon Thani, Thailand
Registered: 2008-05-07
Posts: 72
Website

Re: Openbox - Can't Set Background

for the background you can simply use nitrogen and add nitrogen --restore to autostart.sh

Offline

#10 2009-01-16 18:00:14

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Openbox - Can't Set Background

"eval `cat $HOME/.fehbg`" is equivalent to "nitrogen --restore" for feh users.

i believe your line, ". $GLOBALAUTOSTART" is starting up some gnome related stuff that is taking over the background as mentioned above.

gtk-chtheme is what you want, also as mentioned above

i've been an openbox/feh user for a long time now and the first thing i did was comment out ". $GLOBALAUTOSTART"

Offline

#11 2009-01-19 22:56:19

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Openbox - Can't Set Background

gtk-chtheme seems pretty useless. All it does is change the widget theme, like switch2. How do i change the icon theme?

Offline

#12 2009-01-19 23:10:11

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Openbox - Can't Set Background

solarwind wrote:

gtk-chtheme seems pretty useless. All it does is change the widget theme, like switch2. How do i change the icon theme?

extract your icons into to ~/.icons, then call them out in ~/.gtkrc.mine (if setup like mine) or ~./gtkrc-2.0 directly

> ls .icons/ALLBLACK/
18x18/  GPL  index.theme  scalable/  true-scalable/

> cat .gtkrc-2.0 
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/home/patrick/.themes/Dyne/gtk-2.0/gtkrc"

include "/home/patrick/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT

> cat .gtkrc.mine 
# define gtk styles here
# gtkrc-2.0 points here

style "user-font"
{
        font_name = "bauhaus 8"
}
widget_class "*" style "user-font"
gtk-font-name = "bauhaus 8"

gtk-icon-theme-name = "ALLBLACK"

#gtk-toolbar-style = GTK_TOOLBAR_ICONS 
#gtk-toolbar-style = GTK_TOOLBAR_TEXT 
gtk-toolbar-style = GTK_TOOLBAR_BOTH
#gtk-toolbar-style = GTK_TOOLBAR_BOTH_HORIZ 

gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR

Last edited by brisbin33 (2009-01-19 23:10:46)

Offline

#13 2009-01-19 23:14:14

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: Openbox - Can't Set Background

brisbin33 wrote:
solarwind wrote:

gtk-chtheme seems pretty useless. All it does is change the widget theme, like switch2. How do i change the icon theme?

extract your icons into to ~/.icons, then call them out in ~/.gtkrc.mine (if setup like mine) or ~./gtkrc-2.0 directly

> ls .icons/ALLBLACK/
18x18/  GPL  index.theme  scalable/  true-scalable/

> cat .gtkrc-2.0 
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/home/patrick/.themes/Dyne/gtk-2.0/gtkrc"

include "/home/patrick/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT

> cat .gtkrc.mine 
# define gtk styles here
# gtkrc-2.0 points here

style "user-font"
{
        font_name = "bauhaus 8"
}
widget_class "*" style "user-font"
gtk-font-name = "bauhaus 8"

gtk-icon-theme-name = "ALLBLACK"

#gtk-toolbar-style = GTK_TOOLBAR_ICONS 
#gtk-toolbar-style = GTK_TOOLBAR_TEXT 
gtk-toolbar-style = GTK_TOOLBAR_BOTH
#gtk-toolbar-style = GTK_TOOLBAR_BOTH_HORIZ 

gtk-toolbar-icon-size = GTK_ICON_SIZE_SMALL_TOOLBAR

Thanks. I'll go for the config file route now, but wont end my quest to find a solid GUI tool. Maybe I'll modify obconf to include stuff like this. Doesn't look too hard.

Offline

#14 2009-01-20 01:41:15

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Openbox - Can't Set Background

You could also try LXappearance, which does change the icon theme.

Offline

Board footer

Powered by FluxBB