To install and configure the i3 window manager to work with XFCE4, follow these steps:
Step 1: Install Required Packages
First, you need to install both i3 and XFCE4. You may already have XFCE4 installed, but if not, you can install it together with i3.
For Debian-based distributions (like Ubuntu):
sudo apt update
sudo apt install i3 xfce4
For Arch-based distributions:
sudo pacman -Syu
sudo pacman -S i3 xfce4
For Fedora:
sudo dnf install i3 xfce4
Step 2: Configure XFCE4 to Use i3 as the Window Manager
-
Logout and Login with i3:
- At the login screen, select i3 as your session choice. This step is crucial to initially configure i3.
-
Initial i3 Configuration:
- When you log in using i3 for the first time, you will be prompted to run the initial setup. You can go with the default options, but be sure to take note of the
$mod key (typically set to "Mod1" (Alt) or "Mod4" (Super/Win key)) which is used to control i3.
-
Install xfce4-panel:
-
Modify i3 Config to Run XFCE4 Components:
Step 3: Customize XFCE and i3 Integration
-
Autostart Applications:
- If you have specific applications or utilities you want to start, you can use the
~/.config/i3/config file to add additional exec --no-startup-id entries for each application.
-
Handling XFCE4 Settings:
- You can open the
xfce4-settings-manager within the i3 session to adjust the XFCE desktop environment settings.
-
Panel and Desktop:
- For the panel and desktop to work smoothly, you may adjust their settings via
xfconf-query or manually through the XFCE settings GUI.
Step 4: Logging Out and Testing
- After adjusting your settings, you can restart i3 or reboot your system.
- Make sure that your applications and XFCE components behave as expected within the i3 sessions.
Troubleshooting
- If you encounter issues where XFCE components do not display properly, ensure that they are included in your i3 configuration file under the exec commands.
- Adjust i3 shortcuts to avoid conflicts with XFCE shortcuts, which are editable in both i3 configuration and XFCE settings manager.
This setup allows you to enjoy the versatility and minimalism of i3 while retaining the utilities provided by XFCE, like the panel and settings manager.