DigiKam-Profil, digikam-sort-Skript und digiKam-Sortieren-Plugin #5

Merged
martin merged 5 commits from digikam-profile into main 2026-11-20 17:04:21 +01:00
Owner

Inhalt

DigiKam-Profil (profiles/digikam/)

  • Stream Deck + Profil, schaltet automatisch auf digiKam um.
  • Untere Reihe: drucken (⌥1, grün), behalten (⌥2, gelb), löschen (⌥3, rot). Jeder Button ist eine Multi Action: Markierung setzen, dann → zum nächsten Foto.
  • sortieren (3,0): Plugin-Action, zeigt die Anzahl wartender Fotos.
  • Drehknopf: ← / → zum Blättern.
  • Icons: Material Symbols, farbig, ohne Schwarz.

tools/digikam-sort/digikam_sort.py

  • Ersetzt die Hazel-Regelsätze Quellen und __Alle Bilder.
  • Grün → Keyword druckbar, ins Archiv YYYY/MM/DD. Gelb → druckbar entfernen, ins Archiv. Rot → Papierkorb.
  • Optionen: --dry-run, --count, --progress, --notify. Lock gegen parallele Läufe, Metadaten-Cache, Log in ~/Library/Logs/digikam-sort.log.
  • Hazel kann das Skript pro Datei als Fallback aufrufen (siehe README).
  • 18 Unit-Tests: npm run test:digikam-sort (brauchen exiftool).

plugins/digikam-sort-plugin/ (com.keineantwort.digikamsort)

  • Zählt nur, solange die Taste sichtbar ist: beim willAppear, dann alle 20 s; der Timer stoppt beim letzten willDisappear.
  • Tastendruck startet die Sortierung, die Taste zählt herunter (↓ n), danach ✓ oder Fehler.

Getestet

  • Unit-Tests grün; streamdeck validate ok.
  • Echter Lauf: 106 druckbar, 84 behalten, 164 gelöscht, 0 Fehler.
  • Plugin-Log zeigt willAppear und regelmäßige Zählungen.
  • Noch offen: Stopp bei willDisappear auf dem Gerät (zu einer App mit eigenem Profil wechseln).

🤖 Generated with Claude Code

## Inhalt ### DigiKam-Profil (`profiles/digikam/`) - Stream Deck + Profil, schaltet automatisch auf digiKam um. - Untere Reihe: **drucken** (⌥1, grün), **behalten** (⌥2, gelb), **löschen** (⌥3, rot). Jeder Button ist eine Multi Action: Markierung setzen, dann → zum nächsten Foto. - **sortieren** (3,0): Plugin-Action, zeigt die Anzahl wartender Fotos. - Drehknopf: ← / → zum Blättern. - Icons: Material Symbols, farbig, ohne Schwarz. ### `tools/digikam-sort/digikam_sort.py` - Ersetzt die Hazel-Regelsätze `Quellen` und `__Alle Bilder`. - Grün → Keyword `druckbar`, ins Archiv `YYYY/MM/DD`. Gelb → `druckbar` entfernen, ins Archiv. Rot → Papierkorb. - Optionen: `--dry-run`, `--count`, `--progress`, `--notify`. Lock gegen parallele Läufe, Metadaten-Cache, Log in `~/Library/Logs/digikam-sort.log`. - Hazel kann das Skript pro Datei als Fallback aufrufen (siehe README). - 18 Unit-Tests: `npm run test:digikam-sort` (brauchen exiftool). ### `plugins/digikam-sort-plugin/` (`com.keineantwort.digikamsort`) - Zählt nur, solange die Taste sichtbar ist: beim `willAppear`, dann alle 20 s; der Timer stoppt beim letzten `willDisappear`. - Tastendruck startet die Sortierung, die Taste zählt herunter (`↓ n`), danach `✓` oder `Fehler`. ## Getestet - Unit-Tests grün; `streamdeck validate` ok. - Echter Lauf: 106 druckbar, 84 behalten, 164 gelöscht, 0 Fehler. - Plugin-Log zeigt willAppear und regelmäßige Zählungen. - **Noch offen:** Stopp bei `willDisappear` auf dem Gerät (zu einer App mit eigenem Profil wechseln). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Auto-switching profile for digiKam with three hotkey buttons
(drucken ⌥1, behalten ⌥2, löschen ⌥3). Icons are filled Material
Symbols in green/yellow/red, without black parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Buttons now set the label and advance to the next photo (⌥n, →).
New dial browses photos (left ← / right →). The README notes that
actions must not share image files, since the Stream Deck app deletes
a shared file together with the first action that uses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the Hazel rule sets "Quellen" and "__Alle Bilder" with one
script that sorts photos by their digiKam pick label: accepted gets the
keyword "druckbar", pending loses it, both move to
"__Alle Bilder/YYYY/MM/DD" by capture date; rejected goes to the Trash.
Images lying directly in the archive are sorted by date.

- runs on the macOS system Python without extra packages, so Hazel can
  call it per file as a fallback; parallel runs wait for each other
- --dry-run, log file, macOS notification
- install-app.sh builds a launcher app that the new "sortieren" button
  (3,0) in the DigiKam profile opens
- tests with real JPEGs and exiftool: npm run test:digikam-sort

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add digiKam Sortieren plugin with live count on the sortieren key
All checks were successful
Test / test (pull_request) Successful in 16s
c8292a6ede
The sortieren key now shows how many labelled photos are waiting and
counts down while sorting. Counting only happens while the key is
visible: on willAppear and every 20 s, stopped on willDisappear.

- digikam_sort.py: --count (JSON, changes nothing), --progress (JSON
  lines), metadata cache keyed by path/mtime/size so a count only reads
  changed files with exiftool (~0.2 s instead of ~40 s)
- new plugin plugins/digikam-sort-plugin; the build copies the script
  into bin/
- DigiKam profile uses the plugin action and lists it as required
- drop the AppleScript launcher (install-app.sh)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move DigiKam dial one position to the left (3,0 -> 2,0)
All checks were successful
Test / test (pull_request) Successful in 15s
b1f5e97202
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
martin merged commit 48ebbb5285 into main 2026-11-20 17:04:21 +01:00
martin deleted branch digikam-profile 2026-11-20 17:04:21 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
keineantwort.de/streamdeck-plugins!5
No description provided.