diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | Sources/bar/bar.docc/patches.md | 6 | ||||
| -rw-r--r-- | patches/patch-screen_hotplug-20260810-f6805c9.patch (renamed from patches/bar-screen_hotplug-20260810-f6805c9.patch) | 0 |
3 files changed, 5 insertions, 5 deletions
@@ -174,12 +174,12 @@ Browse the available patches in the [patches directory](patches/). | Patch | Description | |---|---| | [font-offset](patches/bar-font_offset-20260810-11d813c.patch) | Adjust vertical text centering | -| [screen-hotplug](patches/bar-screen_hotplug-20260810-f6805c9.patch) | Auto-rebuild windows when displays are added/removed | +| [screen-hotplug](patches/patch-screen_hotplug-20260810-f6805c9.patch) | Auto-rebuild windows when displays are added/removed | To apply a patch: ```shell -curl -sL https://raw.githubusercontent.com/paninihouse/bar/refs/heads/master/patches/bar-screen_hotplug-20260810-f6805c9.patch | patch -p1 +curl -sL https://raw.githubusercontent.com/paninihouse/bar/refs/heads/master/patches/patch-screen_hotplug-20260810-f6805c9.patch | patch -p1 make install ``` diff --git a/Sources/bar/bar.docc/patches.md b/Sources/bar/bar.docc/patches.md index e2646f3..de0514a 100644 --- a/Sources/bar/bar.docc/patches.md +++ b/Sources/bar/bar.docc/patches.md @@ -18,7 +18,7 @@ The file contains a diff of the changes needed to add a specific feature. For example, to apply a patch from the *bar* collection: ```shell -curl -sL https://raw.githubusercontent.com/paninihouse/bar/refs/heads/master/patches/bar-font_offset-20260810-11d813c.patch | patch -p1 +curl -sL https://raw.githubusercontent.com/paninihouse/bar/refs/heads/master/patches/patch-font_offset-20260810-11d813c.patch | patch -p1 ``` After applying the patch, rebuild the program: @@ -63,13 +63,13 @@ This modular approach lets the community mix and match features without duplicat When publishing a patch, use a descriptive file name that follows the convention: ``` -bar-<feature_name>-<date>-<commit>.patch +patch-<feature_name>-<date>-<commit>.patch ``` For example: ``` -bar-font_offset-20260810-11d813c.patch +patch-font_offset-20260810-11d813c.patch ``` The date pinpoints which version of the code the patch was made against, and the commit hash makes it easy to look up the exact state of the repository at that point. diff --git a/patches/bar-screen_hotplug-20260810-f6805c9.patch b/patches/patch-screen_hotplug-20260810-f6805c9.patch index 1533b15..1533b15 100644 --- a/patches/bar-screen_hotplug-20260810-f6805c9.patch +++ b/patches/patch-screen_hotplug-20260810-f6805c9.patch |
