Tag Archives: Xfce

Add GNOME applets to the Xfce panel

Hmm, well, yes, I hear you: what for, why do that?
Just because ^^

    1. Install xfce4-xfapplet-plugin from the universe repositories, then add it to the Xfce panel:

      screenshot_xfapplet.png

    2. Choose a GNOME applet to add:

      screenshot_xfapplet-2.png

    3. All done, the GNOME User Switcher is in place :)

      screenshot_xfapplet_panel_5.png

Quoting the package description:

Description: Gnome applets plugin for Xfce panel
XfApplet is a plugin for the Xfce 4 panel. The plugin itself has no special functionality, its only purpose is to enable one to use Gnome applets inside the Xfce 4 panel just as they are used inside the Gnome panel.

Reference

Xfce Goodies Project

Xfce Compositing Manager and password windows for root graphical applications

Several Ubuntu Xfce users have reported a delay when root graphical applications (ie launched with gksudo or gksu) ask for the password. The windows hang for several seconds, up to 40. I’ve noticed that even the clock stops ticking.

This bug is probably related to Xfce compositing manager, in particular the shadows under the popups.
The current workaround is to disable “Display shadows under popup windows” or launch the application with gksudo -g.

man gksudo
--disable-grab, -g
Disable the "locking" of the keyboard, mouse,
    and focus done by the program when asking for password.

Edit 071124:
From the UF thread (see below), run gksu-properties and disable capture-mode. I’ve looked around, but does anyone have more infos about this workaround?

References

UF thread
LP bug report
Xfce bugzilla report

Change GDM background color to match your GDM theme (applies to Xfce)

Please read the Launchpad bug report where the issue was raised.

At the bottom of /etc/gdm/PreSession/Default change :

 # Default value
        if [ "x$BACKCOLOR" = "x" ]; then
                BACKCOLOR="#dab082"
        fi

to:

 # Default value
        if [ "x$BACKCOLOR" = "x" ]; then
                BACKCOLOR="x"
        fi

Where #dab082 is the default brown color that appears right after GDM exits and before the desktop files are loaded. Works nicely with Xfce here.

Edit: from the bug report, the bug is fixed in Hardy :)

Icon labels styles on the Xfce desktop.

The icon labels, with my Xfce default theme, were plain white, no transparency, not so nice.
This can be changed in the ~/.gtkrc-2.0 file. Here is mine:

style "xfdesktop-icon-view" {
    XfdesktopIconView::label-alpha = 30
    font_name="Sans Bold"

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

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

You can control the transparency with XfdesktopIconView::label-alpha = x (x = 0 will set a fully transparent label) and play with the font style and color.

labels_xfce.pnglabels_xfce_highlight.pnglabels_xfce_selected.png

References

UF post
Xfce blog article

Xfce Goodies project

Xfce long-time users may already know the Xfce Goodies Project, but I just came across it looking for some plugins. Browse through the panel plugins, lots of interesting stuff to get. I installed xfce4-cpufreq-plugin, xfce4-sensors-plugin and xfce4-weather-plugin with aptitude, they are in the Ubuntu repositories, some in universe. All the other items are in the default Xfce desktop install, you have to add them to the panel, though.

screenshot-panel.png