Patching Dmenu Is Absolutely Worth The Time And Effort

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 57

  • @BrodieRobertson
    @BrodieRobertson  4 ปีที่แล้ว +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 4 ปีที่แล้ว +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 4 ปีที่แล้ว

      AKSHIT

  • @JDStone20
    @JDStone20 4 ปีที่แล้ว +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  4 ปีที่แล้ว +1

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

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว +1

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

    • @JDStone20
      @JDStone20 4 ปีที่แล้ว

      @@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 4 ปีที่แล้ว

      @@BrodieRobertson That is a good idea

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว +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 4 ปีที่แล้ว +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.

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +2

      Oh cool, thanks for the suggestion

  • @smhsophie
    @smhsophie 4 ปีที่แล้ว +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 :)

  • @AtomToast
    @AtomToast 4 ปีที่แล้ว +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  4 ปีที่แล้ว +1

      I presume you can modify the dwm bar height?

    • @AtomToast
      @AtomToast 4 ปีที่แล้ว +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 4 ปีที่แล้ว +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 4 ปีที่แล้ว +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  4 ปีที่แล้ว

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

    • @SaHaRaSquad
      @SaHaRaSquad 4 ปีที่แล้ว +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.

  • @joetheman74
    @joetheman74 4 ปีที่แล้ว +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.

  • @fuseteam
    @fuseteam 4 ปีที่แล้ว +2

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

  • @jhonrocha6632
    @jhonrocha6632 4 ปีที่แล้ว +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

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว

      That's a good idea, I'll go do that.

  • @bhaveshverma8629
    @bhaveshverma8629 3 ปีที่แล้ว

    how to switch between application using dmenu ?

  • @mariuspy
    @mariuspy ปีที่แล้ว

    what is the file manager with icons and borderes?

  • @jhonrocha6632
    @jhonrocha6632 4 ปีที่แล้ว

    Great content, btw! Nice ricing!

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +1

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

  • @oniondesu9633
    @oniondesu9633 4 ปีที่แล้ว +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  4 ปีที่แล้ว +2

      That seems like way too much of a hassle.

    • @oniondesu9633
      @oniondesu9633 4 ปีที่แล้ว

      @@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  4 ปีที่แล้ว

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

  • @РустемФахрутдинов-ш8ш
    @РустемФахрутдинов-ш8ш 4 ปีที่แล้ว +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

  • @chri87d9
    @chri87d9 4 ปีที่แล้ว +2

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

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว

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

    • @chri87d9
      @chri87d9 4 ปีที่แล้ว

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

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +1

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

    • @fuseteam
      @fuseteam 4 ปีที่แล้ว

      one is for configuring and one for git management :p

  • @fuseteam
    @fuseteam 4 ปีที่แล้ว +2

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

  • @neonblood4658
    @neonblood4658 4 ปีที่แล้ว +1

    How do your lf previews have syntax highlighting?

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +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.

  • @oscarrzga4615
    @oscarrzga4615 4 ปีที่แล้ว

    Do u have this in text?

  • @pZq_
    @pZq_ 4 ปีที่แล้ว +1

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

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว

      I just let the barber do a bit of cleaning up.

  • @milijan-mosic
    @milijan-mosic 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      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 4 ปีที่แล้ว

    So this is underwhelming