 Hey everybody welcome back to the channel today. I'm going to be talking about a script I made that will allow people who don't want to install DWM manually to install my rice of DWM on their systems So I'm gonna walk you through how I made it what it does some of the things that's limited in not doing and Some of the things that I'd like to do in the future. So let's go ahead and jump in All right. So first we'll take a look at the Script on github. So it's called DWM ricer not the most original name ever, but whatever and Basically all it has it has the script has this image here. It has a readme, which is all the stuff down here and It has the fonts that you'll need now the it Now the fonts themselves will not install by themselves you have to do that on your own and And how you do that really is up to you You can a lot of desktop environments while you just double click on them and install them that way You can also move them to users slash share slash fonts. I believe you may need sudo to do that. I'm not actually sure Uh, maybe someday in the future. I'll go through and have the script install them for you but as of right now These fonts here are the ones that you need to install and that's just for the Icons up here at the top in order to actually show up. So you'll have to do that Other than that everything else is fairly easy. You just you know clone this and install it and I'm going to show you this on Arch and I'm going to show you this on Ubuntu. So by default the script is set up for arch Linux And uh, if you're going to use it on Ubuntu, you'll have to uncomment a line So I'll show you that as well. So let's go ahead and go through and do it on arch first So I have arco here. This is arco with xfce. So we're just going to start the The vm and let it start up. Now as you can see, this is a brand new installation of arch Linux or arco in this case. I guess um I have done nothing to it So the first thing you'll need to do is find the script. So just go to your firefox or your browser or whatever and type in github hub.com slash mtwb 47 that's my github page and click on repositories dwm riser and then Copy this code here now Whether you do this on an arch based distro or you do it on ubuntu You will have to have get installed before you can install this The script itself will not install get You can't even get the script unless you you know copy and paste it. I suppose Without actually having to get installed. So open up a terminal if you're an arch sudo pacman dash s get okay, and I I know arco already has this so it's just going to be a reinstalling oops Actually got to have to spell pacman right at There we go, and then as you can see it says, um Actually, maybe it does have I have doesn't have getting installed on medic. So i'm god. I'm doing this Lesson learned arco always has get installed. I thought maybe not anyways once you've got that installed And we'll zoom in here And make this full screen Then you just want to get clone that URL that you just Downloaded so get clone and then control shift v to uh paste and enter and it will clone it And then we're going to cd into dwm riser and we can We can clear this and do an ls and we see this file here will not be there That's in there by accident. We have the script. We have the font folder We have the screenshot that's on get and we have the read me So if we them into dwm install that sh What we have here is just a simple bash script and First thing we're going to do is install dependencies. So the dependencies are going to be different depending on What distro you're using so if you're using arch all you'll need is sx hkd and alacrity So And and this is by default It's uncommented all you'd have to do if you want it to is just run the script If you're on arch linux or are an arch based distro If you're on ubuntu, you'll have to come in here And you'll have to comment this one out here. So get into insert mode Do a do a pound sign and then delete this pound side here that would that would switch you from the arch script to the ubuntu or debian based script But i'm an arch this time so We'll leave that one uncommon now I'm going to talk a little bit more about the dependencies for ubuntu and debian when we do that in a few minutes. So after that We clone a few things. So we clone my scripts that will allow the um Scripts for the bar to work and we clone my pack my sequels folder, which has dwm st surf And d menu all in it all and it will all go into a suckless folder inside your dot config directory Once it's done cloning it will CD into the suckless folder that it just downloaded It will move the dwm to your home folder because that's where it needs to be It will cd back into the home directory and then it will cd induce the scripts Which is what the thing that it it downloaded up here from git and it will move the weather dot pi the pack update dot sh to Uh user dash local dash bin, which is your main path now Weather dot pi will work on any distro, but pack update dot sh will only work on arch So if you are downloading this for ubuntu, just know that that particular script for the bar Will not work And i'll show you that when I When we go to the ubuntu part after that we'll cd back home it will do and now we're going to do Now we're going to go through and um make the stuff that we need to make so we cd into suckless dot dwm And we remove my config dot h because it's going to make a new one and it's going to sudo it make install It's going to do the same thing for st s l status D and d menu it doesn't do surf I think surf is actually there But it doesn't make it so if you're going to want to want surf you'll have to go through and make it yourself It would be the same thing. You just cd into it. So we don't make install make sudo make install and you'll be fine Uh s cd is back home. This one here is where things get a little squirrely. So Uh s cd is into the x sessions folder and this what this does is it goes through and creates an entry in your login manager In order to create dwm in the login manager For whatever reason it required me to change the user to the user On a boon too. I don't know if it had to do that on arch because I tested this on papa west first. So Um, it required me to change the user for some reason So I just put this in here. It doesn't hurt anything to change it So it's just done. So it creates a dwm desktop file Changes the user and then it cats this stuff out into that full folder using A cool way of catting things which I'd never used before I had to look this up. So that's done And that's literally the entire script So let's go ahead and get out of this And let's go ahead and run it. So in order to run it you do dot slash dwm install the sh Okay, and then you hit enter It's going to ask you for your password You know, I don't actually have to have the password because I've just entered the password earlier But it will ask you for your password and it's going to ask you to confirm Whether or not you want to install these things so it's going to install lacrity It's going to install sx sx hkd. Yes, it's going to install those things And then it's going to go through and do the script And then it should be done all we have to do now is close this Close this and say close tabs and we're going to log out now SDDM does not like Virtual box all that much so I have to get out a full screen And try to get this to work Sometimes I have to go back into full screen and back out of full screen And then try to get this to work. There we go. Now, as you can see dwm is here Now this is going to look different for everybody depending on what login manager you use Most distros use light dm. So there might be a Like little gearbox up here at the top. You'll just have to look for it and then you just type in your password We'll make this full screen again. And as you can see we have DWM now if you There are a list of my key bindings On the git page for this github page for this, but super enter will get you will usually get you a terminal and it does So and this is alacrity. So that's how you get it on arch. Now, let's go ahead and jump to ubuntu Okay, so this is just a log standard lts version of ubuntu. I've done absolutely nothing to it Uh and the process is basically the same except for a couple spots So let me talk about those when we get there. So let's first get the script. It's going to be exactly the same We open open up firefox go to github dot com Can't type m mtwv 47 And then repositories and then dwm riser And then we copy this url here now we open up a terminal And we zoom in so that we can actually see this Okay, now the first thing we want to do is sudo apt install git Okay, and then type in your password And then hit y for yes, and it will install git Now that is an absolute must this will not work without git Unless like I said you copy and paste the script and then put it into a You know a text file and then change the Uh permissions on it. It's much easier just to install git So We'll clear this and we will go ahead and clone dwm riser. So we'll get Clone and then control should be to paste and let that clone We'll cd into dwm riser We do ls and we have the same files as we did on arch. We're going to vim into dwm install the sh Oh, I don't have them installed. So I'm going to that's another I could you could use nano So if you have if you don't have them installed, which apparently I don't on this machine you do nano dwm install Okay Now here's the things we're going to want to do you're going to want to go through and Comment this out so Hit the pound sign at the beginning of this line and delete this pound sign here Okay Now what this is going to do is download the dependencies that are required for ubuntu. So if we zoom out in just a little bit So we can actually see some of this and make this full screen maybe It's still not going to be all beyond one line And I know that's going to bother some people that they can't can't actually see this. So where the hell is my There we go. All right, so it's going to install sx hkd. It's going to install build essential which is basically the make commands And dwm requires libx 11 dev lib zanorama dev share util suckless tools And lib xft And l ibc 6 Those are all dwm dependencies now You could theoretically install st and ddim d menu in this line here But I prefer building them on their own that way you can go through and patch them later if you choose to so after that The Script is exactly the same. So it goes through and does everything exactly the same. There's nothing else you need to change You just need to save this which you can do by hitting control x and then yes And then enter Okay, now here's the thing Alacrity is not packaged for ubuntu. So my build of dwm will not have a terminal functional for you If you are on ubuntu, that's just a sad fact of it now If you're on pop you can install ubuntu from their app store. You can't do that on ubuntu Apparently I'm actually I could probably go through and make sure that's actually true If this thing actually want to load this is a snap so that it's going to take forever to load. Here we go So we're going to search for alacrity. I don't think it's here. Oh, it actually is here so you can go through and download alacrity from the The software center And you have to do that because I can't you can't do as far as I know You can't do sudo apt install alacrity no But you might be able to do sudo snap install alacrity No, so you have to install it from the uh the software center You have to do that before you log up And log back into dwm after you've done run the script because you'll need alacrity. Otherwise, you'll need to go into dwm The dwm folder in your config file Change the alacrity thing Actually, I think alacrity is called from sx hkd now that I think about you'd have to go so you'd have to go into the sx hkd Thing in dot dwm, which is in your home folder change the alacrity Thing to a terminal that you have so either can I'm terminal or termite? I actually probably can't get termite I don't go into either or not. I think about it But anyways, so to run the the script It's exactly the same so dot Slash dwm riser dwm install a sh Hit that it's going to ask you so normally you'll have to enter your password But we've already done that once so you don't have to do it again It's going to ask you to confirm yes, and then it will go through and install those dependencies It'll take a few seconds Shouldn't take too awful long to really depend on your internet connection. I guess For me it takes about I don't know 45 seconds or so. It's almost done And then it goes through and does the script And it looks like it was all successful now Here's the thing and I didn't mention this with the arch if it fails The reason for the failure will be in this nonsense up here somewhere You'll see an error now. We do have some errors here. That's just because there are some unused functions within the dwm script that I use For usually are on gaps, but usually where you're going to find the errors is going to be up here either in The dependency section or after the build and it will tell you that if If it didn't build it'll tell you why And if you encounter something like that File an issue on github and I'll try to help you but don't lose this if you enter if you Get a if you get an error copy and paste this stuff so I can actually see it Okay You can always go through and run the script again. You should be able to get the same errors in case you do lose it All right, so we've ran the scripts. All we got to do now is close this Close this hit close tabs And no, I don't care about updates And then we're going to log out And then here in Ubuntu you have to click on your name and then there's this little um Let's see if I can actually main no camera. So down here at the bottom. There's this little Uh Year or something you just hit dwm type in your password And by the bam by the boom you're in dwm and I didn't install lacrity. So if I hit control enter or super enter, I'm not going to get anything so if You get to this point and you don't have a lacrity installed Hit can hit super p that brings up d menu Okay, and you can go through and Type in a terminal that you know, you we do know that you know you have so we know we have genom terminal So it should be here somewhere Good lord, there's a lot of genom shit here terminal So we just open that up and we have genom terminal And then you can go through and install any of the things you needed to know In order to change this so we if you want to change to genom terminal So let's zoom this in here. We do cd into dot dwm and uh cd into sx hkd and nano because we don't have them installed sx hkd rc And we change this word right here Oops, I know I can't change word matt because you're not in vim Ah Nano sucks you just change this to genom dash terminal or whatever terminal you want to use And then you would hit um Would save this so uh Control x Yes, enter and then you hit super Escape to refresh s sx hkd. Sx hkd. You can't say the freaking letters And then then if you hit super enter you should get the terminal which it did not do I wonder why There we go. It didn't actually go through and register Uh the sx hkd refresh But it did now so I can hit control enter as many times as I want I don't know why you'd want get on terminal as your terminal, but Whoever floats your boat Uh The one thing I didn't talk about in this video is rofi. I did not install rofi Uh, so I don't know actually meaning because I forgot so I don't know if we can sudo apt install rofi I don't know if that works or not. We'll see It actually will Okay So now if we hit super d we'll get rofi So if you'd rather prefer rofi, I think what I'll do is before I after I upload this video I'll go through and change the script so that it will install rofi on both arch and Ubuntu that way this is possible because I do have all the rofi stuff here so, um One thing it will not do is get my rofi theme So you'll have to get your own themes. You can just do rofi You should be just to be able to rofi theme selector, but apparently that's not here. Um anyways That's the script. It's Not a good script I'm not a good Bash descriptor like at all. I mean as you see the syntax is very Uh, childish Immature, I don't know. Um amateurish amateurish I'm still learning but it works it works and I've tested on both Ubuntu and arch now if you're on a different distro What I would suggest is commenting out both of those dependency install lines Just comment on both out and install the dependencies on your own now if you're on fedora or open suza I'm not sure what the dependencies are, but I'm assuming they're going to be the same as Ubuntu I'm not not sure if the package names will be the same. You'll have to go through and find that out I don't know. I've never installed dwm on On um fedora or open suza. The only thing I've ever installed it on is debian based distros In arch based distros, so and I know that this script works in there Now if like I said if you have an issue file it on github, I'll try to help Make sure you give me as much information on errors that you received during the run of the script As possible so that I can you know try to help. Anyways, thank you for watching You can follow us on facebook and twitter at the linuxcast You can support us on patreon at patreon.com slash linuxcast. I'd like to thank our patrons devon zack marcus american camp Thanks for your support. Thanks everybody for watching. I'll see you next time