From 4528ba722c91807f8ba9c89f4ba6ecac64dbb21c Mon Sep 17 00:00:00 2001 From: cowmonk Date: Tue, 6 May 2025 19:50:31 -0700 Subject: [PATCH] DWM LESS IS MORE (edit) --- atom.xml | 9 +++++---- blog4.html | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/atom.xml b/atom.xml index 99af273..5b37cf2 100644 --- a/atom.xml +++ b/atom.xml @@ -135,10 +135,11 @@ package manager. Once you’ve done that here are the general steps:

  • Find a Patch: Head over to the dwm patches page. Find a patch you like. Let’s say you want the autostart patch, which allows you to run commands automatically when dwm starts (I highly reccomend this especially if you’re running from a display manager!).

  • Download the Patch: Download the .diff file for the patch. Save it somewhere, perhaps in a patches subdirectory within your dwm source folder.

  • -
  • Apply the Patch: In your dwm source directory, use the patch command: -bash - patch -Np1 -i patchfile.diff -

  • +
  • Apply the Patch: In your dwm source directory, use the patch command:

  • + +
            patch -Np1 -i patchfile.diff
    +
    +
    1. Resolve Conflicts (If Any): Sometimes, patches might conflict, especially if they modify the same lines of code or if you’re applying a patch meant for an older version of dwm. This will result in .rej (rejected) files. You’ll need to manually edit the source files to resolve these conflicts, looking at the .rej files to see what couldn’t be applied. This is the trickiest part, but it gets easier with practice. Start with simple, popular patches.

    2. diff --git a/blog4.html b/blog4.html index 64b3eea..a26c074 100644 --- a/blog4.html +++ b/blog4.html @@ -157,10 +157,11 @@ package manager. Once you’ve done that here are the general steps:

    3. Find a Patch: Head over to the dwm patches page. Find a patch you like. Let’s say you want the autostart patch, which allows you to run commands automatically when dwm starts (I highly reccomend this especially if you’re running from a display manager!).

    4. Download the Patch: Download the .diff file for the patch. Save it somewhere, perhaps in a patches subdirectory within your dwm source folder.

    5. -
    6. Apply the Patch: In your dwm source directory, use the patch command: -bash - patch -Np1 -i patchfile.diff -

    7. +
    8. Apply the Patch: In your dwm source directory, use the patch command:

    9. +
    +
            patch -Np1 -i patchfile.diff
    +
    +
    1. Resolve Conflicts (If Any): Sometimes, patches might conflict, especially if they modify the same lines of code or if you’re applying a patch meant for an older version of dwm. This will result in .rej (rejected) files. You’ll need to manually edit the source files to resolve these conflicts, looking at the .rej files to see what couldn’t be applied. This is the trickiest part, but it gets easier with practice. Start with simple, popular patches.