DEV Community

Ayedoun Châ-Fine ADEBI
Ayedoun Châ-Fine ADEBI

Posted on

🌟 Ready to transform your desktop into a superpower? Let's get started! 🚀

Part 1: Installing XFCE and i3

Step 1: Get Ready for Action - Install XFCE and i3

Before we begin, you need to install XFCE (a lightweight, awesome desktop) and i3 (a tiling window manager that’ll make you feel like a wizard). It’s simple:

For Ubuntu/Debian users:

Open up your terminal and type:

sudo apt update && sudo apt install i3 xfce4 xfce4-goodies
Enter fullscreen mode Exit fullscreen mode

For Void Linux users:

Type this into the terminal to make your computer even cooler:

sudo xbps-install -S i3 xfce4 xfce4-goodies
Enter fullscreen mode Exit fullscreen mode

Now, sit back and relax while the magic happens (aka, your system installs all the goodies).


Part 2: Let's Get to Work — Set Up i3 as the Window Manager

Alright, it’s time to do some wizardry and make i3 take control of your windows. 😎

Step 2: Tweak XFCE to Make i3 Your Window Manager

  1. Log into XFCE first! If you're using a login manager like LightDM, select the XFCE session to log in.

  2. Tell XFCE to Use i3:
    We’re going to tell XFCE, "Hey, i3 is now in charge!":
    Open a terminal and run this command:

   xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command -t string -s "i3" --create
Enter fullscreen mode Exit fullscreen mode
  1. Restart and See the Magic: Log out, then log back in. You’ll now see i3 taking charge with all the power of XFCE still backing it up. 😁

Part 3: Make it Look Cool — Wallpapers and Panels

Step 3: Set Your Wallpaper Like a Boss Using feh

We’re going to make your desktop look awesome with a wallpaper, using feh. It’s lightweight and fast—perfect for i3!

  1. Install feh:

    • Debian/Ubuntu:
     sudo apt install feh
    
  • Void Linux:

     sudo xbps-install -S feh
    
  1. Set the Wallpaper: Now, we’re going to make your desktop look amazing:
   feh --bg-scale /path/to/your/wallpaper.jpg
Enter fullscreen mode Exit fullscreen mode

(Replace /path/to/your/wallpaper.jpg with your wallpaper file’s location).

  1. Make it Stick:
    Want the wallpaper to stick around? We’ll make sure it shows up every time i3 starts:

    • Open your i3 config file:
     nano ~/.config/i3/config
    
  • Add this line to the file:

     exec --no-startup-id feh --bg-scale /path/to/your/wallpaper.jpg
    
  • Save it, then reload i3 with Mod + Shift + R. Now you have the wallpaper forever!


Step 4: XFCE Panel — The Superhero of Your Desktop (Optional)

We’re going to bring the XFCE panel to life! 🎉

  1. Open the XFCE Panel Preferences:
   xfce4-panel --preferences
Enter fullscreen mode Exit fullscreen mode
  1. Adjust the panel settings—move it, resize it, and add things like a clock, system tray, and application menu.

  2. Autostart the Panel:
    Let’s make sure the panel starts automatically when i3 does:

    • Open your i3 config file:
     nano ~/.config/i3/config
    
  • Add this line to start the panel every time i3 launches:

     exec --no-startup-id xfce4-panel &
    
  1. Save and reload i3, and you’ll have your XFCE panel right on top of i3. Cool, right? 😎

Part 4: Make i3 Even More Fun — Customizations

Step 5: Keybindings for i3 — Control Your World

Now, we’re going to make sure i3 listens to your every command. We’ll set up some cool keybindings for a smooth ride!

  1. Open your i3 config file:
   nano ~/.config/i3/config
Enter fullscreen mode Exit fullscreen mode
  1. Add some sweet keybindings. Here are some to start:

    • Open terminal with Mod + Enter:
     bindsym $mod+Return exec i3-sensible-terminal
    
  • Open Firefox with Mod + B:

     bindsym $mod+b exec firefox
    
  • Switch between windows (move your focus like a ninja):

     bindsym $mod+j focus left
     bindsym $mod+k focus down
     bindsym $mod+l focus up
     bindsym $mod+semicolon focus right
    
  1. Save the file, and reload i3 (Mod + Shift + R). Now you’re ready to control your world with these shortcuts!

Step 6: i3 Gaps — Because Gaps are Cool

Want some extra space between your windows for that extra flair? Let’s install i3-gaps, the cool sibling of i3.

  1. Install i3-gaps:

    • Debian/Ubuntu:
     sudo apt install i3-gaps
    
  • Void Linux:

     sudo xbps-install -S i3-gaps
    
  1. Set up your gaps: Open your i3 config file (~/.config/i3/config) and add this:
   gaps inner 10
   gaps outer 10
Enter fullscreen mode Exit fullscreen mode

(Adjust the numbers for bigger/smaller gaps.)

  1. Reload i3, and voilà! Your windows have sweet gaps between them.

Part 5: Extra Cool Tweaks — Because You’re a Power User Now

Step 7: Install Rofi — Your Stylish App Launcher

Want to launch apps like a pro? Let’s install Rofi!

  1. Install Rofi:

    • Debian/Ubuntu:
     sudo apt install rofi
    
  • Void Linux:

     sudo xbps-install -S rofi
    
  1. Set it up in i3: Add this line to your i3 config file:
   bindsym $mod+d exec rofi -show drun
Enter fullscreen mode Exit fullscreen mode

Reload i3, and now you have a super sleek app launcher! 🚀


Conclusion: You’re Now a Master of XFCE + i3! 🎉

Look at you now! You’ve set up i3 with XFCE, customized your desktop, and made it look awesome. You’re officially a Linux wizard! 🧙‍♂️✨

Feel free to explore and tweak more settings—because Linux is all about personalization. Have fun experimenting and making your setup unique. The possibilities are endless!

If you run into any roadblocks or just want to add something cool, come back to this guide anytime.

Happy Linuxing! 😎🎉

Top comments (0)