 Hey everybody, welcome back to the show to the channel to the another weekend video with the Linux cast fellow Matt Trying to explain something he knows nothing about all right, so About two weeks ago or so. I did a video about how I went through and Moved all of my key bindings from I my i3 config to an sx hkd config And today I'm going to show you a little bit about how you could go about doing that for yourself No, this is a standard arco linux installed right here in virtual box And It's just an i3 thing now if you know arco at all you know oops God I'm not on zsh You'll know that the Config file is huge mongus. It's huge as over a thousand lines in it and Now a lot of these are comments comments and you can get you can you know you can delete those things You know eat very easily And that just you know that just removed 40 lines Six 69 lines, excuse me, and so you move a lot remove a lot of that stuff But what about the key bindings the What's great all sx hkd is a lot if you use multiple window managers you can take one file and have all your Keybindings in that file and that will allow you to switch back and forth and your will allow your Keybindings to kind of follow you around so How would you go about setting that up? I'm not gonna this is not a in-depth tutorial on how to Take every single key binding over from like i3 config to an sx hkd I'm just going to do several smaller ones, so We'll open up another terminal here. You first you need to do is install pack install sx hkd now if you're on arch That's Zudo Pac-Man s sx hkd and then I Already have this install so I don't need to go through install it again, but that's how you do it The next thing you'll want to do is you want to do go to your i3 config and go into autos where it says the auto start For applications here, and you'll want to make sure that you have This in here so exec underscore always sx hkd, okay, and then Some sometimes you'll need to put an amp or stand after it. I Don't think we actually need to do that here this time, but we'll see if we do We save that it control r now sx hkd is actually running Now what we need to do is make cd into our dot-config file Okay, and make a directory sx hkd and We want to cd into that sx hkd and we need to touch We can need to create a file called sx hkd RC and then vim into that then sx hkd RC Okay, and then This is this is the config file that sx hkd will run off from so the first thing you we want to make sure we add is the a key binding to reset the RC file for sx hkd So we do do it this way super plus escape and then p kill Dash us are one dash x sx hkd Okay, and then we want to make we want to move term in this case We want to move the term terminal key binding over here super plus return termite okay, and We want to run D menu over here. So super plus shift plus D D menu run okay, and We want to move The kill command over here so super plus Q Now this is where it gets a little bit different. So anything that's an i3 specific command You need to use i3 dash dash MSG and then the command you want to run so we want to Say we want to let's see here One of the other things you want to run Put in here is to move between different workspaces of super plus Curly brackets one through nine chances are you have ten Workspaces, so you'll want to add the zero after comma and then curly brackets and then tab over i3 dash msg workspace Curly bracket one through nine comma ten Curly bracket, and that's it. Okay And you can do that for any Sorry about that. I had to pause the video. So I'm not exactly sure where I left off Um So we were talking about i3 dash message. I think any i3 specific Command has to start with us. So let's go up here and find a couple examples So this full-screen toggle if you wanted to put that into your your sx-hkd config you'd have to do mod plus F I and then i i3 dash msg Full-screen toggle That's really as simple as it gets and you can move any Key binding that you want over to your sx-hkd file the only things that have to stay Are This one here that sets the super key that has to stay and then the one Where is it right? It's the one that switches between tabs Not between this mode but switches between tabs. I can't find it. It's here somewhere. It's gonna be up. It's gonna be up Yes, this one right here this next previous workspace part here a mod plus tab mod plus tab mod plus tab Those have to stay if you delete those four lines your I3 won't load Well won't load properly at least So those have to say everything else that is a key binding can be transferred over Easy as you like it's just a matter of transferring them over and making sure that you have in this file here that exact underscore always sx-hkd that way sx-hkd will be running, you know every time you start up i3 and That's how you do it's really that simple as I said Those are the main points you have to have to remember those four lines that I just showed you have to stay in The Syntax here has to be correct. So it's it's always the key binding and Then tab and then the command So for example, let's do mod plus w Firefox you could do that It's for web browser It's really quite simple And it's not hard. It just takes a little while and what you want to do is before you go through and try this You'll want to make sure you what I would what I did when I transferred mine over is when I transfer something over from i3 To the sx-hkdrc I commented it out and said deleting it that way I knew that it worked once I knew that it worked for sure I could go through and delete it That's why I do and I did it one One command at a time to make sure that I I mean if anybody knows me, you'll know that I mistype things all the time. So I make sure I Made sure that I didn't delete the command from i3. I just commented it out before And telling at least I knew it worked. Anyways, that is it for us this time If you have any questions leave them in the comment section below and I will try to Answer them as best as my ability. I'm not an expert by any means If you like this video give it a thumbs up or thumbs down or a subscribe and we'll see you next time