XFCE transparent desktop icons text background

To make the XFCE desktop icons text background transparent create this file in the $HOME directory: ~/.gtkrc-2.0 (or check if it already exists!) and put the following in it:

style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0

base[NORMAL] = "#ffffff"
base[SELECTED] = "#5D97D1"
base[ACTIVE] = "#5D97D1"

fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#ffffff"
fg[ACTIVE] = "#ffffff"
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

Log out and in. Colour codes can be changed. The above looks good for darker background:


Hint is from here.

UPDATE (01 Jul 2015): for alternative settings that make the icons text semi-transparent, check this newer post.

EDIT (22 May 2016): Added a reminder that the file may be already present. Thanks to Jeremy. Also, I noticed that the code above had two .gtkrc-2.0 examples merged as one. Now it is fixed. I apologize for the confusion.


Filed under desktop

9 responses to “XFCE transparent desktop icons text background

  1. mnrl

    thanks a lot :)

  2. kzzzr

    In what file format am I supposed to save that code?

    • Create a plain text format file in your home directory, with the code contents from above. Save the file with the name .gtkrc-2.0 (note the dot, it will be a hidden file).

  3. Pingback: Transparent text background for icon in XFCE desktop | Daydreamer

  4. Pingback: Customize XFCE Desktop for Linux | Daydreamer

  5. Anonymous

    Thanks ;0

  6. Pingback: XFCE semi-transparent desktop icons text background | slackalaxy

  7. Jeremy

    Tried a similar solution on another website before finding this one. This is the only one that worked for me.

  8. Jeremy

    If you’re new to Linux like me, you might not realize the file already exists in some distros. To be on the safe side, open your Home folder (mine is an icon the desktop), right-click inside and select “Open Terminal Here”. Note, I am using Linux Lite here. In the terminal, type:

    sudo nano .gtkrc-2.0

    Copy the code/text at the top of this page and paste it under the existing text if any is present. Hold Ctrl and press O (the letter). Just press enter to save the file with its existing name. Close the Terminal and reboot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s