Choosing the best window manager for Gentoo depends on your specific needs and preferences. Here are the top options categorized by different use cases:
## For Minimalists and Keyboard-Driven Workflows
1. **i3**
- Lightweight tiling window manager
- Highly configurable with plain text config files
- Excellent for keyboard-driven workflows
- Gentoo-specific: `x11-wm/i3`
2. **AwesomeWM**
- Dynamic tiling window manager with Lua configuration
- More feature-rich than i3 while still being lightweight
- Includes built-in widgets and status bars
- Gentoo-specific: `x11-wm/awesome`
3. **dwm**
- Extremely minimalistic tiling window manager
- Configured by editing the source code
- Part of the suckless project
- Gentoo-specific: `x11-wm/dwm`
## For Visual Customization and Eye Candy
1. **Openbox**
- Stacking window manager with excellent theming support
- Highly configurable through XML files
- Works well with various panel options
- Gentoo-specific: `x11-wm/openbox`
2. **Fluxbox**
- Lightweight stacking window manager
- Similar to Blackbox but more feature-rich
- Good balance between simplicity and customization
- Gentoo-specific: `x11-wm/fluxbox`
3. **Xfwm4** (with Xfce components)
- Part of the Xfce desktop environment
- Good balance between features and performance
- Works well with lightweight panels
- Gentoo-specific: `xfce-base/xfwm4`
## For Modern Tiling with Advanced Features
1. **Sway**
- i3-compatible Wayland window manager
- Modern alternative to i3 for Wayland displays
- Excellent for touchpad and touchscreen support
- Gentoo-specific: `x11-wm/sway`
2. **Hyprland**
- Modern dynamic tiling Wayland compositor
- Highly customizable with YAML configuration
- Includes built-in features like animations and rounded corners
- Gentoo-specific: `x11-wm/hyprland`
3. **River**
- Dynamic tiling Wayland compositor
- Focused on simplicity and usability
- Good for users transitioning from floating to tiling
- Gentoo-specific: `x11-wm/river`
## For Traditional Desktop Environments
1. **KWin** (with KDE Plasma)
- Part of KDE Plasma desktop environment
- Highly configurable with both tiling and floating modes
- Excellent for users who want a full desktop experience
- Gentoo-specific: `kde-plasma/kwin`
2. **Mutter** (with GNOME)
- Default window manager for GNOME
- Modern with good Wayland support
- Works well with GNOME extensions
- Gentoo-specific: `gnome-base/mutter`
3. **Metacity** (with GNOME 2 style)
- Lightweight window manager
- Simple and traditional look
- Good for minimal GNOME setups
- Gentoo-specific: `gnome-extra/metacity`
## Installation Tips for Gentoo
1. **Use USE flags** to customize your installation:
```bash
echo "x11-wm/i3 wayland" >> /etc/portage/package.use/i3
```
2. **Consider overlay** for newer versions:
```bash
eselect repository enable gentoo-x86
emerge --sync
```
3. **For Wayland compositors**, you'll need additional packages:
```bash
emerge --ask x11-misc/wl-clipboard x11-misc/waybar
```
4. **For theming**, install additional packages:
```bash
emerge --ask x11-themes/arc-theme x11-themes/gnome-icon-theme
```
## Recommendation Based on Common Scenarios
1. **For developers**: i3 or AwesomeWM (keyboard-driven, minimal distractions)
2. **For artists/designers**: Openbox or Fluxbox (easy theming, visual customization)
3. **For modern setups**: Sway or Hyprland (Wayland support, touchpad-friendly)
4. **For traditional desktop users**: KWin or Mutter (full desktop environment features)
Remember that Gentoo allows you to mix and match components, so you can often combine a window manager with panels, status bars, and other components from
different environments to create your perfect setup.