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:

blue

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.


10 Comments on “XFCE transparent desktop icons text background”

  1. mnrl says:

    thanks a lot :)

  2. kzzzr says:

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

  3. slackalaxy says:

    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).

  4. […] Ref: https://slackalaxy.wordpress.com/2012/08/15/xfce-transparent-desktop-icons-text-background/ […]

  5. […] Ref: https://slackalaxy.wordpress.com/2012/08/15/xfce-transparent-desktop-icons-text-background/ […]

  6. Anonymous says:

    Thanks ;0

  7. […] make the XFCE desktop icons text background semi-transparent (as opposed to fully transparent) create this file in the $HOME directory: ~/.gtkrc-2.0 and put the following in […]

  8. Jeremy says:

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

  9. Jeremy says:

    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.

  10. linux says:

    thank you jeremy it worked


Leave a comment