Skip to content

Commit 371e2b8

Browse files
vendor: import DFM upstream as sibling of brcs (#66)
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.
2 parents 5f69951 + ad23455 commit 371e2b8

9 files changed

Lines changed: 71 additions & 5 deletions

File tree

‎scripts/vendor/README.md‎

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ diverged.
1212
| Prefix | Upstream | Branch | Stoa fork |
1313
|----------------------------|--------------------------------------------------|--------|------------------|
1414
| `scripts/vendor/brcs` | https://github.com/VictorGSchneider/BRCS.sh | `main` | `scripts/stoa-maintain.sh` |
15+
| `scripts/vendor/dfm` | https://github.com/VictorGSchneider/DFM | `main` | — (reference only) |
1516

1617
## Initial import (one-time, per subtree)
1718

@@ -24,6 +25,11 @@ git subtree add \
2425
--prefix=scripts/vendor/brcs \
2526
https://github.com/VictorGSchneider/BRCS.sh.git \
2627
main --squash
28+
29+
git subtree add \
30+
--prefix=scripts/vendor/dfm \
31+
https://github.com/VictorGSchneider/DFM.git \
32+
main --squash
2733
```
2834

2935
`--squash` collapses the upstream's history into a single commit on our
@@ -37,18 +43,26 @@ to do about conflicts:
3743

3844
```bash
3945
./scripts/vendor/sync-upstream.sh brcs
46+
./scripts/vendor/sync-upstream.sh dfm
4047
```
4148

42-
Equivalent raw command:
49+
Equivalent raw commands:
4350

4451
```bash
4552
git subtree pull \
4653
--prefix=scripts/vendor/brcs \
4754
https://github.com/VictorGSchneider/BRCS.sh.git \
4855
main --squash
56+
57+
git subtree pull \
58+
--prefix=scripts/vendor/dfm \
59+
https://github.com/VictorGSchneider/DFM.git \
60+
main --squash
4961
```
5062

51-
## Relationship to `scripts/stoa-maintain.sh`
63+
## Relationship to Stoa sources
64+
65+
### `scripts/vendor/brcs` ↔ `scripts/stoa-maintain.sh`
5266

5367
`stoa-maintain.sh` is our customized fork of `BRCS.sh` — it carries the
5468
Stoa color palette, different CLI banners, and integrates with the rest of
@@ -64,3 +78,17 @@ When you run `sync-upstream.sh brcs`, the vendored copy is updated; the
6478
fork is **not** touched automatically. The helper will print a diff
6579
summary and tell you whether there are hunks you probably want to
6680
forward-port.
81+
82+
### `scripts/vendor/dfm` ↔ (reference only)
83+
84+
DFM is a Python/GTK4 application rather than a single-file shell script,
85+
so there is no one-to-one “Stoa fork” counterpart inside this repo — the
86+
vendor is a reference snapshot of the upstream Python package. Use it to:
87+
88+
1. Diff against when checking what changed upstream:
89+
`diff -u -r scripts/vendor/dfm/dfm /path/to/local/dfm`.
90+
2. Cherry-pick fixes into any Stoa scripts that interact with DFM data
91+
(backups, themes, config paths) after a sync.
92+
93+
Because there is no direct fork file, `sync-upstream.sh dfm` skips the
94+
diff summary step and just updates the vendored snapshot.

‎scripts/vendor/dfm/.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
__pycache__/
2+
*.pyc
3+
*.pyo
4+
*.egg-info/
5+
dist/
6+
build/
7+
.eggs/

‎scripts/vendor/dfm/dfm/__init__.py‎

Whitespace-only changes.

‎scripts/vendor/dfm/dfm/core/__init__.py‎

Whitespace-only changes.

‎scripts/vendor/dfm/dfm/ui/__init__.py‎

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PyGObject>=3.42.0

‎scripts/vendor/dfm/screenshots/.gitkeep‎

Whitespace-only changes.

‎scripts/vendor/dfm/setup.py‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name="dfm",
5+
version="2.0.0",
6+
description="A GUI for managing dotfiles in Arch Linux",
7+
packages=find_packages(),
8+
python_requires=">=3.10",
9+
install_requires=[
10+
"PyGObject>=3.42.0",
11+
"PyYAML>=6.0",
12+
'tomli>=1.2; python_version < "3.11"',
13+
],
14+
entry_points={
15+
"console_scripts": [
16+
"dfm=dfm.main:main",
17+
],
18+
},
19+
)

‎scripts/vendor/sync-upstream.sh‎

100755100644
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
#!/bin/bash
2-
# ╔══════════════════════════════════════════════════════════════╗
2+
# ╔═══════════════════════════════════════════════════════════╗
33
# ║ STOA LINUX — Vendor Sync ║
44
# ║ Pull upstream commits into scripts/vendor/<name> and show ║
55
# ║ the diff against the Stoa fork so you can forward-port. ║
6-
# ╚══════════════════════════════════════════════════════════════╝
6+
# ╚═══════════════════════════════════════════════════════════╝
77
#
88
# Usage:
99
# scripts/vendor/sync-upstream.sh <vendor-name>
1010
# scripts/vendor/sync-upstream.sh brcs
11+
# scripts/vendor/sync-upstream.sh dfm
1112
#
1213
# Add new vendored projects to the VENDORS table below.
1314

1415
set -euo pipefail
1516

1617
# name|prefix|upstream-url|branch|stoa-fork-path (relative to repo root)
18+
# Leave the fork path empty when the vendor has no single-file Stoa fork
19+
# (e.g. a Python package vendored for reference only).
1720
VENDORS=(
1821
"brcs|scripts/vendor/brcs|https://github.com/VictorGSchneider/BRCS.sh.git|main|scripts/stoa-maintain.sh"
22+
"dfm|scripts/vendor/dfm|https://github.com/VictorGSchneider/DFM.git|main|"
1923
)
2024

2125
B='\033[38;2;196;154;92m'
@@ -104,11 +108,18 @@ main() {
104108
echo ""
105109
echo -e "${S}Full diff: diff -u ${upstream_file} ${fork}${R}"
106110
fi
111+
else
112+
echo ""
113+
echo -e "${S}No Stoa fork configured for ${name} — skipping diff summary.${R}"
107114
fi
108115

109116
echo ""
110117
echo -e "${O}Done. Review any incoming changes and forward-port bug fixes${R}"
111-
echo -e "${O}into ${fork} as needed, then commit.${R}"
118+
if [ -n "$fork" ]; then
119+
echo -e "${O}into ${fork} as needed, then commit.${R}"
120+
else
121+
echo -e "${O}into the matching Stoa sources as needed, then commit.${R}"
122+
fi
112123
}
113124

114125
main "$@"

0 commit comments

Comments
 (0)