Skip to content

handy-go-proxy.service

Files / handy-go-proxy / handy-go-proxy.service

Files in handy-go-proxy/

DownloadRawsystemd unit · 15 lines · 672 bytes

From Dictation on Linux with Handy, and tidy text with OpenCode Go. MIT licence: LICENSE.

handy-go-proxy/handy-go-proxy.service
# Local proxy from Handy's text clean-up to OpenCode Go, on 127.0.0.1:8082: adds the x-opencode-session header Go
# requires (Handy can't send custom headers) and opencode's current sign-in. Starts at login.
# Guide: https://blog.jacq.cc/guides/local-voice-dictation-kde-wayland/
[Unit]
Description=Proxy from Handy's text clean-up to OpenCode Go (127.0.0.1:8082)
[Service]
ExecStart=/usr/bin/python3 -I %h/.local/bin/handy-go-proxy.py
# opencode must be on this PATH: add its folder if it isn't one of these (dirname "$(command -v opencode)")
Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target

Text, photos and drawings: CC BY 4.0. Code: MIT. Share and adapt them, crediting HomeLab Guides (blog.jacq.cc). Licence and privacy