What's the benefit of running a WM instead of a DE?
Hello! I've been running XFCE since I started out with arch (around 2 months now) and I keep finding that users here mostly use WMs like i3 instead of DEs. How are they better than DEs? And apparently they do divide the screen to fit several applications together simultaneously, does that work well on 15.6" laptops (1080p if resolutions matter in this case) it will I face some scaling issues / annoyances?
I know this may come off as a bit of a personal question and I apologize for that. I'm currently watching a YouTube series of vids explaining how to customize i3 and I'll try it out after reading about it more, i just wanted different opinions.
Thank you!
About this post
- Posted
- Archived
- Score
- 13 · 100% up
- Kind
- Text
- ID
- 4647da
32 comments
A full DE implements a lot of different things, such as notifications, mounting of removable drives, desktop background, screensaver and screen locking, start up programs, power management and much more. A window is manager is just windows and sometimes workspaces as well.
Many people think they DEs do way too much. Some people want to be able to control each of these components individually. For example, if you want to use a different program for your desktop notifications and have a DE installed, it's not always a trivial task to change it. Or automatic removable drive mounting, which can conflict with custom mount points you've set using other methods so people want to be able to control that separately.
And some people just think all that is too much infrastructure for things that can be done manually or done without.
The difference between a "WM" and a "DE" is honestly a nonsensical gut-feeling thing and basically seems to more often than not imply "uses a retarded UI that uses the mouse too much" when people speak of the latter more than anything.
Everyone runs a "desktop environment" in the end, the different components just may or may not come from the same brand being developed together, that's it. And how many KDE components do you need to switch out for other components to say you run Kwin as a window window instead of KDE?
It's a silly distinction.
With Wayland though, this distinction is about to get real in an uncomfortable way. with X. The different programs of a "DE" are just that, different programs, they may share the same brand name but that's pretty much it, there's nothing really special about it. With Wayland, these programs do require special integration with the compositor which means that various GNOME/KDE/Xfce whatever programs will actually stop working outside of their designated compositor on Wayland, this is not the case on X.
What? They are completely different things.
It isn't a desktop environment if you just run a bunch of apps that work mostly independently from each other.
KWin probably wasn't designed to be run as a standalone window manager. It'll require many KDE dependencies.
When people say they only use a WM they usually refer to relatively a lightweight one that can work more or less on its own.
How is this not a gut-feeling thnig?
But can't multiple compositors be run? What exactly are the differences I can expect to see when mixing and matching apps like this?
No, absolutely not. On X11, the "window manager" actually isn't special in any way. On X11 every client can control the placement of all other clients, a window manager is just a client specialized in doing that
On Wayland, the server, compositor and window manager are integrated into one application of which there can only be one called the compositor which should not be confused with an X11 compositor which does far less.
Essentially, you can't any more, Wayland from the ground up has been designed with "big DE's" in mind. Special applications that aren't normal windows like toolbars, status bars, slide-open terminal, hotkey-daemons and what-not are no longer portable and are basically part of the compositor on Wayland.
While it is certainly possible that a compositor implements some extension hooks for such things to hook onto it. They are not part of the core Wayland protocol and whether a standardized interface pops up that ensures some degree of portability, that remains to be seen.
I just started using i3, coming from gnome. I've spent quite a bit of time learning to customize i3, vs not really trying in gnome.
You are likely watching the series of i3wm.org videos I watched (BTW, these videos are outstanding technical presentations, I felt) I built from that, where I have five workspaces that load these apps on startx.
Workplace 1 Terminal where I have Terminator.
Workspace 2 Firefox where I have Firefox
Workspace 4 Shortcuts, where I have leafpad opening an i3 shortcut text file I made
Workspace 8 Images - where I have feh opened to a directory of favorite images.
Workspace 9 Thunar - where I have the filemanager Thunar opened.
I can just Mod + 1 to get to the Terminal or mod + 9 to get to the fm. And Mod + d to get to dmenu where you just key a few letters of an app name and it opens. That, and all the other shortcuts i3 defines by default.
The other thing I like is installing X, plus just the apps that I want. Makes for a pretty small install footprint, if that is interesting to you. I'm just starting with i3, so this is elementary I'm sure. I built a portable install on a USB3 flash drive, and the thing FLIES!
As to performance, i3 loads nearly instantly, gnome took few seconds. Nothing big, but I like it VERY much.
I'll just leave this here.
http://pastebin.com/iysukHFK
Or you could use the native method listed in the manual. At any pace I don't think there is much point to tiling if you only use 1 app per workspace
For me, it's more about i3 being more keyboard centric and lightweight. I do like the tiling aspect when I need a terminal open next to my browser for example, but it is much faster to navigate my desktop without my hands leaving the keyboard.
Ok. What would you recommend then?
Tks
In some cases, speed. A WM is often more lightweight then a DE.
Then there is choice. Some people like the way a WM works over a DE. Maybe because they want to save screen space, by forgoing a toolbar. Maybe they just like the way tiling managers work, etc. This is the main reason. Use what you like.
Often? Is there actually a DE that uses less resources than a WM out of the box?
Well, Rox is damn light weight. Also, I would consider icewm a "DE" instead of "just a WM", and it is pretty low end. Now, some WM's may be lower end then those, but I belive Openbox and PekWM are bigger. Not by much, but I think they are.
However, I was mainly "hedging my bets". I try to not deal in absolutes, as there may be an edge case I never heard of. Hell, I bet most people have never even heard of Rox.
If you use a WM and you configure everything for yourself you won't have things you don't want to have, you just have what you need, no less, no more.
I don't need everything a DE usually brings (although when I do, I will admit it is convenient) but more importantly for me, there are no good DEs that do tiling window management well.
Minimalism and the Unix philosophy about a tool doing one thing well and able to pipe with other tools. I just reinstalled Arch an my new desktop and didn't install a gui file manager. I am really enjoying ranger.
Can both a DE (GNOME for example) and a WM (such as i3) exist in the same system? If yes, can we switch between the two? Thank you.
Yes and yes. With a graphical display manager, you usually just select which one you want to run at login. I've never done it, but if you simply use xinit then there is a way you can modify your .xinitrc to allow you to choose. I've also read about (but never personally tried) using i3 as the WM for a DE such as XFCE to get what some consider the best of both worlds.
The main reasons generally are:
Choice, it does less so the user can chose what is needed and what programs to do it.
Lightweight. Since it does less it takes less resources.
More keyboard oriented.
Now, my thoughts on those reasons.
Definitely a valid reason.
Also a valid reason. Although computers are getting so powerful that on a decently capable system the difference barely matter unless you are doing something that is very performance sensitive.
Also valid, using the keyboard can be much faster. Although I have yet to find or figure out a keyboard based system that handles many windows as well as a keyboard+mouse system.
With many I mean I currently have 17 windows open and that's when having no work related things going right now. Then it can easily be 10 or 15 more.
With my fairly tweaked Plasma 5 I can get to any of those windows in under a second. I have yet to match that with a keyboard system.
For a few windows, or a heavily tiled setup, keyboard driven is great. But when you want many windows fullscreened it can have some problems.
It depends on how you prefer to mange the windows though. I prefer doing it visually, some may prefer binding shortcuts to them or something along those lines.
Flexibility.
Desktop environments are rather monolithic. They come with lots of things you may or may not need, just in case, and most of those things are implemented poorly compared to dedicated programs (is anyone really using Gnome's or KDE's built-in browser?).
If you start from a WM, you can add what you want, and usually better tools, without having all (or any of) the bloat. It's also more explicit how all the tools work together, so it's less opaque and easier to debug.
(E.g., on my Xubuntu machine there's something resetting my resolution on each login and I have no fucking idea where or how or why. Shit's driving me nuts for months now.)
:), I only know it because the Zipit Z2 had linux hacked into it, and Rox was the default on the released image. 32mb ram, it needed to be light :).
Before using i3:
My currently favorite DE has been KDE for awhile. It's really customizable and the redesign looks really good. There's a lot of features I haven't really scratched the surface of as well.
I started playing with i3 a few months ago. It took time to learn and customize to my like, but it's cool and has that "hacker" look when other people see it in action. I still popped between KDE and i3 for awhile. After using i3 for some time:
I'd just log into i3 normally after getting the hang of it. I'd play around with KDE every now and then because it's pretty and a bit more what I've been familiar with from previous computer experience. I also liked seeing the new updates that come in and see how that would make things a bit better.
One day I logged into KDE and got a bit annoyed when meta+enter didn't open up a terminal. I also got a bit annoyed that I couldn't open up dmenu/rofi. Krunner is nice, but the shortcut is a bit more complex in comparison to dmenu. I only wanted to use it to open applications. Then the lack of automatic window tiling, tabbed windows, and navigation between windows/workspaces via shortcuts was what got me. I realized I had gotten faster navigating i3 than KDE, and I never used everything in KDE either. KDE is great, but switching to i3 was purely practical for me. I may have been able to replicate some of i3's functionality in KDE, but there wasn't much point since i3 already did everything I wanted. To answer your question about laptops: Yes, i3 works great for me personally. If you have a typical laptop it will work fine. I have a Chromebook Pixel and i3 even works with the touchscreen. It's mostly unnecessary for a WM, but nice for scrolling PDF's and webpages. I also have an old Macbook and Asus eeepc 701 that runs i3 just fine. Another great thing about WMs is how little they need in terms of power to run them. I can use the same WM on a a really old laptop and a new machine and not notice much difference in navigating the UI in terms of any sort of lag. If you start using a web browser or anything that needs a bit more power you'll notice it though. Though the little Asus eepc works as a great ssh machine if I need it to. Aside from the cramped keyboard anyway.
if you have old/slow/cheap hw there is a noticeable performance difference (obviously running on a 4000 eur pc you're not going to notice anything and if you do it because you have a configuration error somewhere)
there is also the fact that there's less processes running at any given moment so there is a lower chance for some strange bug caused by their interaction to pop up
some people also just prefer user interfaces that don't try to do everything