Patching Dmenu Is Absolutely Worth The Time And Effort

Sdílet
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...)

Komentáře • 57

  • @BrodieRobertson
    @BrodieRobertson  Před 4 lety +4

    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.

    • @sheikhshakilakhtar6844
      @sheikhshakilakhtar6844 Před 4 lety +1

      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!!

    • @ajaysharma-ko8ks
      @ajaysharma-ko8ks Před 4 lety

      AKSHIT

  • @JDStone20
    @JDStone20 Před 4 lety +3

    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.

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety +1

      I use the vertical menu when I need more than just a name

    • @fuseteam
      @fuseteam Před 4 lety +1

      i use verticle menus for ls and man pages :^3

    • @JDStone20
      @JDStone20 Před 4 lety

      @@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

    • @JDStone20
      @JDStone20 Před 4 lety

      @@BrodieRobertson That is a good idea

    • @fuseteam
      @fuseteam Před 4 lety +1

      @@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

  • @betrant259
    @betrant259 Před 4 lety +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.

  • @AtomToast
    @AtomToast Před 4 lety +6

    dmenus height matches dwm's height perfectly by default. Anybody using something else will probably want to use the line height patch

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety +1

      I presume you can modify the dwm bar height?

    • @AtomToast
      @AtomToast Před 4 lety +3

      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

  • @senninscorpion
    @senninscorpion Před 4 lety +2

    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. =)

  • @SaHaRaSquad
    @SaHaRaSquad Před 4 lety +3

    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.

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety

      Dmenu_run pulls in everything in your path, even just random scripts you've written

    • @SaHaRaSquad
      @SaHaRaSquad Před 4 lety +1

      @@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.

  • @jhonrocha6632
    @jhonrocha6632 Před 4 lety +3

    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

  • @joetheman74
    @joetheman74 Před 4 lety +2

    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.

  • @smhsophie
    @smhsophie Před 3 lety +2

    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 :)

  • @oniondesu9633
    @oniondesu9633 Před 4 lety +2

    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.

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety +2

      That seems like way too much of a hassle.

    • @oniondesu9633
      @oniondesu9633 Před 4 lety

      @@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

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety

      @@oniondesu9633 if it's automated that's not as annoying I thought

  • @fuseteam
    @fuseteam Před 4 lety +2

    tmw you know what functions he patched applied after one glimpse of the patches folder

  • @fuseteam
    @fuseteam Před 4 lety +2

    i run man commands and sudo commands through dmenu btw
    yes even package management :^3

  • @user-ir5xb1yk5k
    @user-ir5xb1yk5k Před 4 lety +2

    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

  • @jhonrocha6632
    @jhonrocha6632 Před 4 lety

    Great content, btw! Nice ricing!

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety +1

      Thank you, there's still some work to be done in places but I'm fairly happy with it.

  • @bhaveshverma8629
    @bhaveshverma8629 Před 2 lety

    how to switch between application using dmenu ?

  • @mariuspy
    @mariuspy Před rokem

    what is the file manager with icons and borderes?

  • @chri87d9
    @chri87d9 Před 4 lety +2

    I'm wonder what the point is of the 2 config files? Why not just one.

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety

      I wish I knew myself, there doesn't seem to be any obvious reason for it.

    • @chri87d9
      @chri87d9 Před 4 lety

      I thought that the '.def' was the default. Like a backup. But then the patches should be applied to config. h.

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety +1

      @@chri87d9 that would make sense but the way it's setup just makes it pointless file

    • @fuseteam
      @fuseteam Před 4 lety

      one is for configuring and one for git management :p

  • @neonblood4658
    @neonblood4658 Před 4 lety +1

    How do your lf previews have syntax highlighting?

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety +1

      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.

  • @pZq_
    @pZq_ Před 4 lety +1

    Nice haircut, now it's time for a barber XD

  • @oscarrzga4615
    @oscarrzga4615 Před 4 lety

    Do u have this in text?

  • @milijanmosic5189
    @milijanmosic5189 Před 4 lety

    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!

    • @BrodieRobertson
      @BrodieRobertson  Před 4 lety

      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.

  • @champfisk5613
    @champfisk5613 Před 4 lety

    So this is underwhelming