 All right, I think I'm live here I'm not prepared for the stream at all, but it's gonna be fun. It's gonna be kind of a Chill out and rice and maybe do some scripting So welcome to the stream Should have some fun if anybody's actually watching this if I could get some yeas or nays on the audio I'd be appreciative of that First nice here analytic minded. Hello. Hello J. R. Hello Blanc. Hello Need in some yeas. Yes, excellent. I do have the air conditioner running in the background because it gets warm in this room when I have my computers on Excellent cool So Just gonna do some rising Mainly because I haven't had no other ideas For actually, you know Doing a stream so I just decided to take the easy way out. It's just easier 3 a.m. In Germany Yeah, I'm very likely to put you to sleep. Which is good White or fried rice. Yes, I know rising is a horrible word for Customizing your window manager, but that's just what they call it But what you're gonna do anyways, that's what uh But that's what the plan is so this is the rice that I'm using right now And if I go into my scripts folder what I'm the first thing I'm gonna do before I do when you're rising is What I'm gonna try to do is create a Rofi script that will allow me to Change to between my different rices Just by selecting a menu item that'd be really cool I don't know if I'm going to be able to do it or not. We're gonna see But it should be fun. I'm gonna try so what I'm gonna do is base this on my L change your scripts So my if I do them L changer here. This is my alacrity change your script. So if I actually run this L changer Like this I can select between different Alacrity rices. So if I wanted to go to Dracula, I'm now using a Dracula thing if I wanted to go to Ah, let's just say Tokyo night. There's Tokyo night then go back to grab box that is What I want to do with my i3 rice. It'd be really cool Whether or not I'm going to be able to or not. We'll see Because the way this works is that it First it presents you with a selection of themes and then it whatever choice you make it takes one line out of the alacrity theme and Replaces it with the appropriate Theme that you chose so this first part here is going to be the hardest part because in My i3 Configuration file we'll start with i3 because poly bar is going to be harder If I've been into my config here I have Just one line that I need to change but the way that the Script works is that it relies on this being the only line that is called colors So in the alacrity configuration file the alacrity.yaml The only line that starts with colors is that one and it's really easy to set out that and Replace it with the thing that I need to replace it with What I don't know is how I'm going to do that with In this situation where I have multiple Lines that start with the word include Now I had an idea Because oops Because you can declare Variables here in i3's configuration file So if I were to Set Well no see because that's not going to work either because I have multiple things That have the word set because what I was thinking about doing is do set and then like Theme or whatever I get it doesn't really matter what I call it but and then Just change this word so in this case it'd be grub box and then down here instead of This I don't know if this would actually work or not But I would do something like dollar sign Theme you know I don't like I said, I don't think that that would actually work. You'd have I'd probably have to do the full path Instead of just the end of the path But I like I said, I don't think that that would work But that was my idea but again, I don't I'm somebody who's better with said would be able to easily search out that one line When if I could do Let's get out of this first and cp. I'll change her into rice changer sh Like that and then vim into rice changer that way I don't Now I do that Where's the r's right here rice changer rare. Yeah, it's right there Oh, it's because I didn't spell it right because I'm an idiot what tells Be right there RIC R. I changer R. I changer. I really did not spell that right. It's not what I wanted to call it at all, but it's fine All right typing is hard Um, anyways that way if I make changes to this I'm not actually changing my L changer script That's not the middle of the night here Like I suppose I mean depends on what you decide decide with the middle of the night actually means um You guys can always see what I'm doing and I don't have to worry about it later but anyways So theoretically what I would love to be able to do Is do this so the first thing that would be would be change just to set And then dollar sign theme I think the I think the The problem is the dollar sign it because this is a bash script a dollar sign would also denote a Variable here. So I'd have to escape that somehow As you can tell I'm not a Very good bash scripter. So I'm probably gonna have to look some stuff up But that's how you learn. All right, let's go ahead and Open up a browser here And we'll open up go into Actually, that'll be better All right, and then um That's how to All right, that's how to Replace a single line in a script Using said Replace a single stack overflow And that right there is the reason why I hate cute browsers Like I only zoomed in like two spaces and it zoomed in for half a minute All right, let's use so this is how it this is how I did that space to action with the Use caret for checking beginning of the line space left to action Hmm The problem is here. I am no clue how regex regex or regex, whatever the hell it's called how that works It's something that I obviously need to learn I did this the c2. That's what this is the same functionality Um, why did I close my chat? Am I even still streaming? Why did I even go about closing the chat like that wasn't even on this workspace? That was really weird. I'm gonna navigate back to that Hey, Ben. How you doing? Oh and dt's here You're doing dt Pattern matching with said is an issue you could always add a unique comment above the line and then pattern match on that line Yeah, that'd be an option I'm not sure how I'd replace the line below it because if I The one that that I want to change First go back to this Go to that the line that I want to change is just This one here and really all it only needs to be the end because all the themes are Named like that. It's just a single word themes, right? so But I can't just say replace grovebox because that's not gonna always be the theme So if I change to you know, one dark or whatever That now becomes one dark and this said no longer works because it's that Let's see here. So space Beginning of the line This is the same way. I did it only Apparently I just started mashing buttons and moved everything all um Because I don't even now have Like my main firefox window closed and I have no clue why um That's really weird Okay Apparently I just like I said started mashing buttons like a like a monkey Oh, it wants you to use awk I have no clue how to use awk Let's see what else Said to replace the specific lines. Why is it that all stack exchanges require this Except all cookies, but they never remember that you've pressed except all cookies I'm building a basket for my virtual machine. I would like to know how to replace a single line in this document This line I want to change to this I have tried with t and said but cannot make it work Because they all start with a comment It's straightforward use the s command search Wait a minute I could just do the whole line couldn't I If I did the something like this Oops, damn it in the insert mode. Let's just go down here here to the bottom So if I did it like just just say grow box again and then said What was that dash? No, no dash. I just search the whole line the problem with the whole line thing is that if you have Like I have a dongler sign there. That's going into conflict. So I'm gonna have to exit out of that somehow Well, I could replace everything after it Because that's the so if I just did said Is it single quotes? Beforehand, yeah slash slash and then dot config I bet you it's gonna have to be in the difference Damn, I don't know because that's the end of the ending of that is going to be different every time That's why I wanted to place replace the whole line Putting a hard link like left WM doesn't work in this case I always forget how left WM does it, but I'm pretty sure Each of their themes has its own little file I don't want the whole thing. I don't have to replicate the whole file I just replicated the theme so like this This theme is just the the color codes, right? That's all that is Yeah, I've played around with when I was doing the DWM thing because I tried to do this with DWM And I put and I had it overwrite the file. That's how I did it with there, too But I don't know it seems inelegant to me. I don't want to go about doing that. Thank you. So thank you I just changed this to change oops Changed us to theme dot com and then Save that and cd into themes and just touch theme dot com and then Oops damn it in insert mode Always an insert mode Okay, so here instead of replacing a line would be replacing a Because I could just instead of being a it doesn't even have to be a sim like it could be a It just copies it, you know, I mean If You chose doom one, let's just say it would then do this instead of this Here It would just cp Let's just say I have a variable for the the path. So this is the path to theme into Path So in this case, it would be cp path to doom dash one dot com to The path To Uh, no old the old theme. So this would be old thing old thing to No, this I had it right the first time so it would be copying the new one the one that you selected to The theme dot com file Just like that and then they'd all be the same The issue is going to become in when I also because I want to do the poly bar at the same time So we'd have to have an and and statement there Let's go ahead and get the variable setup. So up here The configuration file for this is actually going to be A dollar sign home slash my repo slash i3 slash config This doesn't need This here at all Because we're not doing set anymore. So it would just So this is not going to be path. It's going to be Slash no slash theme The themes or themes themes That's the path Okay, and then So I don't actually have a doom one But that's the way it would work Is path that slash theme dot com and then I do the same thing for here. So The best way to do this is just to Yank this Like so and change this here to Bracula And That would also do that Honestly, don't know what to call to semi colons means. That's just the way the case statement worked um Anybody is curious where this this whole script came from I stole it from dt because that's you know, of course it did These came the original for this was One of his dm script d manuscripts And then I altered it for at alacrity And now I'm altering it for um i3 We're gonna do we're gonna worry about poly bar after i'm done with these so I'm gonna do this real quick And then yanking lots of yanking. I'm sure the Vim Wizards out there know how to do this faster I'm sure and some of these themes by the way don't even exist yet They will someday But if I can get this to work I'm gonna be on a Racing extravaganza Scott's here, huh? Hello Scott Yeah, I'm I know about the macros. I don't use them because I'm too dumb I'm just not smart enough to get my head around them Like watch the luke smith Um video on them Honestly, this can just be grub box because I'm never going to use grub box light like ever And I'm never going to use either the solar eyes, but those those can stand it because they're here for now anyways um chi pro These these are the only ones that I actually have so far so oops oceanic next Which is actually only going to be ocean To change that up here, too Wait a minute do I Ocean and oceanic next actually different things I don't need that then I don't have anything called oceanic next. I don't even know what it is to be honest. I don't remember what that theme looks like Okay, so the next one here I'm gonna soon delete the solar eyes one's gonna never using those ever I'm like an I'm anti-solarized um so paper color Tokyo night The real question is why I have one dark and do one here um, but okay moon fly and suno chi m a i a Which I actually think I do I guess I don't have that but I did I used Apparently I did that Before I did the broke it out everything into a theme Cat which I can't ever solve cat ppu ccin Okay, there are those so now What had to be one that I have so the one that I have that I could try so I could save this now and run dot slash r i this And the one that I have ready to go Would be I have one dark So if I change that and then restart i3 Ha ha that worked sweetness And the only reason I know it works is because the border for i3 changed so sweet I think also because I think if I did um Let's city up a level here And then into config I think if I went to actually sitting into my repo I3 sxhkd Then to sxkcrc One that I'm looking for here is the restart one. So if I did i3 Message dash reload at the end of this in an end statement. I could restart i3 at the same time I'm going to need to Remember that so if I go back here and them into a changer like this And at the end of all of these To an and i3 msg restart Like that. I don't know if that's going to work, but we're going to try it That'd be sweet Hopefully Running that from a bash script and that looks like there's an extra space in there now doesn't there Damn it. Why is there an extra space? It wasn't at the beginning then again, so An i3 dash msg restart Of course and that one didn't put a lot of space in between there Now I'm going to type it out again because I can't use the same trick And and i3 dash msg restart No What I'm hoping is that this doesn't actually restart the computer That'd be horrible like so good Wait a minute Restarts not the Yeah, it restarts the one that I want reload. Reload just reloads the configuration file And then I close that damn thing Okay, can I open that back up? Dot slash Right changer like this And then one of the ones that I have so we'll go back to grab box And wait, I wonder what that's what that's called. I need to go back here And let's see here the um CD themes That's what it's called. It's grab box. Good. Okay, so do that again. Go back to grab box Ha ha ha ha That's so good cool Okay, so the next thing is to incorporate the poly bar into it so That one's gonna be harder Because if I CD up a level a couple times And CD into poly bar I have two different things. So I have the themes. So if I CD into themes, I have all these And if I CD into the modules, that's a whole separate file. So If I vim into my config config file here I have Stop text messaging me Um, I have two lines that are gonna have to be changed So I'm gonna be doing the same thing. So if I open up a thing I'm going to CD my repo poly bar CD into themes Do I also hear and touch A theme iini And then cd into modules and touch Modules iini Okay, and then with the Theme with the script what I would want what I would need to do Is first Create a variable for it. So poly bar equals dollar sign home hmm It'd be better if I actually did it poly bar one Or just actually call this poly theme and then poly Mod equals Okay And then slash My repo poly bar Themes I think that's what it is cd my repo poly bar Themes yep And then that's the way that should work And then dollar sign home my repo Poly bar themes modules Like so Oh, yeah, I figured there was a better way to do the Adding stuff in there with them um despite the Amount of time I've been using them. I'm still a complete new about it um And I think I always will be Mainly because I learned something and then I forget that it exists But anyways, let's go ahead and uh We're gonna want to do here is Before the i3 restart thing do um cp What did I name those? Variables said I'm talking about forget poly theme and poly mods. So poly theme flash doom dash one i and i And then into poly theme Flash do uh This is going to be themed i and i Okay, and then it would also have to do the same thing for the modules. That's a horrendous looking thing. I mean The professional bash descriptors out there are like, what are you doing? You horrible person if tfl is watching this It's like no, don't do it that way I'm sure there's way easier to do ways to do this But I must do this within the scope of my skills Which aren't very high so In this one i'm changing those variables p theme p theme And change this i'm just changing this to mod Like that. That's way easier Why is there a space there when they're not not spaces anywhere else? Okay, so and and copy theme doom one i and i theme i and i okay, and and cp mod flash doom one dot What did I call those? cd modules oops my repo poly bar themes modules so Oh, I named those things horrible things and I um I think what i'm gonna do here is is Change those names because I do not want to have to type all those out. That's horrible um, so move I could do All right, hold on. So I got ranger bulk rename oops now You got to select those that's right. I forgot how that worked bulk rename and then just control v Oops, I don't want don't need to change it control v so Then delete those right quit again and enter I love ranger That's so good. Okay. Um, you can quit out of that. Oops, I didn't Do I want to quit out? I don't need my repo poly bar themes modules Make sure it actually did it which it did do um the The ones that I have two different ones for are going to be a pain in the tuchus Because like I have two different grub box ones I have a grub box poly bar poly power line one which I'm using now And a regular grub box thing That's going to be interesting That means I'm going to have to create an extra one For the for the poly bar one. So dammit. Why did I close that again? It doesn't matter. Okay, go back up here. Oops Still in freaking in insert mode. So the grub box one I'm going to have to yank that out and do another one here, but do Dash power line And then copy the grub box one Yank Did I do that wrong? This is going to be grub box power line and These are the same but the poly bar ones will be the different Go back up here to the dim one one finish what I was doing so dollar sign mod flash So one dark i and i into dollar sign mod slash Modules i and i I think that's what I called it. God. I can't remember shit I should write this down themes Modules there we go Yeah, I call the modules. Okay I just have kept that open because I'm knowing I'm going to forget it like five different times. I've like freaking Alzheimer's or something Okay, so I think oh we need one more and and here not dollar signs now. There we go Okay, good, but that would change that so We took the I know I'm kind of ignoring chat. So I apologize. I'm sure they're Yeah, DT's they're helping me and I'm ignoring and I'm so I apologize for that DT Uh, you're probably doing it telling me to do things way different way better We'll see how this works Okay, so the easiest way to do this then would be then to I think I know and I was gonna have to do this again. I would have just done it, you know waited I'm sure again. I'm sure there is a Vim personnel in there in the chat telling me. Hey, you should this is how you should do it now Josh release of mandatory neofetch you wouldn't like my neofetch um There you go Yes, I am not using gentu I tried to install gentu again after I borked it And it didn't go well, maybe again someday, but yeah, not today Not today Why did I call that one dark up there? Because I did call it one dark up there That should be doom one Like that. Yeah, that's better some Dracula Dracula And we set up butterf s snapshots. Yes, we did but nobody taught me how to Do a Emerge overlay or a portage overlay or whatever that was called and the only way to install timeshift apparently is to do that So but before I learned that I installed stdm And stdm ruined my gentu install I still have it. Uh, I have it on hard drive. So by all means you can help me fix it But not tonight Tonight we're doing this Because this is what we've chosen to do I should just call that grove and then Well, and then I didn't copy that whole thing What I'm gonna do instead of copying that whole thing is go back here And copy from here down so Yank That's what I should have done begin with Instead of having to do that whole thing We're to that p now that's there for a random reason Then because this is the only part that changes Dash power line I think that that's that would work. We're gonna have to try that. I'm gonna have to Also this one here and then Okay, so we got Throwbox Throwbox power line And then monokai pro Again, I don't know why I need to call it pro because it's the only monokai I have So I could have just changed that but it's okay Done now And like my are you saying something that I did was messed up? What did I mess up? I mean, I'm sure I did Um, this is getting more convoluted by the second This is monokai pro This would be way easier if I just put a space in between them So let's go ahead and close this this is going to be way easier if I can see the whole line of one line Instead of having it wrapped So throwbox Throwbox power line Dracula monokai pro all the way done Yep, okay, and Nord But you don't actually have yet, but that's okay. I am making automatic writing script. I'm doing it the hard way Like I'm sure I'm doing this the hard way, but it's okay. Um Maybe when I learn to do something better on my own Uh, I won't have to do it the hard way again or I'll be able to redo it I guess but Um, so this is ocean So So Well, I spelled that wrong Okay, and then tomorrow night dash night And I think you have two semicolons in the middle of the grovebox line Of the grovebox line I don't see it Oh, but I do have one here. Yeah the grovebox power line. Yeah, there we go right there. Yep Sure do And it needs to go at the end And actually this is the that's what I get for copying that wrong so And this needs to be why did I have a period there? Yeah, that's not you're right. You're doing that don't no periods i3 dash msg restart and then So, okay, thanks for catching that analytic minded. I would have never spotted it Honestly and tell me if I fucked it up Okay, where was I? Did Nord all the way through did ocean all the way through Did tomorrow night Not all the way through dash night That is good now paper color I think paper color is the only white theme I have on here the light theme All the paper color I Imagine how messy this is going to get when I get more rices. Oops paper color There's that one Okay, let's Oops, Tokyo night and Tokyo night And Tokyo night oops So, okay, and then one dark one of these I don't have to change too much because I already had one dark there one dark And one dark just delete this okay moonfly moonfly And moonfly moonfly Okay, and then uh sanakai I'm not The only sanakai one that I'm ever going to use is is is Maya. So we'll just delete that up here. I Okay, and then this one here and this one here. So, okay one more It's the hard one can't who Sin why not set up some leaks of that because This was just I don't know the same D's here to me. I don't know why Um, I'm sure I'm sure there is a better I've already said this once or twice time. I'm 100% positive there are easier ways to do this But I would not be me If I did not do things the absolute hardest way I'm sure that there would be a better way What I could have done was just create um Variables to all of these so each um Path that would each thing would have its own path variable So I just do cat boosene copy cat boosene Or how about how you pronounce it for each of these and you wouldn't have to Have spelled it out, but I've already done the work now. So I'm not going I'm doing it. Maybe I'll redo that later All right now. It's fine. I want to see if this works so Save out of this Now we're in grove box power lines. So if I change to It would have been just better. I would have just been easier just Dot slash What was it rice changer like this? Okay, so the one that I know is there. So if I do this Cannot stat grow box to i and i because it's not called grove box. It's called grove so back up here I'm pretty sure that that's what that is the problem because the p-theme here is actually just called grove Because consistency is beyond me. I bet you that's what's called cd Harry po pa poly bar themes less It's called grove box in the themes Am I going to kind of find it cd modules And it's called grove here. Okay So in the modules one So This one here. Oops back up here. Damn it Put your keep fingers on the right buttons box. That's right Damn it. I should have just kept it open How many times have I had to retype this path simply because I closed the window um I forget what I was looking for Oh the power power line one was the power the power line is also growth. Okay. All right, so This is grove box power line Okay Or is it? All right It is growth power line Okay, and the Themes is just growth box. Okay So the power line one here is just This This here Is growth box and Yeah, I kept it open this time. That's what scratch pads scratch pads or four. Damn it Um, and then I think I think that's right Now if I just choose grove box still no Still not can't find grove box i and i grove box i and i so they can't find that because I don't G u r v b o x I wouldn't wait. I wonder if I have the path wrong Well, that's because I didn't change this name here P theme matt p theme there we go um There we go I think that's gonna be better now Still no, okay Poly bar themes grow box. No such file or directory that my repo poly bar themes modules CD my repo poly bar themes Modules grove box Because it's still called grove matt. Why the hell didn't I get that right? seriously man Go back down here. I'm gonna it's still let me Catch that other thing so um This part here Is called this and I believe This is going to be exactly the same Still no, okay I'm missing party Part of your comment josh I'm sure there isn't any cat pussy Sorry no But put the themes into a folder with your correct file names then just sim link the folder to the next That writes. Yeah, but I don't want to have to redo the whole configuration files. What I'm If the way left wm does is they literally have a whole configuration file for each um theme And I don't want to have to do that Maybe I'm being stubborn about it Yeah, I should just rename the files and keep them consistent. Oops Back over here. All right, so Where are we at we're in the theme so this is grow grow box here some modules move grove dot i and i into grove box dot i and i Move grove power line Into grove No, I did wrong It is underscore i and i Now We just did that so The p theme is going to be grove box And this is going to be grove box power line And then up here This is also going to be grove A groove or the fuck box. This is going to be groove box as well That should work now. They're consistent Hopefully All that's even worse. Okay, so messed up something else now. Um All of our themes modules grow box line seven will no such file a directory What underscore not dash. Okay All right. Yep. I knew I was going to do that That's not the error that I was causing but at least it's fixed that Um So that's your path to grove box com dot com Powerline grove box dot i and i That didn't actually get into that So that did it did that fine? Oh boy. All right. I'm sure I'm doing something stupid I'm sure when I see the the problem That it's going to be Stupid. All right. So let's focus on this first. So mod modules i and i That's right grove box i and i mod modern p theme My repo poly bar theme is modules My repo poly bar theme. So those are right The one that we're trying to do here is the grove box one so cp path grove box.com The path theme.com. That's right cp path p theme slash grove box dot i and i to path p theme slash theme dot i and i dumbass cp and all of these What a moron Everybody should be very very happy that I caught it on my own. Well anybody in the chat help me because that's a fucking stupid mistake I'm making sure I'm doing this in the right spot dumbass Go back over it again Just to make sure because I'm not doing this another time. This is dumb cp path the grove box.com path the theme.com and and cp path p theme slash grove box dot i and i to theme dot i and i and and cp mod grove box dot i and i modules dot i and i That should be right and in restart. Okay You're asking about the eww just thing. I don't know. I don't really schedule anything out. Um, usually it's whatever suits me I know if tfl was here He he'd be shooting me in the face or something with a bullet Like just to just retire from bash scripting mat. You're you're bad at it Um, but I know I'm bad at it. So I never claimed to be good at it All right, so now if we choose this one It did not actually restart poly bar don't know poly bar Why That's because We're getting an output there Why would you have an output success true? um And just restarting poly i3 which should just restart poly bar All right, let's try one of the other ones One of the ones that I know I have One dark I have one dark But still no poly bar And I'm getting a and I'm getting an output when there should be no output. I don't understand That it's going to have something to do with the auto reload functionality of poly bar I've been trying to clean my home and Requiring instructions to resign g g k r c 2 don't can't ever I think you had to set a Environment variable phone without question Do you need a dash in the script? Do I not have a dash in the script? What do you mean? I need a dash in the script And oh you two were talking about that mistake I made with grab box. Did I still do I still have that? No, I fixed it right here but The radically this should be underscore two, but that really doesn't matter because that's just the choice um The question is why when i3 restarts Why poly bar doesn't start up with it and even if I do a manual restart of poly or of I3 my poly bar does not come back so CD my repo poly bar That's because it's replacing it with something different All right That's because i'm a dumbass. Okay. Once again I'm stupid You need to go back here and change this to Theme i and i and this one here to Modules i and i Now There we go cool That's my one dark incomplete one dark theme so if we go back to here and do a Run the skin and go back to grubbox power line Cp missing destination file I just cannot get that grubbox one right. I can't do it. It's obviously it's obviously beyond me Okay, the grubbox power line one is wrong so That's because I didn't put a The end part here. So dollar sign mod slash grow Modules Dot i and i that's where that needs to be. Okay Did I do that in other places too? Gonna find out eventually um Try again go back here to grubbox power line Uh, it still didn't work. No such file direction cannot stat grubbox power line But that file exists Oh, because there's no i and i at the end of it good lord matt Seriously, i'm pretty sure i'm pretty sure That I should just pack it in Because these are stupid mistakes Try again There we go and matt Yeah, I got there eventually The good news is is eventually i'll catch my own mistakes They try not to rely i'm trying not to rely on uh chat to catch the stupid mistakes But I still don't understand the output why you get a successive equals true true after that but As long as it works, I guess it doesn't really matter um eventually I'm gonna go through and Add in the ability to also change my alacrity theme at the exact same time So that's going to be another and and statement, but that's not going to be tonight because It's probably just easier to keep that race separately Damn That's good. I mean, I mean, I know That the Bash scripting people out there the ones that actually know how to do this and even the ones that are like half a decimal smarter than I am Which isn't hard. Um We're saying this is the dumbest way to do this The sim link thing probably would work better But this works for me and it's working now. So That is really cool. So what other themes do I actually have? So If we do an ls here, what themes do I have? So if I change to dracula here Let's first do l changer into dracula go back to go to this That my alacrity theme is right and then do dot slash right changer Like so and slug dracula and Here we go Sweetness The uptime module is going to be broken every single one of these because I use it now and I didn't when I created this theme so Yeah, that works guys that really works Yeah, it's good. It may it may be in elegant, but it works Uh, how long have I been streaming now? I've been streaming for an hour and 13. I think I have time for rice Why not do a rice? So it's going to be one of these races that I need that I don't have yet. So Which one should I do? Doom one is basically one dark. We have grevox and dracula and grevox power line monokai nord Ocean tomorrow night. Let's go ahead and look up tomorrow night. So let's go to Here open tomorrow night theme right here Okay That's not helpful. Thank you Thank you so much Duck duck go. You're utterly garbage as per usual Tomorrow night theme them There we go I believe actually That doesn't in fact have the colors right on it. I see the point I wonder if it's in the wiki No Do we get a palette here? I need the palette I mean we kind of get the palette but that's oh there it is right there Tomorrow night right there. That's exactly what I need and it's even laid out You know good way for me because I can use though. I can use that Copy that go back here. Oops this one here. Okay, so we can get out of this CD into CD my repo i3 Actually go to do the poly bar one first poly bar one is going to be the hardest And then themes ls And we're going to I believe I called that so we're going to vim into tomorrow dash night i and i And paste these Now these aren't in wrong order, but that's easy to do to use ctrl v Which is only going to work Actually easier to do it this way ctrl v Like so Like so and then I believe I have a space here what to do Okay, and then I think that that is How they're structured never remember Why did I get into vim instead of and then I don't know so I was like why are my key blinding is not working? There we go Make sure that they those are structured basically the same No, I forgot the colors thing so colors Like that now Open another one cd my repo poly bar And then themes We're going to go into cd modules And do an ls here do uh end them into tomorrow dash night dot I and I Somebody shouting at me and nothing I know you have videos On separate features and scripts you use an i3m. Do you have a video where you go through your workflow with these things? You put together kind of yeah, I I don't know what the video is called though It's probably about two months back or so. I think it's called i3 workflow actually um Just sell the script and make a lot of money Some i'm sure somebody who was actually good at uh scripting would take you up on that but Uh, so anybody who had who would critique this script like this is a shit script. Um, anyways, what we're going to want to do is cp Dracula Actually, we're going to cpu grove box power line into tomorrow night dash night I and I because It's going to be basically the same Firm into tomorrow night dot i like so And then We can change the colors. So let's make this a little bit bigger um So what we're going to want to do here is change the colors so the focused background color Is not going to be orange It's going to be Green oh wait. I'm gonna have to change that Because these cannot have uh Capital letters so this is going to be background Current I know there is a vim thing that would Uh a key binding that works for this but don't remember what it is Save that okay now This is just going to be background okay, and then The unfocused I don't actually have a foreground there do I yes I do yep foreground those could Probably are going to be staying the same Active workspace on unfocused monitors. So this can be Comment I said the stupid name for a color, but it doesn't really matter Although if if I use comment, I don't know how the I think that needs to be changed around um It's going to be That's going to be on the other monitor that's unfocused But has a that is on screen So the way I have that right now is I have the color But I could just do that the same I could change the foreground to like um Aqua And change this just the background to uh background I'm pretty sure I just changed this word to the same word, but it's okay. Uh, let's see This is going to change to red And uh this one here is going to change from foreground or this one here to background. So Okay Line of current line. Oh, yeah, it's going to have to change Uh for whatever reason this will not let you use capital letters at all and in fact There's no you can't use a space either. So um I I don't know why that is but it is it is true Um has something to do with probably something to do with python. I'm guessing um Anyway, so those are done. So the the thing we'd have to change here. So let's go to music Here so Actually first we got to change the arrows So arrow zero is the one that is at the end So We're going to change. We're going to decide what colors We're going to use for the arrows. So I think that the colors we should use are We might end up doing is doing more more more colors if we Actually, I think I am going to do that. So we're going to do more colors So that means we're going to need more arrows. So we'll yank this And paste it a couple times The problem with doing it this way is that this is going to make this one different, you know what I mean? And if when it's different, that means when I change things things are going to break Specifically I'm going to have modules in the configuration file called They don't exist in other themes Trying to think if I actually want to do that although What I might end up doing is for those these power line ones is create its own config for it And then change the config with the script later on but for now, we'll do it this way. So We'll go here That would explain why the it doesn't allow lines Makes sense At one point I was going to learn python and then I realized I wouldn't get enough of any other programming language. So my knowledge is pretty, you know, not high anyways So colors that we're going to do so we're going to do The foreground content foreground. So this is going to be the color of the Arrow itself and that's going to be that's the first one can be yellow um, I think the background So this one can be orange the content background I Think this is going to background for all of them. And then let's see here Maybe blue and then Maybe Green and then maybe Purple Also, I think I didn't change this number to the right thing before Okay, save this And open up my repo poly bar Like so and then go to config See this is where it's going to end up being a problem because all my other configuration files none of them have arrows three and four so arrow one arrow two arrow three arrow four This is going to go back to arrow one is fine Okay, save that um And when it doesn't have the we can now go back to five and go to my scripts folder do dot slash rice changer and change to tomorrow night Because that doesn't exist yet. Okay. We can't actually change to it yet because that file doesn't exist yet So we're going to go back to it and do that in a minute Once we're done here so we can actually save this And quit out of this here And now the music ones so Here's where we're going to actually I probably should have kept that open. So do I still have CD up a level then config so Music is going to be arrow zero so we're going to need to remember the arrow zero is Yellow so music is also going to have to be yellow This was way easier with brov with only two arrows So the prefix foreground is going to have to be something that's going to be seen on top of yellow So in that case, I think I was going to have to be background Or or current I guess it doesn't really matter. We'll see which one looks better. So the background is going to be yellow Like so And the format foreground which is going to be the color of the icon should also be background or Whatever it doesn't really matter. So this is going to have to be yellow This is really hard when you can't see what you're doing. So The next one is weather, which is right here and that's going to be Arrow one Which we set to Orange Just go back to the weather So the foreground again is going to have to be something that is seen on orange and I think this is a Light orange. So I think that the background would also work here Well, so Orange And this one here would also be foreground. So or background Which isn't confusing at all orange Yeah, I know I should think of more general names, but Like I said, if I would not be me if I didn't do the things the hard way So The next one is going to be uptime Which is Arrow two And that is blue. So uptime so So the background The foreground for that one should also be I think back going to work well for that as well and might as well try to stay consistent And this is blue And same thing here, okay, and then The next one is Memory Two so and that's arrow three Which is green. So To This the green is probably also like said, we're going to try to stay consistent. So this is going to be background And this is going to be green And this one should be background And green like so And then the next one is cpu two which is arrow Four Which if we did purple, okay, so cpu two Like so, okay, so this is the one that has them back So purple, I think again, we'll try to stay consistent. So background and then purple background And purple so that was the Cpu two arrow one which is One is for the date. So arrow one oops Arrow one Which is orange. So The last one is date So the foreground Is background background Orange And the That's because I changed the wrong one. Why the hell did I was doing that one date? There we go. Now we're in the right space foreground background and oops orange and background and orange now Yeah, I know I should change the variable names I probably will someday go ahead and clean those up so that they're all the same names in Each of the themes But that's not gonna be today For now, I'll continue to do it the hard way All right, so that's all the modules I believe so we can quit out of that cd up a few levels And another level because I think of foreign officer cdi three themes And what we're going to do is cat grow box and not cat grow box. We're just going to cp grow box Into tomorrow dash night dot comf And we're going to tomorrow not that comf. Okay, so The border Is going to be orange which I wish we could just type that so de 935 So the background ground is these are going to all exactly so it's de 935 f de 935 f and de 935 f Now the inactive border can be the foreground color so c5 c 8 That's a 9 8c 6 And then period oops damn it c5 c 8c 6 c5 c 8c 6 period period now Now if I go to workspace 5 and run the same thing and try tomorrow night again I still didn't work because In the themes. I don't have the tomorrow night dash i and i theme so three dd dot dot olibar themes Did I spell it wrong? P o m o r r o w dash night dot i and i And I have P o m I spelled it wrong Of course I did Why wouldn't I spell it wrong good lord man all right? um So up here Tomorrow night right here so t o m o r r o w p o m o r r o w do I I'm still spelling it wrong Who the hell knew I didn't know how to spell tomorrow t o m o r o w t o m o r r o w why is it why wouldn't you try to spell something? It looks weird right tomorrow tomorrow. I should be right nano is better than them somebody block that guy I'm kid I kid I kid all right uh make sure I spell all that right try again and this And how did that uh We don't have poly bar again because we must have messed up something What would we've messed? How could that possibly have changed? All right, so we're going to go into Three again. We're in the poly bar. So see up above old dot slash Launch.shc what errors I get my next shutting down poly bar i3 um poly bar theme Stream.ini 3 key name current line is empty So it's calling the Don't I save this? There we go. Uh, yeah, then it worked out. Well, that well did it. Okay um I messed something up there That's obvious First I'll change your Changed in tomorrow night. So that is the same theme. There we go now In my grove box theme, how did I get the Theme before it to be the same as the theme after it so This was way easier with just two colors by the way way easier maybe All right, we're gonna have to go into See the oops close that seating to themes Them into grove box seating to modules Them into grove box poly bar Like so and then go back down to here And see how I worked this out. So the first one is music so the format the format foreground The background was the same as the arrow color And then the next one was weather The background color for that one Was the same as the arrow color of That one So how would you do it with multiple colors? I think I use I put trillium notes in a Top five videos at one point trying to think Because these are supposed to blend together then it's not supposed to be space between them Get your mind around it. So in order for that to happen The background color of the module that comes before the arrow has to be the same color as the arrow Which is gonna look weird I think you're only gonna be able to have two colors I'm sure there's a way and I'm just not thinking of to get multiple colors Arrow foreground needs to match the colors before it so instead of So let's get out of the wrong one. So them into tomorrow Night again, so The one weather One here. So that needs to be The one that comes before it is arrow zero So Arrow zero Is yellow. I don't have to go back. I can see it right there in front of my face, man Go here to weather instead of having this be orange Have this be yellow I don't know if I don't think this is gonna work. I don't and actually didn't change a damn thing Um Why I didn't change a thing. I don't know because it should have What because this is the weather module and we changed the background, but it didn't actually change the background I'm sure That it's easy to do I'm just not seeing it because reasons Too much for my little brain to get around apparently Um I'm not sure why that didn't change though Oh, I know exactly why I didn't change. Um because the we're not changing You have to do a dot slash This again and change to my night. Oh, I know exactly. All right. That actually helps me. Okay, so the All right, so go back to here Change this back to orange. This needs to be changed back to orange like so And the arrow one needs to be yellow not orange Okay, and then arrow two Needs to be orange not blue And and arrow three needs to be blue Not green And arrow four needs to be green Not purple and I actually I'm gonna need another arrow for purple Five again, I probably should just call that purple but Change this to purple I think actually no The purple one just needs to be Oops I might have to just mess around with that last one and go back here and change arrow four Right before I think this needs a change into to arrow five save this Go back to five run the script again I still messed that up somehow somehow Oh, the next debbler is here. How you doing bud? How's the baby? Yeah, breaking Benjamin's awesome. I've been listening to it like crazy so That's the right colors Those match up here and those match up here and that makes you appear and that's here and that matches up here um the I have a feeling like I'm off one like I shifted everything over the wrong direction is what I feel like That's what I feel like is that is I shifted everything over too far one the wrong direction so Hmm I know that looks ridiculous though Finally got him to go to sleep. That's good Many days where I just think that I don't I have no I don't have offspring I'm sure they're joys, but I don't think I'd be very good at it You know, I just don't know I'm obviously doing something stupid here. It was so much easier with just two colors Especially when one of the colors was the background color of the bar In order to get this one here to seem to overlap with that one This should be orange with the background color There's a space between it All these were the right color before The first one is yellow. This this one should stay orange This one should be blue This one should be green This one should be purple And this one should be Again, it doesn't really matter. I don't want to change that again I wonder if the background color needs to be exactly the same thing So if we change this to yellow Change this one to orange Change just the blue And you just went to green No clue if this is going to work or not. We'll just have to undo it if it doesn't Purple I don't know why That keeps doing that and just went to orange And it's not we're actually going to run the script Tomorrow night Well, that's closer. There's no more spaces Let's see here So back to three here Now the arrows aren't showing up at all because they're The wrong ones so If we shift all these arrows Like this background color here Should stay background Wait a minute. Hold on a second. I wonder hold on a second Hold on a second. I think I've I've had a stroke of inspiration This could be completely wrong obviously, but now we run the script Tomorrow night Come on work work work work work Look at that. I figured it out. It only took 20 minutes Whoo. All right, cool The other week when I tried to do 10 races in in two hours or whatever it was There's a reason why I didn't get to that 10 to the 10 races. You can't do 10 races in In an hour. So anyways, wow Look at that That's that's a complete win works sweetness The like I said, the only problem I'm going to be having is when I wanted to go back If I wanted to go back to my grove box power line I don't think it would work now Because the arrows are different now a couple of them are still here but now that because I have Arrows here this needs to go back to era So I'm going to have to have in the power line ones. I'm going to have to have the its own Modules right section Or I'm just going to have its own configuration file But that's a problem for another day Because I am done. I've been streaming now for an hour and 52 which is about half an hour longer than I normally do. So Yeah, wow, uh, thanks everybody who's watched the watch the stream. I uh, I do appreciate it I definitely had some senior moments there for quite a long time I did eventually figure out the things that I need to figure out If you're interested in any of these races or the script that I wrote Those will be up on my get get lab Sometime tonight. I'll upload them so that you can give them all try Or you can, you know, I do happily accept pull request or push request or whatever they're called and if you improve them That'd be cool As long as they still work obviously, but anyways, uh, that is it for me this time before I go I should take them to my current patrons. You can support me on patreon at patreon.com slash linux cast Thanks to robert said devon patrick fred kramer trydevil Antoine uncle bonehead kb griff's lounge maklin jessime dual steve super glennick scaric samuel tgb keith andy gary ross Mitchell j. Doug carbon data germy shone odin marney edwardo arcsner elliott mizlau merrick camp drashley peter a crucible dark penance experiments p.m. Our life when in philp. Thanks everybody for