feat: initial Windows Python tray rewriter for Ollama

This commit is contained in:
2026-03-08 11:54:44 +01:00
commit c5ad1a6bb7
3 changed files with 369 additions and 0 deletions

47
README.md Normal file
View File

@@ -0,0 +1,47 @@
# Ollama Tray Rewriter (Windows, Python)
Kleine Tray-App für Windows:
- wartet auf globale Hotkey-Kombi
- kopiert Text aus aktuellem Eingabefeld (`Ctrl+A`, `Ctrl+C`)
- zeigt Quelle/Ziel im Fenster
- mehrere Prompts speicherbar
- Bearbeitung über Ollama (URL + Modell konfigurierbar)
- Buttons: **Einfügen** (zurück + `Ctrl+V`) und **Ins Clipboard**
## Voraussetzungen
- Windows 10/11
- Python 3.10+
## Installation
```powershell
pip install -r requirements.txt
```
## Start
```powershell
python app.py
```
## Hotkey
Default: `Ctrl+Shift+Space`.
Kann im Fenster geändert und gespeichert werden.
## Konfiguration
Wird gespeichert in:
`%USERPROFILE%\\.ollama_tray_rewriter\\config.json`
Dort liegen:
- `hotkey`
- `ollama_url`
- `model`
- `prompts[]`
## Hinweis
Die App nutzt globale Tastatur-Hooks (`keyboard`). Je nach Windows-Setup kann Start als Administrator nötig sein.