 Hey everybody, welcome back to the channel. Today, we're going to be taking a little bit of a look at how you should go about theming Dunst notifications. So those of you who don't know, Dunst is a notification system that is primarily used for window managers. Most window managers, and I'm pretty sure all of them, at least that I've tried, don't come with notification systems at all. It's just not something that they have built in. You know, it's just the way it is. Most desktop environments have their own desktop environment, or their own notification systems in whatever form that may take, you know, it uses their own movement to use as their own and so on and so forth. But if you're using window manager, you have to have one that's kind of like a in addition to plug in or something. In this case, it's I think it's as qualified as a demon. I'm not sure, but for sure it runs in the background. It's something that you have to add to an auto start file in order to get it to run every time the system starts up. So let's take a look at what this looks like out of the box. So I will include in the video description a link to the documentation so you can see how to set up Dunst out of the box. Basically, you just download it from the repository and then you have to copy the the default configuration file into .config slash Dunst. It's a Dunst RC file. That's what this is right over here on the left hand side. But if you want to know what a notification looks like, so I'm going to have to start Dunst here. So I'm just going to start Dunst like this. And then I will do this notify send test Okay, and then you'll notice up here. There is a icon or a notification that says test. That's that's what Dunst does now out of the box. That's really ugly. I mean, it's just blue with a gray border. It's not great. So let's uh, let's close these things. And so what I want to do today is theme that up a little bit to match my rice. I use the one dark color scheme. So I'm going to get that opened up on a different monitor here. And so I can see the the the color codes that I need. Here we go. You can't see this because it's on a different monitor, but just know that I'm looking up colors color scheme, which I should have done before I started recording. Why would I be prepared? I mean, why? Uh, anyway, so The this isn't actually the top. This is the top of the thing. It's a very it's not a very long Uh configuration file It's only 431 lines and most of these are commented out. So you could you could get rid of quite a lot of these um you can make uh one of the cool things about dunst is you can go through and theme your uh Notifications to look different based on what note what application you're using so you can set different priorities and and so on and so forth. Um, I'm not going to cover that in this video But that is something you can do. There's a lot of stuff that you can do here With uh the Notifications in terms of Uh appearance and stuff So the this is the kind of stuff that the stuff that we actually need right here So if you're going to go through and make different urgencies, you could change That stuff in this section here But if you're going to just change the general Colors and stuff you need to we need to go up here to Where's that? Where is it at? Where is it at? Apparently passed it by A frame color. Okay, so this is where we start to start off here The frame color is going to be that part that goes around So if we open up this up just clear notify send test It looks like that. Okay, and the frame color is going to be the part that goes around it And we'll just close that here. So if we change this I actually need to put the cursor there not just highlight it So change word and we'll change that to uh, let's see here oops We change it to red the E 06 C7 5 We'll see if that worked. Okay That did not work. I wonder why that didn't work. Um I'm wondering if it And by send Test There we go. Head of color first as you can see change the color now. We need to change the background color We'll close that and now we need to change the background color to black. I think here's what I want to do Um We'll also change the font here in a minute. We need to change find the background color Where's the background color? You think it'd be right up there, right? separated color frame frame width padding separator height notification height transparency shrink Indicate hidden geometry. That's going to change the size Follow miles so that just this just changes what monitor is going to be on um, or you can always just choose the Monitor that's always on the same monitor. Where's the background? Bg Bg is not there All right, so apparently the the Default is going to be this urgency low one. I bet you let's change that and find out Change word to two eight two C three four Write that and then uh kill all Dunst Okay, and Dunst This is Good, so dunst Problem is I have it running in the background and then I started it again. So which is done So now we do if we do notify send Send Test That didn't work when I doubt why did that work? I'm assuming That that's not actually where it does the background then Okay, well then where do you do the background color? All right, so let's see here Every section that isn't one of the above is interpreted as a rule As rules to override settings for certain messages messages can be matched by app name You can override the so this is basically just telling you you can do Notifications based on You know each application Urgency normal. I bet you this can be urgency normal. All right Change word two eight two C three four Okay This kill all Dunst And then dunst and Okay, and Let's see here. Ah, let's see notify Send Test That worked ha haza that was so Those urgencies is where you're going to control the background in the foreground Uh, we so I want to change the foreground now to another color And let's see here So we'll do it in both of these Change word a bb to bf Okay Change word a bb to b F Okay, maybe I'll get lucky and I want to kill it I don't know if that actually changed it or not I think it still looks like it's white to me See kill all Dunst Dunst And Yeah, that's better. Okay. Cool. Now the question is how do I get rid of that crappy icon? I don't think that that icon is there for like traditional Notification that might just be there for the the notifist notif I send Command I'm not exactly sure if you can share. Oh, yes, you can actually you can you can change it to a different icon interesting, okay well That means we need an icon Um, where would I even go about getting an icon for something like that? I don't know that may be something I do on my own Because I'm not gonna sit here and make force you to watch me browse for an icon We'll change the critical. We'll keep the critical urgent The urgency critical one the same that because that that appears red like all red We actually change that to my red Change word E06 C75 Okay, so That's basically it now. Let's mess around with transparency for a minute. Shall we it's transparency is fun Um, here we go So let's see range zero to 100 Okay, so we have we have uh Piecom installed. So let's change this to like 20. Let's see They'll all dunced Dunced And Notify test Yeah, there we go You can it's you probably can't tell from here, but that is now A little bit transparent cool. So We've raced dunced that's basically all there is to it. Now the last thing I want to do is change the font Let's let's see. Where was that font thing? We're getting close here frame color separated color Sort Idol threshold monos just here we go Let's do this change word hack nerd font And we're going to change this to 12 okay, and w We'll write that and go back here and go to c and kill all Dunced And Notify send test Yep, there we go. Awesome sweet So and that is Very briefly how you theme Dunced notifications it's really not that hard because the The configuration file is very well laid out. All you got to do is read instructions, which I didn't do because Instructions seriously don't read the instructions man. He just That'd be that's the waste of time Watch a video instead Um, anyways, that is it first this time if you enjoyed the video Give it a thumbs up if you didn't give it a thumbs down if you want to watch more Linux and floss related and how-to videos make sure you hit the subscribe button and the notification icon Because we publish videos seven days a week. We also do a podcast every Tuesday And it's awesome. You definitely don't want to miss it. So hit the subscribe button You can also support us on patreon if you're monetarily enabled by going to patreon.com slash the linux cast We do appreciate anywhere you support the channel even if it's just by hitting the subscribe button We do like I said, I do really appreciate it. I always say we I don't know why I always say we I can't help it. I've always done it. Thank you for watching. I'll see you next time