Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I reduce the size of the windows icons in the xfce4-panel taskbar?

I've reduced the height of my xfce4-panel from 20px to 16px and now the icons in the taskbar are truncated by one or two pixels at the top and the bottom instead of having a smaller size.

I've tried some changes in my .gtkrc-2.0 file but it didn't work.

Does anyone know how to do do this?

share|improve this question
By which I assume you mean adding the line gtk-icon-sizes = "gtk-menu=22,16" or similar? Which version of XFCE and/or what distribution are you running? – eMansipater Apr 24 '11 at 1:41
Yup that's the kind of things I tried. It's xfce4-panel 4.6.4-1 from Debian testing. – p4bl0 Apr 24 '11 at 2:13
Ahh--that explains it. Posting answer now. – eMansipater Apr 24 '11 at 2:30

In xfce4-panel 4.6 this setting can be changed from the terminal with the command

xfconf-query -c xsettings -p '/Gtk/IconSizes' -s 'gtk-menu=16,16'

Or, from the Settings Editor you can go to xsettings -> Gtk, then select IconSizes, click on the Edit property icon and enter gtk-menu=16,16 or other desired size in Value :.

Just as a heads up and for future reference, this changes again for xfce-panel 4.8 where different panels and menus are adjusted separately; so you will need to set /Gtk/IconSizes to something like panel-applications-menu=16,16:gtk-menu=16,16:panel-directory-menu=16,16 depending on your needs.

From here and here.

share|improve this answer
Thanks for your time! So I had to create the property with xfconf-query -c xsettings -n -p '/Gtk/IconSizes' -t string -s 'gtk-menu=12,12' but it doesn't seem to have any effet, even if I kill xfce4-panel and spawn it again. I also tried what you suggested for v4.8 but it didn't have any effect either. – p4bl0 Apr 24 '11 at 3:23
@p4bl0 You will actually have to restart xfce as a whole to see the change, I believe. There may also be a minimum size for the icons, though I don't know what it is. One way to check this would be to set the numbers very large and then progressively lower them. – eMansipater Apr 24 '11 at 3:26
I don't have xfce installed, only its panel. I tried to set a bigger size and to relaunch it again, it had no effect :-/. It seems what I want is impossible... Thanks for your time anyway! – p4bl0 Apr 24 '11 at 3:30
@p4bl0 you might have to restart GNOME or your window manager whatever it is--and/or the whole computer. It seems unlikely to me that this value doesn't exist anywhere. – eMansipater Apr 24 '11 at 3:40
I restarted Openbox (my window manager, I don't have any desktop environment) and even logout/login but it didn't had any effect with all the value I tried (12,12 which is what I want, but also 10,10 and 30,30). It seems unlikely that rebooting will be of any help but I'll try later, just in case. – p4bl0 Apr 24 '11 at 9:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.