![]() |
Openbox > Openbox configuration >
I couldn’t figure out how to make menus have icons.
Notes/todo ∞
- http://muaythaimaster74.blogspot.com/2008/12/openbox-on-pclos-part-3.html
-
- Some later posts look insightful.
Previous failures ∞
Manage themes with:
obconf
Specify your own custom one in ~/.gtkrc.mine
gtk-icon-theme-name = "nuoveXT-aero"
By default, themes are found in /usr/share/icons , e.g. /usr/share/icons/nuoveXT-aero/
helper script idea:
MYTHEME=nuoveXT-aero ICONDIR=/usr/share/icons success=no for i in `find $ICONDIR -maxdepth 1 -type d`;do if [ "$i" = "$ICONDIR"/"$MYTHEME" ]; then success=yes ; fi done if [ "$success" = "no" ]; then echo fail! elif [ "$success" = "yes" ]; then echo "[ok] - $ICONDIR/$MYTHEME" echo gtk-icon-theme-name = \""$MYTHEME"\" > ~/.gtkrc.mine else echo BAD BUG 1 fi
BUT, openbox actually uses the themes in /usr/share/themes , e.g. my current /usr/share/themes/minimal/openbox-3/themerc (minimal openbox style)
However, I see other themes like /usr/share/themes/Wonderland/gtk-2.0/gtkrc
export|grep gtk gives me nothing.
Someone else said to edit /home/user/.gtkrc-2.0-kde with:
gtk-icon-theme-name="Oxygen-Refit"
To force a test, I tried:
echo gtk-icon-theme-name = \"nuoveXT-aero\" > ~/.gtkrc.mine su cd /usr/share/icons/nuoveXT-aero/22x22/apps/ mv firefox.png firefox.png- mv firefox-icon.png firefox-icon.png- # And to avoid Firefox falling back on a default, I tried: cp web-browser.png firefox.png mv web-browser.png firefox-icon.png
No luck. This theme isn’t being used. I configured openbox largely by hand, and so I have ~/.config/openbox/rc.xml which references my minimal theme, so maybe I should just copy the structure from somewhere else and give minimal some icons. Then maybe I can hijack the Firefox icon.
su cd /usr/share/icons/nuoveXT-aero/ cp -a nuoveXT-aero minimal cd minimal/22x22/apps/ mv firefox.png firefox.png- mv firefox-icon.png firefox-icon.png- cp web-browser.png firefox.png mv web-browser.png firefox-icon.png
No joy. It looks like ~/.gtkrc.mine is not being used to set the theme, because obconf is still set on minimal. So let’s try modifying minimal. I looked, and /usr/share/icons/minimal/index.theme says that the toolbar default is 24, so I tried correcting that:
cd /usr/share/icons/minimal/24x24/apps/ mv firefox.png firefox.png- mv firefox-icon.png firefox-icon.png- cp web-browser.png firefox.png mv web-browser.png firefox-icon.png
No joy. Now let’s assume that the icons are being scaled from elsewhere. So I’ll try deleting all but the largest icons.
su cd /usr/share/icons/minimal/ # WARNING: rm -rf AS ROOT, so don't screw up this command! find -maxdepth 1 -type d \ ! -name extra \ ! -name . \ ! -name 128x128 \ -exec rm -rf {} \; cd 128x128/apps/ mv firefox.png firefox.png- mv firefox-icon.png firefox-icon.png- cp web-browser.png firefox.png mv web-browser.png firefox-icon.png
No luck.
I checked for an icon default. I see /usr/share/icons/default has only index.theme but inside it only has
# [Icon Theme] # Inherits=whiteglass
Since everything is commented out
Btw, I also looked at every icon in /usr/share/icons/nuoveXT-aero/24x24/ and I could not find the icon being used for the applications which I want to update. So something’s definitely awry.
I did not edit /usr/share/icons/minimal/index.theme and so it’s just a copy from the other theme, so it would be a bit incorrect inside.


ported