 Hey everybody, welcome back to the channel. Today's plan for a video was actually going to be adding color to the DAWM bar, but I shot that video, it didn't work, so I'm still exploring the patch that's supposed to add color to SL status just does not work on my system for whatever reason. Don't know why. So, plan B. We're moving to X-Mode Add, which was what we did the previous time we did a video, or I did a video. And this originally was going to be planned for January, but I just decided to do it now, because I've come up with some ideas on how to get a bar that I think are going to work. We'll see. The way I've been successful lately, there's no way this is going to work. Anyways, let's go ahead and jump over to the main screen. Oh, by the way, for those of you who watched my last two videos, I did remember to change this text over here. It said top five Linux apps for like three videos, and I didn't even notice until today, but I changed it. So chances are I'll probably forget again, so that's probably gonna happen. Anyways, jump to the main screen here. I should also make sure that, you know, I'm actually recording, which I am good. All right, so let's zoom in here. So my idea, so if you remember the last time I was playing around with Polybar, I was attempting to run launch.sh through a startup hook within Haskell. It was not working. So what I've decided to do actually is because apparently you can run scripts that are in your path in using a startup hook. What I'm going to do is create a script for all of my startup stuff and go ahead and put it right in my path. And then that's the only thing in my Xmonad config that will auto launch from there. Everything else will happen through a batch script. Now theoretically this should work. So first we're going to go through and do viman to xmonad.hs and we're going to go down here to startup. Okay, we finally found that. This config file is really long. That will be a problem for another day. So I'm going to go ahead and just take out all this stuff. I'm going to delete this, delete this and we'll leave this here because we're going to change inside parentheses. That's not parentheses. Those are quotation marks, don't ask. All right, so we're going to call the script auto start mon, start monad.sh, okay? And we'll just kind of remember that name and we'll write this. We'll leave it there for now and we'll open up a new terminal here and go to cd slash user local bin sudo touch and we call the auto start monad.sh, okay? I didn't type my password in, right? That's better, okay. And then we want to change the, so sudo chmod plus x and auto start monad.sh. Okay, and then we want to sudo nvim auto monad.sh. So, and this is going to be a bash scripts for me to do pound sign exclamation part slash bin slash bash, and we're just going to call sh. We'll just, that way it'll work in more shells. And we want to pycom and we want to niter progen dash dash restore, oops, no space, restore. And we want to till the slash, that's a good point. So, hopefully this will work. So dot config slash poly bar slash launch dot sh. That, what I need to do is open up new terminal here and go to cd dot dwm, no, not dwm, it's going to have to be bs pwm. I'm trying to figure out where I remember where I have a poly bar that I'm starting like this. So, config bs pwm ls, do, do, do, do of them auto start. Yep, all right. Yeah, see, okay, so this is, this does dollar sign home. So, and we have to make sure we put ans at the end of those. So, let's close this and do dollar sign, dollar sign home, okay. And put, do, do, do, do, ampersand at the end. And ampersand at the end. And we'll save this and close it. Close this, save and close this. And do mod shift and queue. That didn't work. Okay, so we're gonna have to do xmodad dash recompile. Okay, so recompile successfully. So, mod shift restart, no, mod shift queue. That's still not starting a poly bar. And why not? Why not? Why isn't anything I do working today? Okay, so you wanna, wanna cd, we're gonna go see how ARCOLINX is. Because ARCOLINX is a standard xmodad install uses poly bar. So, they have to have been able to do it. So, let's go find out how they did it. So, we're gonna do locate scale. I think it's slash users. So, cd slash user slash share scale, maybe? No. User slash bin, no, it's bin scale, no. It's somewhere in this one, ls, okay. So, cd slash share ls, nope, cd dot dot. Locate scale. That's the reason why I didn't do a locate. Because there's way too many things with scale on it. Everything that has has scale on it, basically. I don't know why they had to call it scale. I'm gonna have to locate it. This is, I'm sure there's a better way to do this. There's probably a fuzzy finder, but I don't know how to use fuzzy finder yet. That's on the list of things to do. All this stuff is hasco. Doc, doc, doc, doc, that's gonna be hasco. That's gonna be hasco. Do, do, do, do, do, do, do, do, do, do. Choplin, I thought he, here we go. It's that, see it wasn't even in user, it's in Etsy. All right. So, cd, cd dash Etsy scale, ls cdxmonad.xmonad ls. Okay. So, cd, let's see what's in their scripts file. Autostart.sh, and this is, this here right here is where they're launching Polybar. So, they don't have it in path. But that's not gonna, okay. So, where do they call this file out then? In zsh, cd, dot, dot, okay. Vimxmonad.hs, okay. So, we're gonna find autostart.sh. I gotta actually spell it right, autostart.sh. That's right. This is what this looks like. Spawn, dollar sign home slash dot xmonad. Okay. Well, you wanna, we'll try that. Okay. We're gonna leave that open script. So, we're gonna, first, we're gonna do cd slash user local bin. And we're gonna sudo move autostartmonad.sh to, oh, fuck. We're gonna cd.xmonad, make directory scripts. Okay. And then we can close that. And we wanna do this tilde slash dot xmonad scripts. Okay. And cd, cd.xmonad scripts ls vim autostart.sh. That should work theoretically. They had it a little bit different in this scale one. Let's close this for a second. And cd into scripts here, and vim autostart autostart.sh. See, they had it sleep run. Mm, okay. Well, you wanna, we'll try that. So, parentheses, okay. Sleep to semicolon run. And then parentheses and, okay. But this is gonna be, yeah, I wanna keep that, yep, exactly like that. I'm wondering if I'm gonna have to put this if statement in there too. I bet you I'm gonna have to. So, what we're gonna do is, I'm gonna function run. Oh, I'm changing a fucking, you know, only prop. Ah, I'm gonna have to redo all this stuff. So, there's no way this is gonna let me write this. Maybe it did. Maybe it did. All right, let's see. Run, oops, insert to squirrely black brackets, okay. If exclamation point pgrip, dollar sign one, semicolon, then dollar sign at sign, ampersand, fi. And then close that, okay. And let's see how they did the pi com as well. They did fed this way, and everything else. So, this has to have run in front of it. But, except for pi com doesn't have run in front of it. And neither does fed. So, those should work fine, okay. So, we're gonna, okay, that should work now. Okay, so we're gonna have to cd into, up a level, cd.exmonand. Oops, then met, xmonand.hs, okay. My startup hook and what's cd up a level. So, I can see what they did here again. We're literally just copying them because the way I wanted to do it didn't work. cd, vim, xmonand.hs. I really gotta set up vim so it remembers position. It's right here. I'm wondering if we also have to have that window manager name. We'll put that in here. Spawn, let's see here. Dollar sign, oops, that's not dollar sign. It's a home, home slash dot xmonand slash strip. Slash, auto, start, xmonand.sh, okay. It's named a little bit different, but it should still work. Set vim manager name, lg3d, just in case we need it. Okay, control wq, xmonand recompile, and that's the one that gets me really, did I, g3d, set window man, wm name? I will just delete that part then. I didn't want it anyways, okay. All right, now we'll recompile pile. Okay, that should work now. Mod, shift, q, still doesn't run Polybar. Why does it work? It doesn't make any sense. Because we know when, this doesn't make any sense at all. I don't get it. Does anybody get it? It doesn't make any sense. All right, so here's what I'm gonna do. I'm gonna pause, save out. The recording as it is, restart xmonand and see if it'll actually work that way, like an actual restart. So give me just a second, this is gonna take a minute. Okay, as you can see, we're no longer in xmonand. It didn't work. And then when I get in there, I can't even show you this because I can't open anything because none of my key bindings would work. And I think I know why. I'm pretty sure it's because I had SXHKD going in that startup file or in my startup hook. And I deleted that file like a moron and didn't put it in autostart. So what I'm gonna try to do is cd into .xmonand and scripts ls and then autostart monand sh. Okay, and we're gonna try to do run, because where do I have S? I'm pretty sure it's .s. Okay, so I'll change this if it's not true. So $home slash .xmonand. Slash sxHKD slash sxHKDRC, okay? And quit that and I'm gonna quit out of here, go over here and I'm going to pause this again. And this is gonna make my editing way harder, but screw it and we're gonna try to log back into .xmonand and see if the damn thing will work. So we'll be back in a second. Okay, as you can see, still not an .xmonand, that still didn't work. So what that means is that the .xmonand config file is not loading that script for whatever reason. So we're gonna go find out rye. Okay, and then them.xmonand.hs, okay? My startup hook. So something about this is not right. So we're gonna have to, maybe I'm missing a ampersand, or a semicolon or something, I don't think so. But we're gonna find out. So we're gonna do CD slash Etsy slash scale slash xmonand.xmonand, and we're gonna vimxmonand.hs. And we'll scroll down here like a pleb. It should be here, I think we passed it actually. Yeah, it's right here. These look exactly the same. My startup hook equal do. My startup hook equal do. Spawn quotation marks. Dollar sign home.xmonand slash scripts slash auto start monand.sh. You wanna know what? Just for the hell of it, we'll rename that script to just auto start.sh. Xmonand recompile, oops. Okay, that actually worked, which it worked before and it still isn't loading anything. So that means we need to CD into scripts and move auto start monad to auto start.sh. A, U, T, S, T, R, T. Yep, okay. And we're gonna vim into that and make sure, oops, that was dumb. This is the perils of auto complete. Auto start.sh, okay. So CD, we wanna go there and see if we need scripts. Vim auto start.sh. We're gonna go ahead and make this a bash script because maybe that's, you never know. All right, function run. Those all look right. I don't understand. I mean, theoretically what we could do is just copy this whole file. Just cp it and make it exactly this file except for the fed part, because we can even use the fed part because I have fed installed. You want to know that's exactly what we're gonna do. Screw it. All right, so we're gonna sudo cp. I think it needs to be recur, it doesn't need to be recursive because that's just file. So auto start.sh, till the slash.xmonad strips and that's where it should be. I've had the password wrong. It's gonna be the longest video in the history of videos. This is the last chance before we just chalk this up to being a complete failure because I'm done for the night. All right, so before we do that, just cd.xmonad scripts ls. Make sure that is executable on all three levels. It is. Okay, quit. I'm gonna pause one last time and we're gonna hope that this worked at least to get my key bindings back. If at least got my key bindings back, then great, that means it's loading the file. If I still don't have my key bindings, then I'll come back here and I'll say good night and we'll upload this video as an utter failure. But that's the reason why I do these videos is because you can learn from my mistakes. Don't do these things. Anyways, just hold on a second. We'll be back in a second. Okay, I'm back. That was like 20 minutes between pause recording and coming back but it was instantaneous for you, lucky you. It didn't work obviously because I'm still in DWM and I have a headache and Christ am I disappointed and I'm more actually kind of pissed off. So here's what happened. It worked kinda. It is launching that script. It is launching auto start SH from my startup hook and I know that because it's actually using FET. Okay, so it will launch Arco Linux bog standard thing. It will launch variety, which I never use. So it is launching it but it won't launch SSHKD because I can't launch termite view of my key binding. I'm a moron. Okay, hold on a second. I'm gonna pause again because I just thought of something I just did stupidly wrong. Hopefully when you come back, you'll see me in Xmoned. This is me being stupid. I cannot believe I forgot. You can't just launch the SSHKD config file. You have to launch SSHKD with a flag of the config file. All right, hold on a second. Okay, I'm back after being a moron. I wasted 20 minutes when I like them. I never can get back because I'm a dumb ass. As you can see, I'm back in Xmoned. The reason why SSHKD wasn't running was because, all right, well, just let me show you. I'm gonna go to a different, see Xmoned running. Pycom's still not running. I'm not sure why. But if we, Vim into Xmoned scripts auto start SH, delete it. Fuck it. As you can see, I've changed this here. Originally, I just had run and then this location of the SSHKD RC file. That's not the way you do it. You have to run SSHKD-C in order to get SSHKD to run. And I know that, because I've done this like four or five times in other window managers, but for whatever reason, I was just sitting here for half an hour. Man, it's not working, it's not working. As you can tell, there's still no poly bar. I'm not exactly sure why. So let's see here. Actually, excuse me, there is a poly bar. There is. Let me show it to you. This is what the poly bar looks like. It's running. It's running in full screen. And it's running twice because I have two monitors. This is for monitor one. This is for monitor two. I'm not exactly sure why that is. I wonder if I have to do... So if I do, let's see. One, seven, one, six, five, four, there we were. I can't tell what window workspace I'm on because I have no bar. Okay. This is ridiculous. It's the most ridiculous thing ever because I'm sure XMO bar, which is really hard to set up, probably would have been easier than this because there's probably instructions on how to do it. So anyways, what I wanna do here is try the Xrander thing here. So if we do Xrander list monitors, okay, and we comment, oops, we comment one of these out. It doesn't really matter which one. I don't think. Because that's not the way it works. We're gonna have to go here. So one of the things I did when I was still being dumb was I moved Arco's standard poly bar config into my Xmonad file. And that's the one I'm using. So if we do cd.xmonad, poly bar, ls, and then v and config, and then we go down here. Mm, I got Xmonad. They should just do normal. Anyways, I'm done for now. I'm frustrated. I'm not exactly sure what the hell's going on. I'm gonna close those things and close these things and go back to Q and one and two and three. Here we go. Make sure we're actually recording. This is my recording setup. We normally have it on multiple workspaces, but I'm very frustrated. Anyways, change scene. Okay, you no longer have to see it. That was frustrating and completely pointless. That was also probably about 50 minutes worth of video. And I'm gonna have to edit all that nonsense. Wish me luck. For whatever reason you liked this video, if you like watching me struggle and suffer and have nothing to show for, for however long, I don't even have a clock in Xmonad. DT, you've led me wrong because obviously I'm too stupid to use Xmonad. I'm just gonna go back to DWM because it's way easier. And that's a sentence I never thought I'd say. I didn't think there was anything harder than DWM. But I learned DWM and I can't learn Xmonad because I'm just stuck. I was so certain that my way of creating a auto start script was just gonna work. I just figured I'd get that auto start script in there. It would auto start to name and flies and Polybire would appear. Ta-da, that's not what happened. Anyways, unlike dislike, whatever, subscribe, any of that nonsense, really do appreciate it. The channel, well, I wouldn't say the channel is growing by leaps and bounds. I'm actually quite happy with the way we are for having only done this for a couple weeks. And I'm almost positive that you'll agree that the production values have gone up way better than they were. They're still not good, but they're better than they were. So anyways, we'll see you next time on the Link to Cast Channel.