From 72294ead286e5fb520c8d76e4b7b57b3fe04c227 Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Wed, 6 Apr 2022 14:15:39 -0400 Subject: [PATCH] Cool new service file --- Software/houston/qsstv.service | 2 +- Software/houston/sstv.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 Software/houston/sstv.sh diff --git a/Software/houston/qsstv.service b/Software/houston/qsstv.service index b4cd62b..68765ab 100644 --- a/Software/houston/qsstv.service +++ b/Software/houston/qsstv.service @@ -2,7 +2,7 @@ Description=Runs a qsstv instance as houston with houston's config [Service] -ExecStart=sudo su -l houston -c "xinit -geometry =1280x960+0+0 -fn 8x13 -j -fg white -bg black qsstv -- -nocursor" & +ExecStart=sudo su -l houston -c "/opt/radio/lewis-crawler/Software/houston/sstv.sh" & [Install] WantedBy=multi-user.target diff --git a/Software/houston/sstv.sh b/Software/houston/sstv.sh new file mode 100755 index 0000000..cf1a8f6 --- /dev/null +++ b/Software/houston/sstv.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Runs all the required fluff for spawning qsstv with notifing and stuff. + +# Make tempdirs +mkdir -p /tmp/sstv_images + +# Copy config file +cp qsstv_9.0.conf ~/.config/ON4QZ/qsstv_9.0.conf + +# Spawn qsstv +xinit -geometry =1280x960+0+0 -fn 8x13 -j -fg white -bg black qsstv -- -nocursor