Xfce Desktop Icon Transparencies

Colleague You gespadas published on his blog a tip to change the color of the background that brings the text of the icons in the Xfce desktop, and make them look much prettier.

The trick we can find in the file README de Xfdesktop and is the following: In the file .gtkrc-2.0 within our / Home, we must put the following lines:


Transparent icons

style "xfdesktop-icon-view" {
XfdesktopIconView :: label-alpha = 20
XfdesktopIconView :: selected-label-alpha = 100
XfdesktopIconView :: ellipsize-icon-labels = 1
XfdesktopIconView :: tooltip-size = 128

XfdesktopIconView :: shadow-x-offset = 1
XfdesktopIconView :: shadow-y-offset = 1
XfdesktopIconView :: shadow-color = "# 000000"
XfdesktopIconView :: selected-shadow-x-offset = 2
XfdesktopIconView :: selected-shadow-y-offset = 2
XfdesktopIconView :: selected-shadow-color = "# 000000"

XfdesktopIconView :: cell-spacing = 6
XfdesktopIconView :: cell-padding = 6
XfdesktopIconView :: cell-text-width-proportion = 2.5

base [NORMAL] = "# 000000"
base [SELECTED] = "# 000000"
base [ACTIVE] = "# 000000"

widget_class «XfdesktopIconView»Style« xfdesktop-icon-view »

[/ Code]

To understand a little what this is about, You gespadas gives us a simple explanation of some of the most prominent elements:

label-alpha is the opacity percentage of the icon text background. If its value is zero, the background will be completely transparent, if it is 50 it will have a semi-transparency, etc.

shadow-x-offset y shadow-and-offset indicate the position of the text shadow, while shadow-color indicates its color.

cell-spacing indicates the separation between each grid cell of the desktop icons, while cell-padding specifies an additional space surrounding each of the icons. Both measurements are in pixels.

cell-text-width-proportion indicates the maximum proportional width of the text below the icons. For example, if the icons are 30px, a value of '2.5' would leave a maximum width of 75px for the texts.

A very wise recommendation is to place all this inside the file .gtkrc.mine, Ya que .gtkrc-2.0 it can be overwritten by an application that manages the appearance of the desktop. Although in my case it only worked with second. After we adjust the colors and others, we restart the session and that's it.

For me, with the code that I put above, it looked like this:

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

21 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Algabe said

    Exactly in which directory it is already looked in ~ / home / and there is no .gtkrc.mine file 🙁

    1.    sieg84 said

      If you can't find it, believe it.

    2.    elav <° Linux said

      Those files can be created manually ^^

  2.   sieg84 said

    And before ... how was it?

    1.    elav <° Linux said

      They have a background, without transparency, according to the Gtk theme.

      1.    sieg84 said

        Oh yeah I've used xfce, but I don't use desktop icons.

  3.   Oscar said

    Thanks for the tuto, a question elav can you give me the link to download the icons are great.

    1.    elav <° Linux said

      I installed them from the repository of Debian: gnome-brave-icon-theme

      1.    Oscar said

        Thanks for the information the icons are fabulous, the tutorial worked correctly for me.

  4.   Oscar said

    And the Wallpapers also if it is not too much trouble.

    1.    elav <° Linux said

      The Wallpaper comes with Xfce 4.10, I did not download it from anywhere 😀

  5.   rodolfo alejandro said

    That option should already be optional in xfce, it would honestly improve, but still the tip is very good, I had not realized that they were not transparent =)

  6.   Traveler said

    Thanks, especially now that I'm opting for XFCE given my lack of affinity with Unity

  7.   Yoyo Fernandez said

    You can also remove the background of the icons and leave it as in Gnome 2 like this:

    We open the terminal and using the xfce text editor:

    & leafpad ~ / .gtkrc-2.0

    And we add the following

    style "xfdesktop-icon-view" {
    XfdesktopIconView :: label-alpha = 0
    fg [NORMAL] = "#ffffff"
    fg [SELECTED] = "# 000000"}
    widget_class «* XfdesktopIconView *» style «xfdesktop-icon-view»

    We save changes, close and restart the session, the thing will be like this, the before and after: http://s14.postimage.org/qpgsaeazl/comparison_icons01.png


  8.   Rayonant said

    It is something that seemed annoying to me, I read it first on the gespadas blog, although just like you it only worked with the middle name, that if an elav correction, maybe it will work for someone:

    A very wise recommendation is to place all this inside the file .gtkrc.mine , since .gtkrc-2.0 can be overwritten

    the first name is -gtkrc-2.0.mine

    1.    elav <° Linux said

      Well, I was in doubt, because I have the file gtkrc.mine and it works for me with other things. 😕

      1.    Oscar said

        Well, it didn't work for me in .gtkrc.mine and since I didn't have the .gtkrc-2.0 file, I had to create it and it did work there.

  9.   Blazek said

    Good tutorial, it has been useful to me.

  10.   hug0 said

    The data seems very good to me, do you know if there is any documentation with all the parameters that can be configured from there? I have searched but I can not find anything very complete that is said.

  11.   applied said

    Hi, how are you?
    Do you know any way to make the text of the icons can have two lines instead of just one? (in kde it can be configured so that the text of the icons comes out in 2 lines). I don't know if there would be an equivalent here.
    Thank you.

  12.   xxmlud said

    I have a problem.
    Neither .gtkrc.mine nor gtkrc-2.0 appears, and creating them and adding the code you provide does not change the background of the icons either. What I do?