Code: Select all
#!/bin/bash
# if --kill flag is used, kill xanalogtv
# otherwise spawn some "I'll be right back" program for OBS to capture
# can I throw these all on :99?? I hope so
# I was gonna DRYify this but I don't feel like it cus this will NOT be a debugging nightmare
# hello future me :3
if [[ $1 == "--kill" ]]; then
cowsay -d xP
killall "xanalogtv"
exit 0
fi
export DISPLAY=:99
/usr/libexec/xscreensaver/xanalogtv --image /home/ruralanemone/Pictures/testcard_rca.png &
figlet "spawned!"
Befehl: /home/ruralanemone/scripts/obs/switcher.sh szene_value
"Brb" Szene-Wert: "
Alle anderen Szenen:"
Alle anderen Szenen: "P> Ausgabe: < /p>
Code: Select all
[scene_execute_command.lua] Activating Scene. Executing command:
[scene_execute_command.lua] /home/ruralanemone/scripts/obs/switcher.sh --kill
[scene_execute_command.lua] Command output:
[scene_execute_command.lua] Activating brb. Executing command:
[scene_execute_command.lua] /home/ruralanemone/scripts/obs/switcher.sh
[scene_execute_command.lua] Command output:
< /code>
xanalogtv laichen nicht, wenn ich zu "BRB" wechsle, und wenn ich es bereits läuft, wird es nicht getötet, wenn ich zurückschalte. OBS nimmt das Fenster auf XVFB: 99