Patching Dmenu Is Absolutely Worth The Time And Effort
Vložit
- čas přidán 8. 09. 2024
- Like all other Suckless software Dmenu is intended to be patched however, up until recently I never bothered to look into it but it turns out that their are actually some really useful patches for dmenu. A lot of them are aesthetic patches but some provide some really neat functionality.
💖 Subscribe and ding the bell for more videos!
👍 Leave a like if you got something out of this video!
✍ Comment some video feedback or what you want to see next time!
==========Resources==========
Suckless Dmenu:
tools.suckless...
Dmenu Patches:
tools.suckless...
My Dmenu Fork:
github.com/Bro...
==========Support The Channel==========
Patreon:
/ brodierobertson
Paypal:
www.paypal.me/...
BTC Wallet Address:
1Aokiv3pFQXUEmh2LbzZQAwxMvq6bpT2UN
ETH Wallet Address:
0x80451867c86bdf08c3888d407c1e3fcb6add61ed
LBC Wallet Address:
bLRN9fm17sCexKfgbYqmMj5xskZF2ogpEh
=========Video Platforms==========
📚 LBRY Podcast:
open.lbry.com/...
🎥 CZcams Podcast:
/ @techovertea
🎥 LBRY:
open.lbry.com/...
📚 LBRY Referral Link:
lbry.tv/$/invi...
📺 BitTube:
bittube.tv/pro...
==========Social Media==========
🎤 Discord:
/ discord
🐦 Twitter:
/ brodieonyoutube
📷 Instagram:
/ techovertea
🧠 Minds:
www.minds.com/...
✉️ Telegram:
t.me/BrodieRob...
🌐 Mastodon:
mastodon.socia...
==========My Repos==========
🖥️ GitHub:
github.com/Bro...
==========Credits==========
🎨 Channel Art:
All my art has was created by Supercozman
/ supercozman
/ supercozman_draws
🎵 Ending music
Music from filmmusic.io
"Basic Implosion" by Kevin MacLeod (incompetech.com)
License: CC BY (creativecommons...)
Dmenu is probably one of my favourite applications, it's such a simple to use program but it has so many useful applications and it's been the base for a lot of my scripts. What do you think of Dmenu, I know people prefer Rofi but let me know your thoughts down below.
Thing is rofi has an important feature by default - the window switcher. Is there any dmenu patch for that? Also, rofi arranges menu items in descending order of the frequency in which they are used,i.e., the most used items are at the top. Is there any patch in dmenu for that? Sorry, I didn't watch the complete video but I could not withhold the temptation to write these. lol!!
AKSHIT
dmenu is a nice program. I need to start using it for more than just dwm. I really like the lines option, I dislike horizontal menus.
I use the vertical menu when I need more than just a name
i use verticle menus for ls and man pages :^3
@@fuseteam Interesting. I didn't even think of using dmenu for that. I have been wanting to use it for more than just my menu for dwm
@@BrodieRobertson That is a good idea
@@JDStone20 i basically use dmenu for almost anything that i would create normally create a new (temporary) terminal window hehe especially one liner commands :^3
Nice video! One thing I wanted to point out, nerd-fonts now have JetBrains Mono font in their collection, so you can avoid using the fallback font for powerline and directly use the patched version instead.
Oh cool, thanks for the suggestion
dmenus height matches dwm's height perfectly by default. Anybody using something else will probably want to use the line height patch
I presume you can modify the dwm bar height?
well by default not really. It's like dmenu, just the text size plus some small padding. There is also a simple statuspadding patch with which you can adjust that padding with variables in your config.h though instead of having to hardcode values in the code
I only use dmenu for opening some programs that I didn't set a keybind, and I don't usually type looking at the keyboard or what is being typed on dmenu, so plain dmenu works for me. =)
I can't believe I didn't really get into dmenu for so long. I recently made 3 different dmenu scripts, including one to start applications that replaces the default dmenu_run. I find dmenu_run just lists too much unusable garbage that's only meant to be run in a terminal, and with fewer entries you can find the right program so much faster.
Dmenu_run pulls in everything in your path, even just random scripts you've written
@@BrodieRobertson Yeah, I know. That's why I replaced it with my own script, it now only lists stuff I actually use and that can be started outside a terminal, which is nice.
I gotta say, writing scripts that incorporate dmenu is downright addicting.
I usually add the config.h to the clean part on Makefile. For dmenu I have:
clean:
rm -f dmenu stest $(OBJ) dmenu-$(VERSION).tar.gz dmenu dmenu.o drw.o stest.o util.o config.h
That makes much easier to patches
That's a good idea, I'll go do that.
I use the border and the center patches. Makes it kinda like rofi. Then I set the number of lines to 15 so I get a menu with the input line plus up to 14 choices. Works good with dmenufm too.
Hi Brodie, do you think you could make a video about how to patch dmenu? Suckless tools are so bad with their documentation... but like you the only tool I like using is dmenu but I don't really get it. If you could, that would be great :)
I have a different branch for each individual patched version then merge them, build and then revert the master to the unpatched code. Isn't ideal when an update comes around but works for me.
That seems like way too much of a hassle.
@@BrodieRobertson Well I have some scripts to do it all for me, main reason is to just make it easier to remove or alter one specific patch
@@oniondesu9633 if it's automated that's not as annoying I thought
tmw you know what functions he patched applied after one glimpse of the patches folder
i run man commands and sudo commands through dmenu btw
yes even package management :^3
Hi. I use bspwm, too. I've noticed you have a default cursor for this wm. Why? Also, can you create a video about changing the cursor theme? I had a trouble with it
xsetroot -cursor_name left_ptr will get you a normal looking cursor
@@BrodieRobertson thx!
Great content, btw! Nice ricing!
Thank you, there's still some work to be done in places but I'm fairly happy with it.
how to switch between application using dmenu ?
what is the file manager with icons and borderes?
I'm wonder what the point is of the 2 config files? Why not just one.
I wish I knew myself, there doesn't seem to be any obvious reason for it.
I thought that the '.def' was the default. Like a backup. But then the patches should be applied to config. h.
@@chri87d9 that would make sense but the way it's setup just makes it pointless file
one is for configuring and one for git management :p
How do your lf previews have syntax highlighting?
I wrote a custom preview script, there's a couple of programs to do coloured printing, I use glow for markdown, pistol for my rc files, and highlight for any other text files, obviously you'll also want to find programs to preview other file types. My script is in on my github in the scripts repo.
Nice haircut, now it's time for a barber XD
I just let the barber do a bit of cleaning up.
Do u have this in text?
Do I have what in text?
Man, I watched your older videos...
dunno if you really struggle in life rn or you've become grumpy, but bring back that charisma from the start.
Or maybe I just don't see that everything is the same. Anyway, keep doing videos!
Some days I have less energy than others, if you want to see me at my worst watch sone of the videos from December before I moved to the new house.
So this is underwhelming