 Hey everybody, welcome back to the channel today I'm going to be talking a little bit about how you can add color to SL status now if you don't know what that is SL status is a Patch for I guess it's a ancillary program. I guess is what you call it to DWM. It's what you use to put these Mod modules or widgets or whatever you call them. I get scripts in the DWM bar So if you don't use DWM this video is probably going to be mostly nonsense to you But it's fairly interesting because there's a story that goes along with this if you've been watching the channel for a little while You'll know that I released two videos on DWM probably in early December Close to two months ago and there were utter failures in terms of actually doing anything in terms of ricing or customizing DWM mostly because Of the way I had done the patching for that install DWM It was not well done because it's my first time patching and one things that you have to learn when you patch DWM is that you very have to be very deliberate in the patches that you use You can't install all the patches no matter how much you really want to I mean You know, it's really cool to try new things and that's awesome new shiny toys and stuff, you know I'm a nerd so of course I'm trying to go through and try new things But with DWM you really have to narrow down the one that's ones that you absolutely have to have Otherwise you'll start having errors and that's really what I was experiencing in those videos If you don't if you don't want to watch them, you'll just know that when I tried to add the color patching for SL status the entire Bar just mostly went, you know away. It was very weird And in the end the reason why that happened was because I had installed both DWM blocks and SL status and I was dumb And thought that that would work Even though I had deleted the DWM blocks file It didn't remove the code from the DWM.c file that DWM blocks use uses So just long story short Eventually I had to just completely Delete my DWM file completely Redownloads, you know stock DWM Recompile it and in the patches that I absolutely had to have and then it worked So today I'm going to show you just a little bit about how you're you should How you can go about adding color to SL status now. It's a fairly simple problem process if we alright and Sometimes my key bindings work for OBS and sometimes they don't I don't understand There's something conflicting. Anyways, doesn't matter for which sheet the patch that you need To in order to do this is called status 2d. I Just downloaded this this one here There are other ones that you can use if you want one to use XRDB, which I think Uses X resources Yeah, XRDB I believe uses X resources, but Just the regular one stuck the this one here up here works fine because you can just control it via hex hex a decimal or whatever color codes It was very easy. I'm not it's not It's not the longest patch, but there's quite a bit here that adds and subtracts Most of it is continuous So this it has one line here that it takes off and one that adds and then I'll you know Let me just zoom in here a little bit. So you actually see this And then it has this big block here that it you know that adds to DWM see that see I believe Yeah So it's not so it's a fairly long patch, but it's not the longest that I've ever seen so This is the patch you'll need I'm not gonna show you how to patch it because I've already patched it as you can see up here I've added colors to my bar and If you need it really if you don't want to follow along with a video and you just want to follow the this here This has fairly good documentation for this It's basically easy you can also file link to my github page and you'll see my SL status There's somewhere And you can just copy the code of that if you really want to but if you want to see how I did it We'll just go to my config file here And basically these are the modules that I have set up up time CPU percentage ran percentage and so on so forth The colors are always in this syntax here carrot see and then the color that you want it to be You know exist as always denoted as a Hexadecimal, I think it's what it's called a hex color code Which you can find in pretty much any color wheel you want and then the standard SL status stuff here and then whatever the Module requires for you know an output That's literally it then you have to recompile it so let's just change I'm gonna change one of these things here We wanted to do what I actually want to do is I'm gonna add This is completely this is it doesn't have anything to do with colors I just want to add the number nine to these because it's that way these stay the same same width But let's just say I wanted to change the color of this one here, too. I don't I don't care. It doesn't matter Let's make it Let's make it the red I guess which would be the same as the updates. So we'll delete this here and update one is E o six C seven five and we just write this and We can actually write and quit and what we want to do is make oops Actually have to spell that right and then pseudo make install Enter your password and It's good and then if you were to log out Which I'm not going to actually be able to do because I'm recording you would see now that this here One of these I can't remember which I change now would change to red That's literally all you have to do. It's the it's the carrot C and it's always between carrots or I I guess I always call that carrot. I'm not exactly sure if that's the name of the symbol What zoom in here so you can actually maybe even see it even better this it's this symbol here You know arrow up Whatever that's called. I think it's called a carrot. I'm not because ship is that a ship Chevrons are the ones that are on the sides, right? I can't remember it doesn't matter Anyways, that's how you add color to SL status. It's very very simple But it has to be done after you patch it patch it using that status 2d patch and you you have to compile So just remember those two things and it should work just fine. Just make sure it's inside the parentheses of The argument I Guess this is the function format. I guess is what it's called So inside parentheses inside carrots then the letter C and then the color that you want it to be another carrot And then the argument that would normally be there and Then another quotation mark and then a comma. That's the syntax fairly easy not necessarily intuitive because I mean I Don't know how they chose that syntax why I can't just have the color But whatever that's just the way C works It has weird stuff sometimes So that is how you add Color to SL status is very simple I wish I could log it out and actually show you that it worked But like I said, I'm recording and I don't necessarily feel like stopping the recording and restarting it It's a big pain in the butt So if you enjoyed this video give it a thumbs up if you didn't give it a thumbs down You can support support the channel in any number of ways you can do so by Going to PayPal not PayPal patreon.com slash Linux cast if you want to support us that way You can also just support us by subscribing which is the easiest thing to do You can also just like the video hit the notification icon bell follow us on Twitter follow some Facebook Go to the Linux cast org and actually follow the podcast that way eventually will actually have a website there I'm working on that using Hugo. I'm gonna make a video about that So that's coming up. Thank you for watching. We'll see you next time