Let's Rice Our Dmenu With Patching

Поделиться
HTML-код
  • Опубликовано: 10 ноя 2024

Комментарии • 132

  • @opfax163
    @opfax163 Год назад +7

    3 years later but this vid helped me a lot , thank you

  • @bobgrimes8618
    @bobgrimes8618 4 года назад +16

    DT, you gave me the courage to install ArcoLinux, however, with the MATE desktop. Your command line videos are a great educational tool to help those of us who are not that comfortable in the command line environment. I used to mess around with old DOS and OS/2 command line, but have not really felt that competent in the Linux CLI . I am working on trying out a CLI on one of my older Thinkpads just to follow along with your videos. Keep up the good work!

  • @KevinBReynolds
    @KevinBReynolds 4 года назад +4

    Excellent video once again Derek. Real-world demonstrations are a great teaching tool. Thank you for sharing your knowledge and experience. Very much appreciated.

  • @manufebie8535
    @manufebie8535 4 года назад +4

    Perfect timing. Was looking into how I could rice dmenu.

  • @Socio_Linux
    @Socio_Linux 4 года назад +5

    Nice rice, I riced my dmenu with almost 10 patches, and then created a number of bash scripts to launched different things, like PDFs in Zathura, and different files in gvim, with this scripts it's possible to use dmenu in a DE like Plasma, and run much faster than krunner.

  • @raym5736
    @raym5736 4 года назад +2

    Wow we think alike. Few days ago I riced my desktop, and built it around that same wallpaper that recently popped up on unixporn.

  • @TheNexusOfEvil
    @TheNexusOfEvil 4 года назад +10

    And i was about to look into ricing dmenu.
    This came at the perfect time, thank you

  • @markring40
    @markring40 4 года назад +2

    Thanks for all of the great work you do!! I appreciate your efforts.

  • @AndrewErwin73
    @AndrewErwin73 4 года назад +8

    I definitely prefer Rofi as a launcher, but I like dmenu for other things, like making Polybar modules more useful.

    • @fuseteam
      @fuseteam 4 года назад +6

      meanwhile i use dmenu like a interface for my terminal :3

    • @clocked0
      @clocked0 3 года назад +1

      @@fuseteam Hey I remember you from Brodie's video! Small world :)

    • @fuseteam
      @fuseteam 3 года назад +1

      @@clocked0 it's a small world after all~🎵

  • @waltereikrem
    @waltereikrem 4 года назад +2

    This was a super cool video dt! i would lovee to see more like this!

  • @SadeeshSenevirathne
    @SadeeshSenevirathne 4 года назад +4

    " Make Dmenu Great Again" *2016 election flashbacks intensifies*

  • @AtomToast
    @AtomToast 4 года назад +3

    just fyi, the reason why you had so many troubles was because suckless patches generally only patch conf.def.h and don't touch conf.h at all. Since conf.h gets automatically generated upon compilation the easiest fix for all your patches would have been to just delete conf.h and let it regenerate.
    Otherwise you have to manually add the patches to config.h as well like you did or modify the patch file to target conf.h instead which isn't hard either.
    Another easy way to transfer the new patches if you already have some custom config in your config.h would be to run a vim diff between config.h and config.def.h to conveniently apply the changes as needed. Personally I tend to just apply all my changes to config.def.h and then just delete config.h and let it regenerate upon compilation. However this then ofc adds another step.

    • @DistroTube
      @DistroTube  4 года назад +2

      Yea, that would have solved most of my issues, except that one patch that failed doing the "patch" command.

    • @AtomToast
      @AtomToast 4 года назад +2

      Yep, that one was indeed an issue of patches conflicting

  • @mrchristoph5674
    @mrchristoph5674 2 года назад

    The air quotes were so intentional it reminded me of Dr. Evil haha!

  • @albynoson
    @albynoson 4 года назад +2

    I literally clicked the video just for the definition of ricing at the beginning.

  • @ripon3696
    @ripon3696 4 года назад +2

    Cool stuff. The only patch i did with dmenu is changing the arrow key into Ctrl+Vim(key)

  • @Viken43
    @Viken43 4 года назад

    I have learned so much watching this, thanks for sharing

  • @motif5775
    @motif5775 3 года назад

    DT, you're awesome! Thank you!

  • @henninb
    @henninb 4 года назад +1

    Love the title of the video.

  • @gabriellopes3024
    @gabriellopes3024 4 года назад +2

    That is an excellent video Derek.
    Making one video about taskwarrior

  • @DJ_Cthulhu
    @DJ_Cthulhu 4 года назад +4

    DT could've saved time on all them dmenu patches by simply installing a maximum bloat GNOME environment ♥️🍚😋

  • @k033as9
    @k033as9 4 года назад +17

    I switched to Linux. I was tired of windows.

    • @andersonevitt8523
      @andersonevitt8523 4 года назад +1

      Same I found it so cluttered and awful, and haven't looked back since

    • @k033as9
      @k033as9 4 года назад

      @@andersonevitt8523 reboot and turn off is much faster than windows and no force updates

    • @hispantrapmusic301
      @hispantrapmusic301 Год назад

      @@k033as9how are u doing now?

  • @DDBAA24
    @DDBAA24 4 года назад +4

    I really like this type of video paying attention to detail, they come along every so often|Good stuff , I like this flow freestylin , plus it was just more natural then a standard tutorial and I actually learned a few things about dmenu I didn't know . I would push for more video's like this and do the things you want because whoever is here likely shares similar interests , like dmenu_blingdout.. Squares and letters 😪 , good tip ☝🏻@Klaus-Dieter Schmatz

  • @MichaelJHathaway
    @MichaelJHathaway 4 года назад +1

    Great video, Thank you!

  • @userlig
    @userlig 4 года назад +4

    I wish in the future to do something similar with polybar ...

  • @jacobkoziej
    @jacobkoziej 4 года назад

    I don't know if this isn't well know or if this is just obfuscated but the suckless team has a guide on how to track patches with git under dwm - customization. With the method they describe you're able to merge changes between the upstream master branch and your own custom branch to preserve patches.

  • @maverickmadison7392
    @maverickmadison7392 4 года назад +1

    If you want to run a command in your favorite terminal using dmenu
    assign the below to your keyboard shortcut (NO patch required)
    urxvtc -e $(dmenu -l 10 < listOfMyFavoriteCommands.txt)
    You can replace "urxvtc" with your favorite terminal, your terminal might use a different "-e" flag
    "listOfMyFavoriteCommands.txt" can be any text file with a custom list of your favorite commands, even .bash_history file
    Why use dmenu instead of bash_history with Ctrl+R/S ?
    It's easier to search & navigate for commands using dmenu

  • @OktayAcikalin
    @OktayAcikalin 2 года назад +1

    Yeah - I know it's late.. but those patches were applied to the config.def.h, while you were using the config.h file. I haven't viewed the source code yet, but I guess you have to reconfigure the package in order to have the config.h being recreated from the config.def.h. Just my guess. I'm out. Great video 🙂👌

  • @co9681
    @co9681 3 года назад +1

    How do I make it 20 lines by default?

  • @VulcanOnWheels
    @VulcanOnWheels 4 года назад +2

    10:05 I do see a warning.
    He's over there? :-)

  • @BrucesWorldofStuff
    @BrucesWorldofStuff 4 года назад +1

    Wow love the wallpaper! I do like some flat wallpapers and that one is great!
    Your going to keep at it until I try Dmenu, aren't you? Lol
    Ok while I am using the terminal more and more these days, I still am a clicky guy at heart... :D
    Who know, it could happen..... Lol
    LLAP

  • @khalildureidy
    @khalildureidy 4 года назад +1

    Just like Trumb made America Great Again :D

  • @mindaugas9958
    @mindaugas9958 4 года назад

    Hi, how do you get different colours in ls output? Such as the permissions and such?

  • @matteobarnaba6518
    @matteobarnaba6518 2 года назад +2

    The problem was not patch. You need to rename config.h.def to config.h before recompiling

    • @eygs493
      @eygs493 9 месяцев назад

      LMAO

  • @TrueWordsOfEternity
    @TrueWordsOfEternity 4 года назад +1

    thanks for this im gonna try and take this but add the json patch to it and see how that goes :)

  • @davidgomez79
    @davidgomez79 4 года назад +1

    cool stuff 👍

  • @kennyj4366
    @kennyj4366 4 года назад

    Thank you sir for the information 👍🙂👍

  • @ultrahalf
    @ultrahalf 4 года назад +1

    I wanna see dt libre booting a Thinkpad

  • @RushilKasetty
    @RushilKasetty 4 года назад

    weird... I'm pretty sure I applied the patch correctly but I'm not seeing a border anywhere. Maybe because I'm on a VM?

  • @sheikhshakilakhtar6844
    @sheikhshakilakhtar6844 4 года назад

    Is there any patch to only display those application with .desktop files like in rofi's drun mode?

  • @dominikheinz2297
    @dominikheinz2297 4 года назад +1

    Beard is lookin good ! :D

  • @JDStone20
    @JDStone20 4 года назад

    I couldn't get the fuzzymatch patch to compile, it isn't that big of a deal for me to get it running. Maybe if I am bored.

  • @copper4eva
    @copper4eva 4 года назад +2

    your surf build looks pretty good. Is the build in your gitlab up to date?

    • @DistroTube
      @DistroTube  4 года назад +2

      I haven't built surf in more than year. Not sure if there is a more recent version or not.
      EDIT: Checking suckless.org, there isn't a more recent version.

    • @copper4eva
      @copper4eva 4 года назад

      @@DistroTube
      I didn't mean if it was up to date as in up to date with the latest from suckless.
      I meant is the build on your gitlab synced up with what your running in this video, with the transparent style sheet etc.

    • @DistroTube
      @DistroTube  4 года назад +2

      Yes, it's exactly what you saw on this video...including the custom CSS styling for suckless.org.

  • @brainplot
    @brainplot 4 года назад

    Hi DT, I have a question. I would really like to use exa as a replacement for ls (and I mean aliasing ls to exa) but I fear I may run into incompatible options that are absent from exa.
    I'm a bit on the fence on aliasing out programs from coreutils. Do you ever run into any such issues?

  • @marioschroers7318
    @marioschroers7318 4 года назад +1

    Being a happy user of i3 here. Lately been trying to rice my i3 bar. But dmenu I think it's great. Have been thinking of installing rofi, but why, if dmenu is great?
    Let's see how you rice dmenu ☺️

    • @marioschroers7318
      @marioschroers7318 4 года назад

      @Learn Linux I try that occasionally and just kill the i3bar task. However, I seem to be too used to having that bar (yet).
      I also don't think that it takes that much screen real estate. I think its height is barely 13 pixels or something.

    • @marioschroers7318
      @marioschroers7318 4 года назад

      @Learn Linux Well, two bars would be too much for me as well. Though I think one bar is at least a good indicator of workspaces. I like that i3bar will only indicate workspaces that are actually in use.
      I think I remember DT once stated he finds this odd compared to xmobar or something. But that's the great thing, being able to configure the desktop all to one's liking.
      I once considered polybar, but didn't like it much.

    • @marioschroers7318
      @marioschroers7318 4 года назад

      @Learn Linux I do remember workspaces for the most part, but not always. On a 2-screen setup, I typically have odd workspaces to the right, and even workspaces to the left. Super convenient for me.
      I'm trying to reduce info to a minimum, though memory and CPU load is always nice to know, and on a laptop specifically, the quality of Wi-Fi signal is critical to know. And a bar just serves this purpose very well.

  • @digitalcrow5054
    @digitalcrow5054 4 года назад +1

    Ricing could be helpful in many cases it can save you plenty of time, but i think if you are gonna use a compositor like compton then the 3d gaming performance will probably not be as good ,this is the only reason i don't have window managers like these.

    • @lauriran
      @lauriran 2 года назад

      I know this is an old comment, but you could make a quick script to disable compton when playing.

  • @fatihfurkanhas6752
    @fatihfurkanhas6752 4 года назад

    What is your window manager in this video? And how could you resize windows like in 1:54? Thanks.

    • @DistroTube
      @DistroTube  4 года назад

      Looks like that is xmonad. But resizing a floating window is the same in pretty much all tiling window managers. Hold the right click mouse button and adjust the size accordingly. Left click on the mouse allows you to move the window.

    • @fatihfurkanhas6752
      @fatihfurkanhas6752 4 года назад

      @@DistroTube Thank you for your quick answer :)

  • @jonathanpichel4606
    @jonathanpichel4606 4 года назад +1

    What font is he using?

  • @champfisk5613
    @champfisk5613 4 года назад

    How did you setup dmenu to launch from key bind versus manually running from terminal?

    • @co9681
      @co9681 3 года назад

      For me it does that automatically from dwm

    • @champfisk5613
      @champfisk5613 3 года назад

      @@co9681 yeah it's setup by default, didn't know the keybind at the time.

  • @KyoyaThaBOI
    @KyoyaThaBOI 3 года назад

    Anyone have a link for the wallpaper

  • @Ahmed-Youcef1959
    @Ahmed-Youcef1959 4 года назад

    Where i can get that amazing wallpaper please .

  • @myfavouritecolorisgreen
    @myfavouritecolorisgreen 4 года назад

    i'm a simple man. i bind this to my dmenu hot key:
    dmenu_run -f -l 10 -i -fn ":size=16" -nb "gray" -nf "white" -sb "black" -sf "gray" -p "Applications: "

  • @odajemal5508
    @odajemal5508 3 года назад

    DT can you tell me your dmenu shortcut key!! I'm using your dmenu with your dwm windows manager :)

  • @protmalig
    @protmalig 2 года назад

    How make super + p run dmerun -c -l 20?

  • @ttt-sq6ou
    @ttt-sq6ou 4 года назад

    Could you do an up to date install of vanilla Debian with non free. Like from download if finished setup. This would be extremely helpful for me. Btw love your videos man.

  • @davidr2421
    @davidr2421 4 года назад +2

    15:30 JFC why would you write out an enum on a single line, when you're fully expecting people to be doing line-by-line patching?

    • @DistroTube
      @DistroTube  4 года назад +2

      Yea, that line could have been written out as multiple lines and it would save people some work, because obviously I had more than one patch alter that line...which basically ruins any chance of the automatic patching ever working.

  • @fish830911
    @fish830911 4 года назад +1

    Why not use dmenu as your file manager XD
    I am preparing to do a dmenubib software, using dmenu to manage latex bibliography.

    • @DistroTube
      @DistroTube  4 года назад

      Check out: ruclips.net/video/EyW6pRlWv6Q/видео.html

    • @fish830911
      @fish830911 4 года назад +1

      @@DistroTube Thx!

  • @ronnic1
    @ronnic1 2 года назад

    Anyone else having the issue of not getting the bottom part of the border?

  • @jhonrocha6632
    @jhonrocha6632 4 года назад +1

    Hey! I usually remove the config.h file, which is generated when you do a build, before I do make install, and that really help avoid many of the patching errors.
    I just added it to my .gitignore (and some .o and other stuffs) then I do after/before each build:
    $ git clean -f

    • @jhonrocha6632
      @jhonrocha6632 4 года назад +1

      Oh, and I am not sure if that is a best practice hahaha, I just got it from noticing the config.h was not necessary for the build and it was holding cached configs

  • @fuseteam
    @fuseteam 4 года назад

    i like your transparency!
    i wish i knew why the transparency patch for dwm doesn't work :/

    • @killermonkey1392
      @killermonkey1392 3 года назад

      Do you have a compositor such as compton/picom running?

    • @fuseteam
      @fuseteam 3 года назад +1

      @@killermonkey1392 i do now lol, i completely forgot i post that here

  • @fuseteam
    @fuseteam 4 года назад

    came here because i thought that someone had a tip for merging patches, then i realized "branches"
    git checkout -b mybuild
    git checkout master
    git checkout -b patch
    git apply < /path/to/patch
    git commit -am "describe patch"
    git checkout mybuild
    git cherry-pick patch
    git branch -D patch
    hmm i wonder how scriptable that is

  • @davidr2421
    @davidr2421 4 года назад +1

    Suckless really publishes patches but doesn't keep the diff-base synced with the latest release? That's not gonna scale.

    • @DistroTube
      @DistroTube  4 года назад +1

      What kinda bothers me is that most of the patches are sooooo small. Just a few lines of codes added/deleted/modified. Why not just ship with all this included? Are a few extra lines of code really "bloat"?

    • @crian117
      @crian117 4 года назад

      @@DistroTube Because of the suckless philosophy and most of the patches are made by users and not by the suckless team.

  • @iLiokardo
    @iLiokardo 4 года назад

    You can patch on top of patches??? I thought you really had to make copies of the original file, patch them and then put them together into the final file.

    • @0x007A
      @0x007A 3 года назад

      You can apply patches on top of other patches although from time-to-time you'll have to manually patch using the reject (*.rej) file(s) as a guide. I prefer separate git branches for each patch and patch against config.def.h and then generate config.h by running 'make' before 'sudo make clean install' and 'make clean; rm -f config.h *.orig *.rej' and finally merging the changes into the master branch using git. Prior to the initial compilation on the master branch, I copy config.def.h to config.def.h.original in case I want/need to revert to the default configuration and start from scratch.

  • @peterarbeitsloser7819
    @peterarbeitsloser7819 3 года назад

    I have an alias for recompiling:
    alias i="sudo make clean install; make clean"

  • @micycle8778
    @micycle8778 4 года назад

    tfw you dont pick up the fuzzy patch

  • @paulJkiely
    @paulJkiely 3 года назад

    Great vid!
    When I begin to type in Dmenu, it closes.

    • @DejiAdegbite
      @DejiAdegbite 3 года назад +1

      You'll have to edit the file /bin/dmenu_run
      Change the first line to
      #!/bin/bash
      Immediately after that add the following line
      LANG="en_US.UTF-8"
      Change the third line to
      dmenu_path | dmenu "$@" | ${SHELL:-"/bin/bash"} &
      You will probably have to restart your system or logout then log back in (I'm not quite sure)

    • @paulJkiely
      @paulJkiely 3 года назад

      @@DejiAdegbite thank you for the tip!

    • @DejiAdegbite
      @DejiAdegbite 3 года назад

      @@paulJkiely You're welcome.
      Did it work?

    • @paulJkiely
      @paulJkiely 3 года назад

      @@DejiAdegbite just saw your message, I’ll give it a try tomorrow and let you know the outcome. Thanks again!

    • @DejiAdegbite
      @DejiAdegbite 3 года назад

      @@paulJkiely ok, cool.

  • @lemler3337
    @lemler3337 4 года назад +4

    and i thought learning kde was hard lol

    • @DistroTube
      @DistroTube  4 года назад +5

      Well, to be fair.....nothing in this video was "hard." Maybe a bit tedious.

  • @Jczii
    @Jczii 4 года назад +1

    You inspired me to make my own rice of dmenu, created some custom "patches", like dimming of the background.
    You can check it out on my github if your interested ^^ ( github.com/Czaplicki/dmenu )

  • @ultrasoft5555
    @ultrasoft5555 2 года назад

    Why do you patch manually? Tedious and error prone. This is what git is designed for. Each patch tells exactly which git commit it is based on, why you can't just apply it on the appropriate commit? The workflow looks like this: git branch ; git reset --hard ; git am ; (or, depending on the patch format: git apply ; git commit -m "applied the patch";) git rebase master; git checkout master; git merge ; (best to merge them on a separate branch once all patches has been applied on their own branches).

    • @nihancj
      @nihancj 2 года назад

      He could've just 'rm config.h' and everything patch would work fine

  • @facu5563
    @facu5563 4 года назад

    nice wallpaper, mind sharing it? Cheers from argentina

  • @lesiu2840
    @lesiu2840 2 года назад

    2137

  • @NinuRenee
    @NinuRenee 4 года назад +3

    first

    • @DistroTube
      @DistroTube  4 года назад +4

      It certainly seems so.

  • @nictanghe98
    @nictanghe98 4 года назад +1

    dont use surf use firefox with costum css and vimium.

  • @eygs493
    @eygs493 9 месяцев назад

    haha, thank you