 All right, what's up everyone? So this video I'm just gonna have some brief tips or really brief implementations of D menu Now I've done videos on D menu before but there are so many it's one of these programs that you can just get so much with For so little that I find it very useful and I use it all over the place I mean if you've watched my videos before so I use D menu for a lot of things Most people will use it for a run prompt there. It is up here. I use it it's also for you know selecting what kind of monitor I'm going to use or Mounting or un-mounting drives. I use it for a lot of things you can check out my videos on D menu if you want to find more more about those But I want to show you two implementations I've I've started to use relatively recently using D menu one is to type emojis That's why I have all these emojis pulled up here and another one is something I use on larbs to To allow people to watch my videos remotely now Both of these implementations are really just one line If you know what you're doing you can very easily make a really useful user interface With just one line of a shell script with D menu inside So I'm gonna show you what what I use this for now Originally, I mean emojis will talk about the emojis first so emojis are all over the place nowadays It's nice to be able to Type that I mean a lot of people if you want to type an emoji if you're not using like Twitter or Facebook or something where you can Click on something People end up searching them on Google or something and of course, I'm not going to do that originally what I did is I actually just went to this Wikipedia page and Downloaded the source of it the HTML source of it and just ran operations on it to isolate Well, I'll show you what I what I ended up with to get this file here This file that I've named unicode Which is really just all the emojis on the left side and their name on the right and originally what I did before I used D menu if I wanted to get an emoji, let's say I wanted a hat an emoji for a hat I would just grep out the sequence hat from this I'm missing every single key that I press right now. I would just grep out the sequence hat From this file. So okay, maybe I'll take this one. I would just copy that use it for whatever I wanted But D menu makes this even easier. I'll go ahead and show you what it looks like. I have this actually bound to Mod grove and what it does is it gives me a D menu menu where I can type in let's say I want a hat You know, I'll take the top hat and then you'll see that it also gives it a little notification here That says the hat has been copied to the clipboard now to show you that that works I have this gimp window pulled up over here and I can easily paste in the hat I can say let's say I want the You know tears of joy emoji Okay Now I got that you see that it says copied to clipboard and I can paste that out easily in fact We can make a we can make a little person. Can't we? Give them a shirt give them some pants. There are no pants. Maybe jeans That'll work. Yeah, so I can very easily get emojis and paste them in here now As I said, this is really just one line of shell script interfaced with D menu and I'll show you what that looks like pull up yet another Just pull it up. I think I named it D menu Unicode Okay, and this is all it is now it uses this Unicode file as an input and really I just pipe it into D menu I'll talk about why I do this thing here in a second I pipe that into D menu and D menu, of course will treat each line as a different option I is for case and sensitivity case and sensitivity the L option says give me a horizontal menu with Of you know 20 high or however, I could increase this if I wanted to have more And I also make it a slightly bigger font. I make it monospace 18 and That will allow you to select whatever emoji you want Then I just push it through ox. So you only get the emoji push it through get rid of the new lines Because otherwise it'll you'll have a new line and the thing that you copy But basically it'll just copy that emoji to the clipboard and again This is really just in one line and just to make it a little more clear what's going on I added this extra line that'll just send if you have Dunst running It'll send a notify send command that'll say oh you've copied. Let's let's add some shoes to that guy So all right, so you've copied shoes to the clipboard this line just gives you this notification Actually, I'll go ahead and complete all person over here. I think I missed the oh, maybe you just can't see him at this level Whatever Anyway, so doesn't really matter. So this is really just something. I've actually ended up using a whole lot again one line That's all you need and oh, yeah I said why I do this thing here one thing about D menu is if you have characters if you give it characters that You don't have a font for it's gonna give a little error or D menu is gonna crash It's not even gonna give an error. I shouldn't say that So what I've done here is all the you'll see here in my input file There are some characters here at the bottom that I don't actually have so I've just marked all of these with a you know a pound sign and My input command just says ignore all the lines, you know only grew up out the lines that don't have the pound sign That's all that's for and that's so I don't have a D menu error So depending on what font you have depending on how complete your unicode characters are you might have to throw this on More but I just have I think noto emojis Google noto emojis have installed and that'll work for that So you can check this out. This will be on my github now the other one thing Now the other little D menu tip is another script that I use actually it's in the same folder I shouldn't close that out. It's called tutorial videos actually. I'll just show you how that works first Now if you use my dot files if you've installed larbs or anything like that one functionality is if you type Mod shift E you get this little menu that says what do you want to learn about it gives you a couple options? Down here. Let's say I want to learn about mutt. So I'll click on that or type that in and this is this D menu prompt It'll take a second But what this deep menu prompt does is it actually pulls up a video? It really streams a video from my channel. That's that's the goal of it And this is so like if someone wants to learn about something they can just open this up Obviously, I don't use this myself because you know You know, I did the video so I know this stuff But for those of you who use larbs you might know that this is in there So this is really just as easy to do it is another one liner and I will pull this up It's tutorial vids and again, this is mapped in I3 to a particular binding but Here really what I do first off. I have a variable where I have Whatever the topic is and then a link to it separated by a tab And really what this one liner is again, it's it's super simple all it is is you Take the video list you grew up out There are some of these without URLs and you you know only grew up the ones with URLs That's just so I can add the URLs URLs later when I do the videos and you I specifically wanted to only show The first part not the URL So I tell said to ignore the part afterwards and then it'll give you that D menu prompt So what this variable is going to end up being is whatever the name of the thing you want to see is And or yeah, it goes a little further than that, but whatever Then it's just going to grep. It's actually going to read this variable twice Which is you have to do if you don't want it to show the URLs But but anyway, once you choose what you want to see It's going to plug that into a grep command That's going to search through this again and basically get the URL It's going to get the stuff after the tab and it's going to just play that in MPV So at the end of the day MPV is just going to run on one of these URLs So this is another simple implementation of something in D menu that I find very useful Again just a little tip, but hopefully my objective here isn't just to show you these things I mean, I think the unicode thing at least everyone else can probably use again Both of these are on my github But D menu I think is as a fuzzy finder is something that's very useful And a lot of people always have clever implementations for it So again, check it out if you haven't already There are plenty of things that you could probably invent to use this for But anyway, that's going to be about it for this video And I'll see you guys next time