Repository navigation
vendor: import DFM upstream as sibling of brcs - #66
Merged
Merged
Conversation
Mirrors the brcs vendor pattern: a snapshot of the upstream DFM repo under scripts/vendor/dfm, with sync-upstream.sh and the vendor README updated to list it. DFM has no single-file Stoa fork (it's a Python package, not a single script), so its fork column is empty.
6 tasks done
VictorGSchneider
added a commit
that referenced
this pull request
Apr 21, 2026
) ## Summary Brings DFM to full parity with the BRCS vendor pattern: a pristine upstream snapshot **plus** a Stoa fork where customizations can land. **Commit 1 — `vendor(dfm): populate upstream snapshot to match brcs pattern`** - Fills `scripts/vendor/dfm/` with the full upstream DFM source (63 files: `LICENSE`, `README.md`, `dfm/main.py`, `dfm/core/**`, `dfm/ui/**`, etc.). The previous import (#66) only laid down the directory skeleton and empty `__init__.py` stubs. - Vendor `.gitignore` intentionally diverges from upstream: keeps Python build artifacts out but does **not** re-apply upstream's `README.md`/`LICENSE` ignores, since the vendor needs those files present as part of the reference snapshot. **Commit 2 — `feat(dfm): add scripts/stoa-dfm/ as Stoa fork of vendored DFM`** - Adds `scripts/stoa-dfm/` as the customizable fork — analogous to how `scripts/stoa-maintain.sh` is the Stoa fork of `BRCS.sh`. Initial state is byte-for-byte identical to upstream. - Fork mirrors `dfm/` + `setup.py` + `requirements.txt` so it's directly installable (`pip install ./scripts/stoa-dfm`). `LICENSE`, `README.md`, and `screenshots/` are **not** duplicated — Stoa ships its own. - `sync-upstream.sh`: `dfm`'s fork column now points to `scripts/stoa-dfm`, and the diff-summary block grew a directory-fork branch that walks each fork entry and diffs it against the matching vendor path. The existing single-file logic (`brcs → stoa-maintain.sh`) is untouched. - `scripts/vendor/README.md`: overview table updated; "reference only" paragraph replaced with the new fork relationship section. ## Notes - CI already skips `scripts/vendor/**` (see `.github/workflows/ci.yml` lines 28-42). `scripts/stoa-dfm/` is **not** excluded, but since the initial contents are pristine upstream Python it passes `py_compile` locally. Stoa-specific edits will be linted going forward. - `sync-upstream.sh` lives under `scripts/vendor/` and is therefore also skipped by CI lint; I ran `bash -n` locally. ## Test plan - [x] `diff -rq DFM/ scripts/vendor/dfm/` → only the expected `.gitignore` deviation and the missing `.git/` - [x] `diff -rq scripts/vendor/dfm/dfm scripts/stoa-dfm/dfm` → identical - [x] `python3 -m py_compile $(find scripts/stoa-dfm -name '*.py')` → passes - [x] `bash -n scripts/vendor/sync-upstream.sh` → clean - [x] Directory-diff branch of `sync-upstream.sh` exercised locally against `scripts/vendor/dfm` vs `scripts/stoa-dfm` → reports "fork is identical to upstream" as expected - [x] Reviewer: spot-check a couple of `scripts/vendor/dfm/dfm/**` files match upstream `main` byte-for-byte https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43
6 tasks
VictorGSchneider
added a commit
that referenced
this pull request
Apr 21, 2026
## Summary The vendor/fork scaffolding for DFM landed in #66/#67 but nothing actually consumed it: `install.sh` skipped DFM entirely, and `setup/post-install.sh` still `git clone`d `VictorGSchneider/DFM` into `~/.local/share/dfm-app` on every run, ignoring `scripts/stoa-dfm/`. This PR makes the installers finally use the in-tree fork. ## What changed - **`install.sh`** — installs DFM editable from `scripts/stoa-dfm/` via `pipx` (preferred, PEP 668 friendly) with a user-local venv fallback. "Editable" preserves the symlink-style semantics the rest of the repo relies on: `git pull` on StoaLinux propagates DFM changes to the running binary without re-running the installer, matching the behaviour called out in the README. - **`setup/post-install.sh`** — drops the `git clone https://github.com/VictorGSchneider/DFM.git` block. `install.sh` is already invoked from post-install, so DFM gets installed once, from the fork, via the same path as every other `stoa-*` script. Runtime deps in `$DFM_PKGS` (python / python-gobject / gtk4 / libadwaita) are unchanged. - **`scripts/stoa-doctor.sh`** — adds a `_check_bin dfm` entry so a missing binary shows up in the login doctor report instead of only surfacing when the user hits `Super+G`. - **`scripts/stoa-dfm/data/dfm.desktop`** — XDG entry for the fork, so rofi drun / app grids discover DFM. `install.sh` symlinks it into `~/.local/share/applications/`. - **`scripts/vendor/dfm/data/dfm.desktop`** — mirrors the fork so the vendored upstream snapshot stays aligned with the matching commit on `VictorGSchneider/DFM@claude/integrate-dfm-stoalinux-U50VJ` (the same `data/dfm.desktop` file is added there). Next `sync-upstream.sh dfm` after upstream merges will be a no-op for this path. ## Test plan - [ ] `bash -n install.sh setup/post-install.sh scripts/stoa-doctor.sh` (done locally, passes) - [ ] On a fresh Arch box with `pipx`: `./install.sh` — verify `dfm` resolves to `~/.local/bin/dfm`, launches GTK4 window, and the `.desktop` entry shows up in rofi drun. - [ ] On a box without `pipx` (venv fallback): `./install.sh` — verify `~/.local/share/dfm-venv/bin/dfm` is created and `~/.local/bin/dfm` is the symlink target. - [ ] Re-run `./install.sh` — should be idempotent (pipx `--force` upgrades, venv re-creates without error). - [ ] `stoa-doctor` with `dfm` uninstalled — verify the `[FAIL]` entry appears in `~/.config/stoa/doctor.log` and the dunst notification fires. - [ ] `Super+G` from Hyprland and i3 sessions. ## Paired change `VictorGSchneider/DFM` on the same branch name adds the matching upstream `data/dfm.desktop` so the fork/vendor pair tracks upstream without drift. https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
VictorGSchneider
added a commit
that referenced
this pull request
May 9, 2026
Mirrors the brcs vendor pattern: a snapshot of the upstream DFM repo under scripts/vendor/dfm, with sync-upstream.sh and the vendor README updated to list it. DFM has no single-file Stoa fork (it's a Python package, not a single script), so its fork column is empty.
VictorGSchneider
pushed a commit
that referenced
this pull request
May 9, 2026
The previous import (#66) only laid down the directory skeleton and empty __init__.py stubs. Mirror the full upstream DFM repo under scripts/vendor/dfm so the vendor is a pristine snapshot of VictorGSchneider/DFM@main — matching how scripts/vendor/brcs carries a verbatim copy of VictorGSchneider/BRCS.sh. Adds LICENSE, README.md, dfm/main.py, and the full dfm/core and dfm/ui subpackages. The vendor .gitignore keeps Python build artifacts out but intentionally does NOT re-apply upstream's README.md/LICENSE ignores — the vendor needs those files present for reference. CI already skips scripts/vendor/** so this has no effect on lint/tests; sync-upstream.sh and scripts/vendor/README.md were wired up in #66 and don't need further changes. https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43
VictorGSchneider
added a commit
that referenced
this pull request
May 9, 2026
) ## Summary Brings DFM to full parity with the BRCS vendor pattern: a pristine upstream snapshot **plus** a Stoa fork where customizations can land. **Commit 1 — `vendor(dfm): populate upstream snapshot to match brcs pattern`** - Fills `scripts/vendor/dfm/` with the full upstream DFM source (63 files: `LICENSE`, `README.md`, `dfm/main.py`, `dfm/core/**`, `dfm/ui/**`, etc.). The previous import (#66) only laid down the directory skeleton and empty `__init__.py` stubs. - Vendor `.gitignore` intentionally diverges from upstream: keeps Python build artifacts out but does **not** re-apply upstream's `README.md`/`LICENSE` ignores, since the vendor needs those files present as part of the reference snapshot. **Commit 2 — `feat(dfm): add scripts/stoa-dfm/ as Stoa fork of vendored DFM`** - Adds `scripts/stoa-dfm/` as the customizable fork — analogous to how `scripts/stoa-maintain.sh` is the Stoa fork of `BRCS.sh`. Initial state is byte-for-byte identical to upstream. - Fork mirrors `dfm/` + `setup.py` + `requirements.txt` so it's directly installable (`pip install ./scripts/stoa-dfm`). `LICENSE`, `README.md`, and `screenshots/` are **not** duplicated — Stoa ships its own. - `sync-upstream.sh`: `dfm`'s fork column now points to `scripts/stoa-dfm`, and the diff-summary block grew a directory-fork branch that walks each fork entry and diffs it against the matching vendor path. The existing single-file logic (`brcs → stoa-maintain.sh`) is untouched. - `scripts/vendor/README.md`: overview table updated; "reference only" paragraph replaced with the new fork relationship section. ## Notes - CI already skips `scripts/vendor/**` (see `.github/workflows/ci.yml` lines 28-42). `scripts/stoa-dfm/` is **not** excluded, but since the initial contents are pristine upstream Python it passes `py_compile` locally. Stoa-specific edits will be linted going forward. - `sync-upstream.sh` lives under `scripts/vendor/` and is therefore also skipped by CI lint; I ran `bash -n` locally. ## Test plan - [x] `diff -rq DFM/ scripts/vendor/dfm/` → only the expected `.gitignore` deviation and the missing `.git/` - [x] `diff -rq scripts/vendor/dfm/dfm scripts/stoa-dfm/dfm` → identical - [x] `python3 -m py_compile $(find scripts/stoa-dfm -name '*.py')` → passes - [x] `bash -n scripts/vendor/sync-upstream.sh` → clean - [x] Directory-diff branch of `sync-upstream.sh` exercised locally against `scripts/vendor/dfm` vs `scripts/stoa-dfm` → reports "fork is identical to upstream" as expected - [x] Reviewer: spot-check a couple of `scripts/vendor/dfm/dfm/**` files match upstream `main` byte-for-byte https://claude.ai/code/session_01WUjDRqmn1csYKReripLB43
VictorGSchneider
pushed a commit
that referenced
this pull request
May 9, 2026
The vendor/fork pattern for DFM was scaffolded in #66/#67 but nothing actually consumed it — install.sh skipped DFM entirely, and post-install.sh still git-cloned the upstream repo into ~/.local/share/dfm-app on every run, ignoring scripts/stoa-dfm/. This makes install.sh (the dotfiles-only entry point) install DFM editable from scripts/stoa-dfm/ via pipx (PEP 668 friendly), falling back to a user-local venv. "Editable" keeps the symlink-style semantics the rest of the repo relies on: `git pull` propagates DFM changes to the running binary without re-running the installer. The duplicate clone block in post-install.sh is dropped — it now delegates to install.sh like every other Stoa script does. The python/gtk4/libadwaita runtime deps it lists stay put. stoa-doctor.sh now flags a missing `dfm` binary so broken installs surface on login instead of only when Super+G is pressed. A data/dfm.desktop entry is added so rofi drun and app grids pick DFM up; install.sh symlinks it into ~/.local/share/applications/. The file lives in scripts/stoa-dfm/data/ (the fork) and is mirrored into scripts/vendor/dfm/data/ to keep the upstream snapshot aligned with the matching DFM commit on this branch. https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
VictorGSchneider
added a commit
that referenced
this pull request
May 9, 2026
## Summary The vendor/fork scaffolding for DFM landed in #66/#67 but nothing actually consumed it: `install.sh` skipped DFM entirely, and `setup/post-install.sh` still `git clone`d `VictorGSchneider/DFM` into `~/.local/share/dfm-app` on every run, ignoring `scripts/stoa-dfm/`. This PR makes the installers finally use the in-tree fork. ## What changed - **`install.sh`** — installs DFM editable from `scripts/stoa-dfm/` via `pipx` (preferred, PEP 668 friendly) with a user-local venv fallback. "Editable" preserves the symlink-style semantics the rest of the repo relies on: `git pull` on StoaLinux propagates DFM changes to the running binary without re-running the installer, matching the behaviour called out in the README. - **`setup/post-install.sh`** — drops the `git clone https://github.com/VictorGSchneider/DFM.git` block. `install.sh` is already invoked from post-install, so DFM gets installed once, from the fork, via the same path as every other `stoa-*` script. Runtime deps in `$DFM_PKGS` (python / python-gobject / gtk4 / libadwaita) are unchanged. - **`scripts/stoa-doctor.sh`** — adds a `_check_bin dfm` entry so a missing binary shows up in the login doctor report instead of only surfacing when the user hits `Super+G`. - **`scripts/stoa-dfm/data/dfm.desktop`** — XDG entry for the fork, so rofi drun / app grids discover DFM. `install.sh` symlinks it into `~/.local/share/applications/`. - **`scripts/vendor/dfm/data/dfm.desktop`** — mirrors the fork so the vendored upstream snapshot stays aligned with the matching commit on `VictorGSchneider/DFM@claude/integrate-dfm-stoalinux-U50VJ` (the same `data/dfm.desktop` file is added there). Next `sync-upstream.sh dfm` after upstream merges will be a no-op for this path. ## Test plan - [ ] `bash -n install.sh setup/post-install.sh scripts/stoa-doctor.sh` (done locally, passes) - [ ] On a fresh Arch box with `pipx`: `./install.sh` — verify `dfm` resolves to `~/.local/bin/dfm`, launches GTK4 window, and the `.desktop` entry shows up in rofi drun. - [ ] On a box without `pipx` (venv fallback): `./install.sh` — verify `~/.local/share/dfm-venv/bin/dfm` is created and `~/.local/bin/dfm` is the symlink target. - [ ] Re-run `./install.sh` — should be idempotent (pipx `--force` upgrades, venv re-creates without error). - [ ] `stoa-doctor` with `dfm` uninstalled — verify the `[FAIL]` entry appears in `~/.config/stoa/doctor.log` and the dunst notification fires. - [ ] `Super+G` from Hyprland and i3 sessions. ## Paired change `VictorGSchneider/DFM` on the same branch name adds the matching upstream `data/dfm.desktop` so the fork/vendor pair tracks upstream without drift. https://claude.ai/code/session_01C9MCwSGnmdcwA55X394WfA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirrors the brcs vendor pattern: a snapshot of the upstream DFM repo under scripts/vendor/dfm, with sync-upstream.sh and the vendor README updated to list it. DFM has no single-file Stoa fork (it's a Python package, not a single script), so its fork column is empty.