[Unit]
Description=Dictation Service Keybinding Listener
After=graphical-session.target sound.target
Wants=sound.target
PartOf=graphical-session.target

[Service]
Type=simple
User=universal
WorkingDirectory=/mnt/storage/Development/dictation-service
EnvironmentFile=-/etc/environment
ExecStart=/bin/bash -c 'export DISPLAY=${DISPLAY:-:1}; export XAUTHORITY=${XAUTHORITY:-/run/user/1000/gdm/Xauthority}; /home/universal/.local/bin/uv run python keybinding_listener.py'
Restart=always
RestartSec=3
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=graphical-session.target