Let's Rice Our Dmenu With Patching

  Рет қаралды 76,129

DistroTube

DistroTube

Күн бұрын

Пікірлер: 131
@opfax163
@opfax163 Жыл бұрын
3 years later but this vid helped me a lot , thank you
@KevinBReynolds
@KevinBReynolds 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.
@bobgrimes8618
@bobgrimes8618 4 жыл бұрын
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!
@manufebie8535
@manufebie8535 4 жыл бұрын
Perfect timing. Was looking into how I could rice dmenu.
@TheNexusOfEvil
@TheNexusOfEvil 4 жыл бұрын
And i was about to look into ricing dmenu. This came at the perfect time, thank you
@raym5736
@raym5736 4 жыл бұрын
Wow we think alike. Few days ago I riced my desktop, and built it around that same wallpaper that recently popped up on unixporn.
@Socio_Linux
@Socio_Linux 4 жыл бұрын
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.
@waltereikrem
@waltereikrem 4 жыл бұрын
This was a super cool video dt! i would lovee to see more like this!
@Viken43
@Viken43 4 жыл бұрын
I have learned so much watching this, thanks for sharing
@markring40
@markring40 4 жыл бұрын
Thanks for all of the great work you do!! I appreciate your efforts.
@mrchristoph5674
@mrchristoph5674 2 жыл бұрын
The air quotes were so intentional it reminded me of Dr. Evil haha!
@AtomToast
@AtomToast 4 жыл бұрын
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 жыл бұрын
Yea, that would have solved most of my issues, except that one patch that failed doing the "patch" command.
@AtomToast
@AtomToast 4 жыл бұрын
Yep, that one was indeed an issue of patches conflicting
@ripon3696
@ripon3696 4 жыл бұрын
Cool stuff. The only patch i did with dmenu is changing the arrow key into Ctrl+Vim(key)
@AndrewErwin73
@AndrewErwin73 4 жыл бұрын
I definitely prefer Rofi as a launcher, but I like dmenu for other things, like making Polybar modules more useful.
@fuseteam
@fuseteam 4 жыл бұрын
meanwhile i use dmenu like a interface for my terminal :3
@clocked0
@clocked0 3 жыл бұрын
@@fuseteam Hey I remember you from Brodie's video! Small world :)
@fuseteam
@fuseteam 3 жыл бұрын
@@clocked0 it's a small world after all~🎵
@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 :)
@gabriellopes3024
@gabriellopes3024 4 жыл бұрын
That is an excellent video Derek. Making one video about taskwarrior
@SadeeshSenevirathne
@SadeeshSenevirathne 4 жыл бұрын
" Make Dmenu Great Again" *2016 election flashbacks intensifies*
@henninb
@henninb 4 жыл бұрын
Love the title of the video.
@albynoson
@albynoson 4 жыл бұрын
I literally clicked the video just for the definition of ricing at the beginning.
@k033as9
@k033as9 4 жыл бұрын
I switched to Linux. I was tired of windows.
@andersonevitt8523
@andersonevitt8523 4 жыл бұрын
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?
@userlig
@userlig 4 жыл бұрын
I wish in the future to do something similar with polybar ...
@TrueWordsOfEternity
@TrueWordsOfEternity 4 жыл бұрын
thanks for this im gonna try and take this but add the json patch to it and see how that goes :)
@maverickmadison7392
@maverickmadison7392 4 жыл бұрын
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
@co9681
@co9681 3 жыл бұрын
How do I make it 20 lines by default?
@motif5775
@motif5775 3 жыл бұрын
DT, you're awesome! Thank you!
@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.
@MichaelJHathaway
@MichaelJHathaway 4 жыл бұрын
Great video, Thank you!
@matteobarnaba6518
@matteobarnaba6518 2 жыл бұрын
The problem was not patch. You need to rename config.h.def to config.h before recompiling
@eygs493
@eygs493 11 ай бұрын
LMAO
@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.
@kennyj4366
@kennyj4366 4 жыл бұрын
Thank you sir for the information 👍🙂👍
@davidr2421
@davidr2421 4 жыл бұрын
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 жыл бұрын
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.
@mindaugas9958
@mindaugas9958 4 жыл бұрын
Hi, how do you get different colours in ls output? Such as the permissions and such?
@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?
@copper4eva
@copper4eva 4 жыл бұрын
your surf build looks pretty good. Is the build in your gitlab up to date?
@DistroTube
@DistroTube 4 жыл бұрын
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 жыл бұрын
Yes, it's exactly what you saw on this video...including the custom CSS styling for suckless.org.
@ultrahalf
@ultrahalf 4 жыл бұрын
I wanna see dt libre booting a Thinkpad
@BrucesWorldofStuff
@BrucesWorldofStuff 4 жыл бұрын
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
@VulcanOnWheels
@VulcanOnWheels 4 жыл бұрын
10:05 I do see a warning. He's over there? :-)
@jonathanpichel4606
@jonathanpichel4606 4 жыл бұрын
What font is he using?
@DistroTube
@DistroTube 4 жыл бұрын
Mononoki Nerd Font
@KyoyaThaBOI
@KyoyaThaBOI 3 жыл бұрын
Anyone have a link for the wallpaper
@sheikhshakilakhtar6844
@sheikhshakilakhtar6844 4 жыл бұрын
Is there any patch to only display those application with .desktop files like in rofi's drun mode?
@protmalig
@protmalig 2 жыл бұрын
How make super + p run dmerun -c -l 20?
@ronnic1
@ronnic1 2 жыл бұрын
Anyone else having the issue of not getting the bottom part of the border?
@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?
@DistroTube
@DistroTube 4 жыл бұрын
No issues.
@dominikheinz2297
@dominikheinz2297 4 жыл бұрын
Beard is lookin good ! :D
@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.
@odajemal5508
@odajemal5508 4 жыл бұрын
DT can you tell me your dmenu shortcut key!! I'm using your dmenu with your dwm windows manager :)
@DistroTube
@DistroTube 4 жыл бұрын
SUPER+SHIFT+RETURN
@khalildureidy
@khalildureidy 4 жыл бұрын
Just like Trumb made America Great Again :D
@davidgomez79
@davidgomez79 4 жыл бұрын
cool stuff 👍
@Ahmed-Youcef1959
@Ahmed-Youcef1959 4 жыл бұрын
Where i can get that amazing wallpaper please .
@DistroTube
@DistroTube 4 жыл бұрын
Check the description.
@OktayAcikalin
@OktayAcikalin 2 жыл бұрын
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 🙂👌
@DDBAA24
@DDBAA24 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
@digitalcrow5054
@digitalcrow5054 4 жыл бұрын
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.
@paulJkiely
@paulJkiely 3 жыл бұрын
Great vid! When I begin to type in Dmenu, it closes.
@DejiAdegbite
@DejiAdegbite 3 жыл бұрын
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.
@fuseteam
@fuseteam 4 жыл бұрын
i like your transparency! i wish i knew why the transparency patch for dwm doesn't work :/
@killermonkey1392
@killermonkey1392 4 жыл бұрын
Do you have a compositor such as compton/picom running?
@fuseteam
@fuseteam 4 жыл бұрын
@@killermonkey1392 i do now lol, i completely forgot i post that here
@fish830911
@fish830911 4 жыл бұрын
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: kzbin.info/www/bejne/e6q6Z6OIobypbLM
@fish830911
@fish830911 4 жыл бұрын
@@DistroTube Thx!
@marioschroers7318
@marioschroers7318 4 жыл бұрын
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.
@jhonrocha6632
@jhonrocha6632 4 жыл бұрын
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 жыл бұрын
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
@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.
@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: "
@davidr2421
@davidr2421 4 жыл бұрын
Suckless really publishes patches but doesn't keep the diff-base synced with the latest release? That's not gonna scale.
@DistroTube
@DistroTube 4 жыл бұрын
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.
@lemler3337
@lemler3337 4 жыл бұрын
and i thought learning kde was hard lol
@DistroTube
@DistroTube 4 жыл бұрын
Well, to be fair.....nothing in this video was "hard." Maybe a bit tedious.
@peterarbeitsloser7819
@peterarbeitsloser7819 4 жыл бұрын
I have an alias for recompiling: alias i="sudo make clean install; make clean"
@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
@micycle8778
@micycle8778 4 жыл бұрын
tfw you dont pick up the fuzzy patch
@Jczii
@Jczii 4 жыл бұрын
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 )
@facu5563
@facu5563 4 жыл бұрын
nice wallpaper, mind sharing it? Cheers from argentina
@ultrasoft5555
@ultrasoft5555 3 жыл бұрын
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
@lesiu2840
@lesiu2840 2 жыл бұрын
2137
@NinuRenee
@NinuRenee 4 жыл бұрын
first
@DistroTube
@DistroTube 4 жыл бұрын
It certainly seems so.
@nictanghe98
@nictanghe98 4 жыл бұрын
dont use surf use firefox with costum css and vimium.
@eygs493
@eygs493 11 ай бұрын
haha, thank you
All That Software On My PC. What Do I Actually Use?
24:24
DistroTube
Рет қаралды 98 М.
Solve Problems With Shell Scripting And Dmenu
18:26
DistroTube
Рет қаралды 33 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
What Are Linux Users Putting In Their Config Files?
31:47
DistroTube
Рет қаралды 93 М.
The Simple Terminal: st from Suckless, and how I extend it
13:25
Configuring Dwm's Panel Is Easy With Dwmblocks
17:53
DistroTube
Рет қаралды 46 М.
The SQLite Rewrite In Rust
22:15
ThePrimeTime
Рет қаралды 150 М.
Getting Started With Awesome Window Manager
33:18
DistroTube
Рет қаралды 572 М.
How Old Can a File Be?
12:11
Dev Detour
Рет қаралды 37 М.
Want a PERFECT Linux Setup? Watch This Now
26:55
typecraft
Рет қаралды 202 М.
You NEED to Contribute to Open Source
11:21
Chris Titus Tech
Рет қаралды 31 М.
Day One On Hyprland
14:31
DistroTube
Рет қаралды 36 М.
A Few Vim Plugins That Have Impressed Me Recently
13:31
DistroTube
Рет қаралды 123 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.