Lesson 5.1: XFCE Desktop

XFCE (XForms Common Environment) is a lightweight, fast, and highly customizable desktop environment. It's perfect for older hardware or users who want a snappy, traditional desktop experience without unnecessary bloat.

Why XFCE? XFCE follows the Unix philosophy: "Do one thing and do it well." It provides a complete desktop experience while consuming minimal system resources.

Installing XFCE

On Ubuntu 24.04, you can install XFCE with a single command:

$ sudo apt update $ sudo apt install xfce4

For a more complete XFCE experience with additional goodies (recommended):

$ sudo apt install xfce4 xfce4-goodies

The xfce4-goodies package includes:

Switching to XFCE

After installation, switch to XFCE:

  1. Log out of your current session
  2. On the login screen, click the gear icon (usually in the bottom right)
  3. Select "Xfce Session" from the list
  4. Enter your password and log in
First Login: The first time you log into XFCE, you'll be asked if you want to use the default configuration or start with a blank panel. For beginners, choose the default configuration.

XFCE Desktop Components

Let's explore the main components of the XFCE desktop:

Panel

The panel is XFCE's taskbar, usually located at the top of the screen:

Thunar File Manager

Thunar is XFCE's default file manager:

Xfwm4 Window Manager

Xfwm4 handles window management:

Desktop Manager

The desktop itself is managed by xfdesktop:

Key XFCE Applications

XFCE comes with a suite of lightweight applications:

Mousepad Text Editor

Simple, lightweight text editor for quick edits:

Ristretto Image Viewer

Fast and minimalist image viewer:

Terminal Emulator

XFCE's terminal is fast and feature-rich:

Task Manager

Monitor and manage system processes:

Panel Customization

XFCE's panel is highly customizable:

Adding Panel Plugins

Right-click the panel → Panel → Add New Items

Popular plugins include:

Panel Properties

Customize panel behavior:

# Right-click panel → Panel → Panel Preferences

Options include:

Appearance Settings

Customize how XFCE looks:

Appearance Manager

Access via: Settings → Appearance

Window Manager Settings

Access via: Settings → Window Manager

Desktop Settings

Access via: Settings → Desktop

Workspaces

XFCE supports multiple virtual desktops (workspaces):

Using Workspaces

Configure Workspaces

Settings → Workspaces

Keyboard Shortcuts

XFCE comes with useful default shortcuts:

Essential Shortcuts

Window Management

Workspace Shortcuts

Custom Shortcuts

Create your own shortcuts:

# Settings → Keyboard → Application Shortcuts

Power Management

XFCE includes comprehensive power management:

Settings → Power Manager

Session and Startup

Control what happens at login:

Autostart Applications

Settings → Session and Startup → Application Autostart

Session Management

Customization Tips

Make XFCE your own with these tips:

Themes

Install additional themes:

$ sudo apt install arc-theme adapta-gtk-theme $ sudo apt install papirus-icon-theme numix-icon-theme

Plugins

Add useful panel plugins:

$ sudo apt install xfce4-goodies $ sudo apt install xfce4-weather-plugin $ sudo apt install xfce4-systemload-plugin

Compositor Settings

Enable visual effects:

# Settings → Window Manager Tweaks → Compositor

Options include:

XFCE vs Other Desktops

How does XFCE compare?

XFCE vs GNOME

XFCE vs KDE

When to Choose XFCE

XFCE is ideal for:

Troubleshooting Common Issues

Panel Disappeared

If your panel disappears:

$ xfce4-panel --restart

Settings Not Saving

If settings don't persist:

Performance Issues

If XFCE feels slow:

Practice Exercises

Exercise 1: Basic XFCE Setup

  1. Install XFCE and xfce4-goodies
  2. Log into XFCE session
  3. Add a CPU graph plugin to the panel
  4. Change the GTK theme
  5. Set up 4 workspaces with different names
Click for hints
  • Right-click panel → Panel → Add New Items
  • Settings → Appearance for themes
  • Settings → Workspaces to configure

Exercise 2: Advanced Customization

  1. Create a custom keyboard shortcut to open terminal
  2. Set different wallpapers for each workspace
  3. Configure the compositor for window transparency
  4. Add a weather plugin to your panel
  5. Create a second panel at the bottom of the screen
Click for hints
  • Settings → Keyboard → Application Shortcuts
  • Settings → Desktop → Background (configure per workspace)
  • Settings → Window Manager Tweaks → Compositor
  • Right-click panel → Panel → Panel Preferences → New Panel

What's Next?

Now that you understand XFCE, let's explore KDE Plasma, which takes a different approach with more features and modern polish!

Continue to KDE Plasma

Key Takeaways

  • XFCE is lightweight, fast, and highly customizable
  • Perfect for older hardware or speed enthusiasts
  • Traditional desktop paradigm familiar to most users
  • Extensive panel customization with plugins
  • Multiple workspaces for better organization
  • Balance of features and minimal resource usage