[Unit] Description=Mouse wiggle every time MythTV starts playback [Service] ExecStart=/bin/bash -c 'journalctl -t mythfrontend -t mythfrontend.real -f | grep --line-buffered "Entering main playback loop" | while read line; do echo mouse-wiggle; /root/mouse-wiggle/mouse-wiggle; done' Restart=always [Install] WantedBy=multi-user.target