[Tutorial] Easy Setup: Endeavour XFCE + i3 tiling window manager

updated to coincide with the latest iso August 28, 2021

As per a request: EASY setup of XFCE while using the i3 window manager in place of xfce4. @nate - give it a go, maybe it’s what you’re looking for.

I’m sure there’s more than one way to do this. I’m sure you can do it by adding in i3 later. This is a walk through from fresh install to a nice usable setup the way I do it. Please pour yourself a drink and let’s go!


Alright, so we have our live USB. It’s time to install! It’s VERY important you select both XFCE and i3 now at the same time. This will very easily put all of the i3 config files in the correct place for you, and give you all of the EOS keybindings and such to go with it.

You will need to de-select the EOS themeing and install the vanilla XFCE for this tutorial

I would also strongly suggest installing the LTS kernel at the same time.
For simplicity of this installation - I will be using ext4 filesystem and no swap - please configure your installation to your liking.

2021-08-30_17-09

Screenshot_2021-08-30_16-47-49

Screenshot_2021-08-30_16-55-01

Now that we’re done, it’s time to log into your XFCE user space.

As you can see, XFCE and XFCE4 window manager. Pull up your terminal though, and you’ll notice if you pull nano ~/.config/i3/config we in fact also already have a nice preset i3 config file with preset keybindings ready to roll for you.

Screenshot_2021-08-30_17-26-56

But we’re not here to install XFCE and then i3. We’re here to use both at the same time

So here we go.

The next step from here is to open up your startup session. We need to kill off xfwm4 and xfdesktop. We won’t need them, those are what we will be replacing with i3. You need to switch them from “Immediately” to “Never.” and then click on and Save Session

2021-08-30_17-29

After saving your session you will need to click over to Application Autostart, this is where we will put in i3 as a startup application. The name and command are both i3, but you can put whatever you want as the description. Click ok and notice that i3 now shows up as an Autostart application.

Screenshot_2021-08-30_17-31-06

2021-08-30_17-31

Next up, XFCE is super nice to provide us with keybinding shortcuts. But, it would be a shame to have i3 and not use the i3 keybindings. So, the next step is to pull up the XFCE shortcuts and remove ALL of them. Don’t save any, even if you think you need it, you don’t. We will be using the i3 config file and to make life easier, you will want to nix the whole lot of them.

Screenshot_2021-08-30_17-32-52

2021-08-30_17-33

And that’s that, Log Out and Log back in to see your nice new fancy XFCE system with i3 as it’s window manager! We’re not done, but we’re getting close! At this point everything works! Maybe a bit too well. At this point you can choose to lose xfce4-panel - which I didn’t want to do, it’s what originally brought me to look into this, or you can lose i3bar (I guess if you really wanted you could keep both, but that’s up to you).

Screenshot_2021-03-29_20-07-34
I apologize for the old photo - I forgot to screenshot in the process.

Pull up the i3 config with nano ~/.config/i3/config

We are now searching for the area where i3 bar has been setup for us. we need to # out ALL of the highlighted area. Every single line where I have highlighed here. Your i3bar config section should now look like this.

Screenshot_2021-08-30_17-47-01

By now you have probably been prompted by Firefox and have seen this warning about dex. So, we will need to edit that out next:

2021-08-30_17-55

2021-08-30_17-57

At this point. Write out the config with ctrl+o and restart i3 with mod+shift+r

You now have a fully functioning xfce system with i3 wm using a proper xfce-panel - which comes with 2 panels out of the box. Due to i3wm tiling windows, the bottom panel diverts everything to the left, I just right click on the panel preferences and remove Panel 2, leaving you with the top bar.

Screenshot_2021-08-30_17-50-21

You should now have a nice empty, xfce4-panel, and a beautiful background. You’re now prepared to take on the world with XFCE+i3!

Screenshot_2021-08-30_19-38-32

At this point the tutorial is over. Opening a bunch of terminals, they will open at will to the right as many times as you want as per the config file. mod+h for horizonal and mod+v for a verticle split. I personally prefer that action to occur automatically @Pudge - this is for you buddy.

Screenshot_2021-03-29_20-15-37

yay -S autotiling

Once installed we will need to put it into our config file again at

nano ~/.config/i3/config

I highlighed where I added it in. You’ll need to insert the command:

exec_always --no-startup-id autotiling

Write out and restart and profit! This is now AUTOMATIC window management for you in alternating horizonal/vertical splitting.

Screenshot_2021-03-29_20-16-04

Screenshot_2021-03-29_20-17-57 Screenshot_2021-03-29_20-18-21

On that note, this completely concludes my tutorial. You (should) now have Endeavour XFCE+i3 or as I’m officially calling it the “Bender DE.” There’s no implied warranties, things may not work, this may be complete trash for you. All complaints will be handled by my QC department - and since my dog doesn’t have thumbs, he’s really REALLY bad at replying to your emails.

If you’d like to make a donation to me for my time - please make it to the Endeavour Devs, they do more than I ever could. Plus I’ll probably just blow it on beer anyway.

Anyway, this is all in fun, I hope if nothing else this was entertaining for you.

Cheers,

Derek

Screenshot_2021-03-29_20-28-18

TIPS & Tricks (Will update as questions/comments come up)

  • How do I set a new wallpaper?!

You won’t be able to use xfce settings to change your wallpaper. As per your config file you will now need to use Nitrogen!

You must first add whatever photo to the applicable file location

/usr/share/endeavouros/backgrounds

I suggest using the terminal program mc since it’s easy and save to run as su. Once your wallpaper is saved in that folder, Nitrogen will now be able to see it, and it’s as simple as click and apply!

  • The Windows key doesn’t open the whisker menu anymore! Help!

I added this in the config to the section that says

######################################
# keybindings for different actions: #
######################################


# keybinding whisker menu
bindsym $mod+shift+z exec xfce4-popup-whiskermenu

You can really use whatever keybinding you wanted. But since I usually have my right hand on the mouse, this was an available combo that was very easy to do with only my left hand. Whatever you want is up to you, The best part of i3, is it’s your computer.

  • Use xfce4-screenshooter for screenshots:

Under ## App Shortcuts I have commented out Print exec scrot and added a line for xfce4-screenshooter:

## App shortcuts
bindsym $mod+w exec /usr/bin/firefox
bindsym $mod+n exec /usr/bin/thunar
#bindsym Print exec "scrot ~/%Y-%m-%d-%T-screenshot.png"
bindsym Print exec xfce4-screenshooter && exit

  • The “Welcome App” shows up on every login even after I told it to go away - thanks @Christopher67

You can either uncheck it during initial setup if you know you don’t want to see the welcome app anymore. If you’ve already gotten this far and you don’t want to see it anymore, you will need to go into the settings menu and over to “Session and Startup” again. It’s the same place we added in i3wm for startup. The box for the welcome app will need to be unchecked and the session saved again. From henceforth, you should no longer see it upon startup. *Note - you can always open this manually from the whisker menu at any point, and can be re-enabled by re-checking the box in Session Startup again.

Screenshot_2021-08-30_17-58-56

Disclaimer - as of Aug 30, Rofi has theming issues - we’re working on it. Everything else about it seems to be working so far on xfce-i3 though.

37 Likes

I’ll have to try this out. I don’t do any development that requires tiling but it looks like a perspective that might be enjoyable. Ran Open box for a couple early years with manjaro then switched to xfce/4. Just lazy and easy-works.

Thanks Derek for the tutorial we need that category! It merits.

2 Likes

This is just wonderful, thank you! :heart_eyes: :+1:

1 Like

Thanks, 1000 times for this! I have done such tutorial long time ago but gone far outdated.

4 Likes

@joekamprad obviously would know better but I believe this happens because of the i3blocks config and associated scripts. Can you check to see if it actually running in the background and just not visible anymore?

Thank you so much for taking the time to write this up! Kind of nice to have i3 tiling and all the xfce candy too!

I may give this a try soon.

1 Like

I used to do this whole setup with my own i3 config and I never threw the error before. I was really trying to figure out if I could make it super easy so people could try it and get started. I will dig deeper and see if I can figure out why. But you’re probably right, I’m sure it’s something to do with that.

I would suggest a VM or test machine, or maybe a very comprehensive timeshift backup if you’re going to try and add it to an existing XFCE install. There’s several files that need to go in specific places IE - xinit, this i3 config, etc. And it’s also a fair amount of work to undo once you get it going. It’s a lot of fun to try though, and something a little more involved than just a “distro hop.”

1 Like

Thanks for putting it out!

Those screenshots make the post even better :rocketa_purple:

1 Like

I have a separate XFCE and i3wm on my laptop. I use XFCE when I’m on casual, and i3wm when I’m on dev. But I’m curious, what’s the good of XFCE + i3wm? Does that mean you can use mouse when you’re bored and use your keyboard shortcut when you’re on focus?

1 Like

Essentially, yes. Originally I started looking into this so I could still use the whisker menu and xfce panel with like the Bluetooth icon and stuff easily. Adding the panel to i3 is not nearly as simple as one would think. I found it was much easier to add i3 to xfce than to add all things nice from xfce to i3.

So i just want to understand a couple things? So you never have to change at the log in screen to boot into i3 you are actually booted into xfce and have i3 installed and using the I3 window manager?

Yes you are replacing XFCE4WM with i3WM.

3 Likes

You’re not using i3. You’re using XFCE with i3 instead of XFCE with xfwm4.

Login to XFCE as you normally would.

Okay one other question. How did it change from the vanilla to the eos-theming and have the icon bar that is at the bottom middle go away?

1 Like

It’s in the op somewhere. You just remove it.

So I didn’t explain this part in the tutorial because you don’t really have to do anything. But your theme will now come from your i3 config since that was one thing that we removed. If you want to set a new wallpaper you will do so with nitrogen and your config will recall it with the exec – restore command.

Okay I missed the part about removing the panel 2 but I’m left with the bar on the bottom?

Edit: Was that supposed to be removed?

Here:

1 Like

Okay i think you missed commenting out one line in the original post that i followed?

strip_workspace-numbers yes

Edit: No that wasn’t it. Must have been something else?

My highlighted section is EXACTLY the same as yours? And you wrote out and reloaded? Are you getting an error?

Looks like the 3rd line with white background (the line that has word: bar) should be commented out too. That’s what I did, and it works.