ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Easily Customize DWM With Flexipatch

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • Dwm-flexipatch has a different take on dwm patching. You edit a patches file that lists all available dwm patches. You enable the patches that you need and disable the patches that you don't need. Then "sudo make install" and you have patched dwm that doesn't require git merges or manually patching.
    REFERENCED:
    ► github.com/bak...
    WANT TO SUPPORT THE CHANNEL?
    💰 Patreon: / distrotube
    💳 Paypal: www.paypal.com...
    🛍️ Amazon: amzn.to/2RotFFi
    👕 Teespring: teespring.com/...
    SOCIAL PLATFORMS:
    🗨️ Mastodon: distrotoot.com...
    💬 IRC: irc://freenode #distrotube
    👫 Reddit: / distrotube
    📽️ LBRY/Odysee: odysee.com/$/i...
    DT ON THE WEB:
    🕸️ Website: distrotube.com/
    🐿️ Gemini Capsule: gemini://distro.tube
    📁 GitLab: gitlab.com/dwt1
    🔊 Audio Podcasts: www.buzzsprout...
    FREE AND OPEN SOURCE SOFTWARE THAT I USE:
    🌐 Brave Browser - brave.com/dis872
    📽️ Open Broadcaster Software: obsproject.com/
    🎬 Kdenlive: kdenlive.org
    🎨 GIMP: www.gimp.org/
    🎵 Audacity: www.audacityte...
    💻 VirtualBox: www.virtualbox...
    🗒️ Doom Emacs: github.com/hli...
    Your support is very much appreciated. Thanks, guys!

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

  • @stevie1da_
    @stevie1da_ 3 ปีที่แล้ว +70

    This works out perfectly because last night, I decided to give DWM a try lol

    • @DistroTube
      @DistroTube  3 ปีที่แล้ว +14

      Best of luck!

    • @gustavomariz7769
      @gustavomariz7769 3 ปีที่แล้ว +3

      Hope you like it i started using dwm 3 weeks ago and since then i’ve been loving it

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

      I am going to pull the same move you did and move to dwm. Hope it will work on my Fedora install.

  • @kronikpillow
    @kronikpillow 3 ปีที่แล้ว +23

    finally someone to do a video about this awesome project, been using flexipatch since it's early releases :)

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

      Same, use only this project.

  • @DanielBornt
    @DanielBornt 3 ปีที่แล้ว +14

    This is really cool. I totally appreciate someone going through the work to make DWM more user friendly when it comes to patching. This has inspired me to give it try!

  • @enderger5308
    @enderger5308 3 ปีที่แล้ว +19

    NixOS actually handles DWM quite well too, with patches declared like everything else in Nix.

    • @wp6007
      @wp6007 3 ปีที่แล้ว +2

      Do you have a link on how to do this?

    • @twb0109
      @twb0109 3 ปีที่แล้ว +1

      Arch has a way to configure dwm as well

    • @enderger5308
      @enderger5308 3 ปีที่แล้ว +3

      The St page on nixos . wiki gives a general overview of using Suckless utilities via Nix, and searching for DWM in the NixOS package search (the modules tab, since it’s a window manager) should show how this translates to DWM specifically. Sorry for not posting links, TH-cam likes to eat comments with those.

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

      this would be great on gentoo with the patches as use flags

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

      Dmenu only has patch support which is kinda odd

  • @andrewh3503
    @andrewh3503 3 ปีที่แล้ว +17

    this is a game changer. got tired of my dwm breaking when i patch things!

  • @vkb967
    @vkb967 3 ปีที่แล้ว +5

    Thanks to this particular video I started using DWM intensively in the last weeks. Funny enough, not because of the patching tip, which is the main topic of the video, but due to the possibility of "dual login" with xfce in 7:25. I needed a fallback plan in cases things didn't workout with DWM. By the way, I'm not using any patch: I changed a couple of things in config.h myself and am loving DWM.

  • @DeshierArchitecte
    @DeshierArchitecte 3 ปีที่แล้ว +36

    Flexipatch picks up where Suckless dropped the ball. When you code is so "minimalist" and refined that it obstructs people from using your software, that's a problem. Still, dwm is one of the best window managers out there.

    • @senselessnothing
      @senselessnothing 3 ปีที่แล้ว +3

      can't blame them given the level of the average linux user, just grab someone else's dwm setup if in doubt

    • @cowardly_wizard
      @cowardly_wizard 3 ปีที่แล้ว +7

      The point is that its dynamic tho... you build it how you want it. Granted comments would be nice

    • @luviana_
      @luviana_ 2 ปีที่แล้ว +1

      @@cowardly_wizard Something tells me Suckless's whole philosophy is totally screwed by comments. It's more data """wasted""", making dwm less """minimal""". Now, for the user who wants something as minimal as dwm and will put the work in, that's amazing, but I feel like a commented version would at least be nice as perhaps a separate option at the very LEAST.

    • @shallex5744
      @shallex5744 11 หลายเดือนก่อน +1

      plenty of other window managers exist if you don't want to put in any effort to make dwm function how you want it to, thank god not all software is catered towards normies

  • @sivuyilemagutywa5286
    @sivuyilemagutywa5286 3 ปีที่แล้ว +2

    Upgraded to GNOME 40 and I experianced a lot of issues, so I gave Tiling windows another try, this time I am staying, I don't see my self ever using DE. Tiling windows are practical and easy. Thanks to your videos, it was a painless switch.

  • @kronikpillow
    @kronikpillow 3 ปีที่แล้ว +4

    I personally fell in love with dwm, and especially the centered floating master layout in combination with the stacker patch, I actually never moved away from dwm or tried other window managers except for a bare peek in them, as I found that for my workflow the centered floating master layout is something I can't live without, because I'm a single monitor user, and for some strange reason, other clones of dwm like awesome and xmonad, did a centered master layout, but they didn't implement the centered floating master layout, probably because most people lack how essential it is to single monitor users, especially if you can toggle the windows with a single keybind like with the stacker patch ...
    I found this layout and the stacker patch, and how well it integrates with each other trough LukeSmith's build of DWM, but one major issue i have is i have 0 knowledge in C, and patching Luke's build or any build to include some basic core functionality like cfacts and awesomebar is a living nightmare, I discovered flexipatch, and I can't live without it, now I have my own build of DWM, built exactly how I want it, with the functionality that i wanted, and the developer bakkeby was even receptive to my ideas, stupid noob questions (no elitist attitude), and even patch requests to add additional patches to the project, I'v said a long time ago on his github that this project needs more 💘💘💘 so thank you DT for this as bakkeby really deserves it, with all the effort he placed in to making this project, making the patches compatible with each other, and even extending some of their core functionality which just felt like lacking (named scratchpad's on bakkeby's version can add any window to a scratchpad with keybindings, just like in other wm's, which the original patch can't)
    I'd give other window managers a try, but sorry xmonad and awesome, until you introduce a centered floating master layout, no way hose, people should really try it in the combination with the stacker patch to get a sense of what im talking about, and how it basically can replace all other layouts in scenarios where you work with 3 windows, on a single monitor

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

      thank you... i will need to try what you're talking about... as a single monitor (laptop) user...

  • @nobyra
    @nobyra 2 ปีที่แล้ว +1

    Now that's awesome. Learning how to patch DWM is still a good skill to have. This makes new configurations of it (for whatever reason) a lot smoother

  • @OctaviusPelagius
    @OctaviusPelagius 3 ปีที่แล้ว +3

    David and The Other David are my favourite producers.

  • @besnikrrustemi
    @besnikrrustemi 3 ปีที่แล้ว +5

    Hey DT, Spectrwm is hungry for some rice, give us some food & love (and ofc a video),

    • @Neucher
      @Neucher 3 ปีที่แล้ว +2

      Spectrwm is literally just another xmonad clone

  • @Bad-cat_qhuuuuh
    @Bad-cat_qhuuuuh 2 ปีที่แล้ว +1

    I've been like 2 days patching dwm thank God you did this video

  • @emreocak4505
    @emreocak4505 3 ปีที่แล้ว +7

    fyi. if you execute :set paste command in vim before paste anything. content is not gonna break like this.

  • @Laurie_H
    @Laurie_H 3 ปีที่แล้ว +10

    You should also credit yourself Derek because without this video the vast majority wouldn't have known about this project without your TH-cam coverage.

  • @abarocio80
    @abarocio80 3 ปีที่แล้ว +1

    This is actually very useful. I have patched (and also broken) my DWM for too many hours.

  • @ivanhelsing7378
    @ivanhelsing7378 3 ปีที่แล้ว +1

    Arch linux and DWM both have same philosophy. And it`s name is BIY. "Build It Yourself" (from zero) :)

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

    Thank you so much for showing this! I was going crazy with manual patches. Let's see if I can do it now.

  • @MENTOKz
    @MENTOKz 3 ปีที่แล้ว +2

    hey DT another great video keep of the great work man :D

  • @yallaoui
    @yallaoui 3 ปีที่แล้ว +2

    Hey DT, very nice video. This really makes suckledss dwn suck less.

  • @martinhertz4957
    @martinhertz4957 3 ปีที่แล้ว +1

    Off-topic, but you can save and quit in VIM with 'ZZ', but maybe this is emacs or something(evil mode) which maybe is different.

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

    you won't believe me, I was just about to start with the autostart patch and your vid came up, patched it, works super!

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

    Couldn't agree more with your end comment on xmonad-flexipatch!

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

    The patching is hella fun though. Using Git to manage your local directories and forking for different patches and merging only once the patch works.

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

    This looks like something I'll have to try out! Patching trouble is what kept me from trying dwm.

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

    I'm surprised by amount of comments here saying that patching gave them trouble. I have around 10 patches and few are quite extensive. Even when they fail patching, it usually is not even requiring any changes in exciting code, but just finding them appropriate place. I had more trouble with some regexes than my whole dwm setup

  • @mmy4328
    @mmy4328 3 ปีที่แล้ว +1

    The only problem I have with window managers is that it is very difficult make them work on 4k monitors

  • @Neucher
    @Neucher 3 ปีที่แล้ว +3

    Hey DT, Now that you heavily debloated your Xmonad config, wouldn't it be possible to remake it completely within dwm ?
    Xmonad is great and all, but for a tiling window manager it uses quiet a bit of RAM. Also you wouldn't need to have all the haskell dependencies installed.

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

      Xmonad is just quicker to add new stuff because it actually has an library
      Xmonad is still the best tiling window manager

    • @Neucher
      @Neucher 3 ปีที่แล้ว +1

      @@fabioramatis2373 it uses like 4x the ram of dwm

  • @BatreshVic
    @BatreshVic 3 ปีที่แล้ว +3

    Bakkeby is a god but i hope no noobies post redundant issues on the git repo.
    Also you can use flexipatch-finalizer to remove excessive lines of code when you're done patching.

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

    what is the best practice for cloning sources from git? I mean the location to do so, because doing that in the home directory like I see everyone doing clutters it up pretty quickly. What I've been doing is create ~/Applications folder and do that sort of stuff there. Because if I understand correctly the cloned directory will keep the source and the build version, but when you do make install the relevant files are moved to the correct /usr/ locations. Keeping the source is thus not required, but useful to update the package from time to time with a git pull then rebuilding and reinstalling.
    So if I want to keep all of those, what is a good location?
    I already use /opt for prepackaged apps like .appimages and such as I saw it suggested somewhere while researching the same topic.

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

    Patching is not hard. But the promblem is that some of the patches have not been updated in a while. I my case happened with Dmenu. I had to manually go and fix that which is quite problematic.

  • @thedanmethenyshow.6004
    @thedanmethenyshow.6004 3 ปีที่แล้ว

    I know this sounds weird with me but patching hasn't really been too difficult for me to do. Because I was able to understand right away how to do it. I love dwm just because of how slim it is out of the box and all the features it comes with with only 2000 lines of code and it has my initials what can I say. That would be fun to try to see what all the patches would be like or something like that. My only issue right now is getting the full screen feature and x-monad with a certain game because of the protocols of this game but I'm very close to solving that problem but dwm I'd say is one of my favorites.

    • @senselessnothing
      @senselessnothing 3 ปีที่แล้ว +1

      dwm is beautiful, no doubt about it. If every piece of software was as well engineered we would be in a very different place.

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

    You did it , finally

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

    How is this any different than compile time feature flags? Seems like they just rediscovered how to do that...

  • @Aiden-zi3xf
    @Aiden-zi3xf 3 ปีที่แล้ว

    Now i have to learn Haskell to look cool online

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

    another item to the todo list :D

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

    This is awesome

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

    That is exactly why I avoided DWM. But with idle resource usage like that, this would be a prime candidate for a lower end PC

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

    5:22 I thought you boutta do Ctrl+Alt+f2

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

    patching anything in gentoo is super easy, you just drop the patches in a folder, then install it.

  • @orpheustakenvanced
    @orpheustakenvanced 3 ปีที่แล้ว +2

    honest question: doesn't this go against the suckless philosophy?

    • @senselessnothing
      @senselessnothing 3 ปีที่แล้ว +1

      it does but that's fine, much like convenience wrappers for sophisticated commands, some people like them.

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

      No it doesn't, it includes a flexipatch finalizer which gets rid of all the other patches you didn't enable such that it would resemble a dwm config configured manually using those patches.

  • @quietgazer
    @quietgazer 5 หลายเดือนก่อน

    how did you do this trick in vim on 7:04?

    • @tristen_grant
      @tristen_grant 5 หลายเดือนก่อน

      What trick? The timestamp you posted is when he is hitting Return to add a new line...

  • @N0zer0
    @N0zer0 2 ปีที่แล้ว

    st-flexipatch also exists

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

    OK now it just needs a propper tui.

  • @FreeRoger
    @FreeRoger 3 ปีที่แล้ว +2

    hi dt

  • @0x7f2c
    @0x7f2c 3 ปีที่แล้ว

    the only reason many don't run flexipatch is due to bloat, or rather a lot of code because I love for my dwm to be clean, i want to easily find and fix my config.h/dwm.c and easily move it up somewhere, when I used flexipatch for more than 10 seconds I screamed cause I simply cannot work my config.h cause its a giant mess

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

      use the finalizer

    • @0x7f2c
      @0x7f2c 3 ปีที่แล้ว

      @@patriarch6644 in my preference on linux, I like to have issues with patches since I got more time to kill!, rather than to have it easy to set up.

  • @TanyaParker-h5v
    @TanyaParker-h5v 11 วันที่ผ่านมา

    Martinez Kevin Perez David Davis Gary

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

    👍🏻 Shift ZZ = Shift :wq 👎🏻

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

    Exactly what I always said suckless tools should do. Conditional compiling. Line limit philosophy makes no sense. If they wanted to they could obscure the code into a single line of code. 2000 lines of code is so arbitrary.

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

      Not entirely. A good line length limit is 72-80 characters. When talking linecounts, you usally don't have extremely long lines.

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

      @@SoundToxin sure if you're a lame python coder and follow pep8. Many great coders agree. 80 character limit isn't just silly it is beyond stupid. The reason for the limit was old 70s terminals and hardware limits that we have surpassed ages ago. Anyway I prefer coding in assembly language. My lines are usually very short since instructions are short.

    • @davidgomez79
      @davidgomez79 3 ปีที่แล้ว +1

      @@SoundToxin however when I code in C, C++ i do have plenty of lines that reach 90 characters easily. when I do code in python I make damn sure I pass the 80 in limit to trigger the code naziiiiiis. I like python as a language but its community is just as ridiculous as our current cultural marxists.

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

      @@davidgomez79 It's for readability. You don't have to move your eyes as much this way. I don't program, but my email client (aerc) keeps lines around that length automatically and I quite like it. I believe this is common for other plaintext mail clients as well. Short lines are also good for if you're viewing multiple files side-by-side in an editor or if you have a tmux session with a lot of panes.

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

      @@SoundToxin Even Raymond Hettinger agrees in his talk about "Beyond Pep8". I'm not sure who it was but I think even Linus Torvalds called it silly. Sure for emails it makes sense. I guess since you're not a coder you wouldn't understand. Seems to me like old school coders prefer longer lines and they where the ones dealing with the limitations. New school coders limit themselves for idiotic reasons much liker today's nonsensical reasoning.

  • @thengakola6217
    @thengakola6217 3 ปีที่แล้ว +1

    dumb laugh