Skip to content

Instantly share code, notes, and snippets.

@nd3w
Last active May 7, 2024 00:29
Show Gist options
  • Save nd3w/4c07e8d6813508403f91c36c9aba6022 to your computer and use it in GitHub Desktop.
Save nd3w/4c07e8d6813508403f91c36c9aba6022 to your computer and use it in GitHub Desktop.
How to change XFCE panel's of notify and audio icon size

This is a way to change notify and audio icon size for XFCE panel:

Create or edit ~/.config/gtk-3.0/gtk.css, and add these two selectors:

#pulseaudio-button * {
        -gtk-icon-transform: scale(.55);
}

#xfce4-notification-plugin * {
        -gtk-icon-transform: scale(.55);
}

Save the file and restart XFCE panel using this command below:

$ xfce4-panel -r

@pierrick-marie
Copy link

pierrick-marie commented Apr 9, 2023

Still working in 2023 ! :)

I had choice between ~/.config/gtk-3.0/ and ~/.config/gtk-4.0/. I tried to put the configuration in gtk-4.0 without success, but works perfectly in ~/.config/gtk-3.0/!

I also used that configuration to reduce the size of power manager icon:

#xfce4-power-manager-plugin * {
        -gtk-icon-transform: scale(.55);
}

@nd3w
Copy link
Author

nd3w commented Apr 10, 2023

Still working in 2023 ! :)

I had choice between ~/.config/gtk-3.0/ and ~/.config/gtk-4.0/. I tried to put the configuration in gtk-4.0 without success, but works perfectly in ~/.config/gtk-3.0/!

I also used that configuration to reduce the size of power manager icon:

#xfce4-power-manager-plugin * {
        -gtk-icon-transform: scale(.55);
}

I'm glad to hear it :)
And thank you for the tip about power manager icon.

@clrizzi
Copy link

clrizzi commented Apr 25, 2024

It Works! Thanks.

And to reduce the size of "Show Desktop" icon, use:

#showdesktop-button * {
        -gtk-icon-transform: scale(.55);
}

@nd3w
Copy link
Author

nd3w commented May 7, 2024

It Works! Thanks.

And to reduce the size of "Show Desktop" icon, use:

#showdesktop-button * {
        -gtk-icon-transform: scale(.55);
}

Yes, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment