Xfce Wiki

Sub domains
 

This is an old revision of the document!


Tips & Tricks

Diese Seite enthält einige Tips für die Xfce-Arbeitsumgebung.

Leistungstips

Mal Klartext, einer der Hauptgründe für XFCE ist Leistung, es ist leichter und reagiert schneller als Gnome in den meisten Konfigurationen, insbesondere auf Rechnern mit weniger Speicher und schlechteren Prozessoren.

Schriftarten

Schriftarten spielen eine große Rolle in graphischen Oberflächen. Mit allem Schnickschnack wie Kantenglättung, Hinweisen und Rastern eingeschaltet kann es schon sein, dass man merkliche Verzögerungen beim Öffnen von Dialogen und Menüs feststellt. Wenn alles abgeschaltet ist, wird es dem entsprechend viel schneller. Das Blättern in Netzseiten, Textprogrammen und Konsolen wird ebenso schneller sein.

Das wesentliche Problem hier sind hässliche Schriftarten. Ich empfehle “Kochi Gothic” für den Bildschirm am Mobilrechner ab 9 Punkten und mehr. Andere Empfehlungen sind gern gesehen.

How to use an alternative menu

If you want to use the new menu from GNOME, with quick starters for favorites applications and such, you can use the xfapplet panel plugin with the GNOME main menu applet. The menu should be installed with your package system, look for gnome-main-menu. Xfce screenshot, video.

Add a new xfapplet item inside your panel, and open its properties dialog to add the GNOME menu applet.

See also: How to customize the Xfce 4.5+ menu

gtkrc Dateien

GTK benutzt eine vielzahl von verschiedenen widgets wie Knöpfe, Eingabefelder oder auch Scrollbars. All diese widgets können einzeln mit einem Themes oder Styles belegt und somit angepasst werden können.

Ein sehr nettes Tutorial ist hierfür auf der GNOME Internetseite zu finden und erklärt die gtkrc Dateien sehr gut.

Unter Xfce selber können auch benutzerdefinierte gtkrc Einstellungen vorgenommen werden. Beispielsweise für xfdesktop und Thunar. ( Schauen Sie auch zusätzlich einmal unter veränderbare Tastenkürzel).

Möchte man beispielsweis das Panel etwas ändern, wäre es möglich folgendes zu benutzen:

# ~/.gtkrc-2.0
style "panel-background" {
  bg_pixmap[NORMAL]        = "foo.bar"
  bg_pixmap[PRELIGHT]      = "foo.bar"
  bg_pixmap[ACTIVE]        = "foo.bar"
  bg_pixmap[SELECTED]      = "foo.bar"
  bg_pixmap[INSENSITIVE]   = "foo.bar"
}
style "panel-color" {
  fg[NORMAL]               = "#222222"
  fg[ACTIVE]               = "#111111"
  bg[NORMAL]               = "#edeff2"
  bg[PRELIGHT]             = "#3d6eab"
  bg[ACTIVE]               = "#3d6eab"
}
widget_class "*Panel*" style "panel-background"
widget "*PanelWidget*" style "panel-color"
widget "*PanelApplet*" style "panel-color"
widget "*Panel*" style "panel-color"
widget_class "*Panel*" style "panel-color"
class "*Panel*" style "panel-color"
class "*Tray*" style "panel-color"
class "*tray*" style "panel-color"

How to add or remove applications from the system menu

Add an application

You have to create a .desktop file (usually in /usr/share/applications for system wide or ~/.local/share/applications for your user) for the application you want to add.

In the following example, we create an entry in the menu with the name “foo” in the submenu “Multimedia”:

[Desktop Entry]
Encoding=UTF-8
Name=foo
GenericName=bar
Comment=Senseless program ever
Exec=foobar
Icon=/usr/share/pixmaps/foobar.xpm
Terminal=false
Type=Application
Categories=Multimedia;

You can read more about .desktop files here.

The libexo provides several utils amongst one to handle desktop entry files in a GUI fashion: exo-desktop-item-edit. With it you can create a new .desktop file, by running the command exo-desktop-item-edit --create-new ;-)

Remove an application from the menu

You can do this in two ways:

  • First way, and the easier one is to simply remove the .desktop file in the /usr/share/applications/ folder, but you will lose mime data (file associations).
  • The second way is to add this line to the .desktop file:
NoDisplay=true

How to customize starting xfce

This includes getting necessary environment variables into the GUI runtime.

  • Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/
  • Edit this file. For example, you can add something like this somehwere in the middle:
    • source $HOME/.bashrc
    • # start rxvt-unicode server
    • urxvtd -q -o -f

Make use of the desktop margins

The desktop margins can be used to set the bounds of the maximized windows. They can be used in a nifty way when you have only one panel.

Go to Settings > Workspaces & Margins > Margins. If you have a panel at the top, set a little margin at the bottom. Now you can access the desktop at any time at the bottom part of your display. Right click it to open the Xfce Menu.