 All right, let me tell you about window swallowing. If you're still not sold on using DWM, hopefully this will convince you. Here's this annoying thing that happens on Linux, that if, I mean, if you use Linux, you're probably used to it. I mean, it's not just Linux, but either way, window swallowing solves it. DWM solves it. Let me show you the issue. You're all, you've all seen stuff like this before. Here's the stuff in my home directory. Let's say I wanna open up, you know, this video here I have downloaded. Okay, so I'm gonna run MPV and then I'm gonna run it on that video. Okay, so what happens by default is that that window, that, you know, video is gonna pop up so it's in like a separate box. And over here we have this original window that was open and it's just like running nothing. I mean, I guess it has some information about the file but like who cares about that? If I wanna know where I am in the file, I can just, you know, see it in the video program. So for those of you, right now I'm actually running I3. I installed I3 just so I could show you this deficiency. It's totally deprecated because DWM has a way of dealing with this problem. And actually it's even worse than you think because let's say, oh, I wanna get rid of this terminal window, so I'm gonna X out of it. That of course is gonna X out of the window as well, which is a big pain, okay? Other example, let's say I have a, you know, I have a JPEG file here. So I open it in my image viewer, okay? So here's my JPEG file. Oh, it's one of those cute little retarded Pepe things, okay? Either way, if I get rid of this window, which has literally nothing in it, it's gonna close out of my graphical window. It's just taking up space. I guess I could send it to another window or something but I mean, the real way you're supposed to do it, the inefficient way that I usually end up doing it if I have to work with I3 is you'll use the Setsid command, okay? So Setsid, give it the F option, then run the command you want, okay? So let's say the video and then it's gonna pop up. It still has this stupid window here but you can at least X out of it, okay? Or you could run the same thing and echo the output to DevNull, right? All of this is stupid. I'm telling you how to do this, assuming like maybe you already know about this but it's just something you shouldn't have to deal with. So now let me show you the same problem, problem but with the solution in DWM. Okay, so now I'm back in DWM. Let me show you how my DWM build will take care of the same problem, nice and easy, okay? So again, we have these files. I'm gonna run it exactly the same command, no Setsid F, no piping that or sending the output to DevNull. I'm just gonna run it directly on this video file. What's gonna happen? It's gonna pull up the video file and it's gonna replace that terminal that it's gonna swallow up that terminal that otherwise would be nothing. That's an automatic feature you can build into DWM, again called swallowing. Let me run my image viewer on that image file and you will see that it does the same thing, okay? And when I'm done with these things, let's say I quit out of the video, it actually, my terminal is still there. So if I wanna do something else in there, I can, okay? Same thing with this image file. Once I delete it, my terminal is still there. DWM has this swallowing ability you can work into it where you basically, you know, it sort of, I mean in a way, it's actually very suckless because it gives sort of your terminal the ability to view videos in a way of looking at it, okay? So the patch for it is on the suckless's website. It's called Swallow, as I said before. Swallow, all right. And this is, so far as I know, this is a really, I don't know any other window managers that can do something like this, but this is an example of one of these features that, you know, you might not wanna build into the default build of a window manager, but suckless has this great ability since it's, you know, you're supposed to have your own build of everything, oh, they can just put it up on their website and it's great. So you can get the patch, run it on your build. I'm gonna show you what I have in my build. You basically have to say, if you go to your config.h once you've patched it all in, you basically give your terminal this value. So, you know, I'm using st as the terminal and you have to give it this value. And that basically means, you know, things should be swallowed from, like if you run something from this program, it should swallow the program, okay? And additionally, now one exception, you can make exceptions to this as well. So one pretty good exception, like one program that you actually wanna see the output to is Zev. So Zev, if you don't know, it's basically like an event handler. So if you like, you know, type stuff on Zev on the left, which is just a blank white screen, it'll show you what's going on on the right. So it's a way to like test key presses and stuff like that. So you actually wanna see, or your mouse moving around. So you actually wanna see this output. So in that case, you know, and this is like the only program that I can even think of where you actually don't want it to be swallowed. But basically what you do is this line right here, actually to be clear. So let me, what you really wanna do, so let's run Zev and you wanna run xprop and click on Zev and it'll tell you it's information, like it's official window name is event tester. Well, then you just go here and you can put its title as event tester and say, oh, give it the no swallow, A for, or A one for no swallow, okay? So that's how you do it. So this is just a really sweet feature of DWM. And I'm actually, the thing is most of my configs for most of my files, like let's say LF, my file manager, they're calibrated to have to work around the fact that, you know, you're gonna be bringing up, let's say, okay, here's an example. Let's say I go to, you know, this file, this image file or something like that and open it up. Now I have it, so it automatically just covers up LF. You know, I just have LF created. Now if you were doing this on i3 or another window manager, you would either have to put in setsid and then, you know, an and at the end so it doesn't, so you can basically keep working on your terminal. You have to put all that junk in. But in this case, you can, again, it basically turns your terminal. It gives you your terminal in practice the ability to watch movies or look at images and stuff like that without having to think about it. So it's one of those great features of, it really shows you the usefulness of, you know, I guess the suckless mindset or whatever. Okay, so that's about it. That's just the minor, this is just the minor thing I wanted to do a video on because it's a pretty cool feature. You should know about it. All right, so that's it. See you guys next time.