From: Tomas Mudrunka Date: Thu, 19 Apr 2012 16:19:11 +0000 (+0200) Subject: First experimental version of vizionix VJ software X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=fee6ec9ef953f4ae050a01e0221732aa93fc4ee9;p=mirrors%2FPrograms.git First experimental version of vizionix VJ software --- diff --git a/c/vizionix/getxsock.sh b/c/vizionix/getxsock.sh index e2615ed..5cafc6b 100755 --- a/c/vizionix/getxsock.sh +++ b/c/vizionix/getxsock.sh @@ -1,6 +1,9 @@ #!/bin/bash -kill -0 $XSOCK_PID || { +TMPFILE="/tmp/xsock-$USER"; +[ -f "$TMPFILE" ] && . "$TMPFILE" +[ -n "$XSOCK_PID" ] && kill -0 "$XSOCK_PID" 2>/dev/null || { PATH="./:$PATH" - eval "$(mkxsock)" + eval "$(mkxsock | tee $TMPFILE)" + echo "XSOCK_PID set to $XSOCK_PID" >&2 } export XSOCK_PID XSOCK_WID diff --git a/c/vizionix/queue.txt b/c/vizionix/queue.txt new file mode 100644 index 0000000..5699cae --- /dev/null +++ b/c/vizionix/queue.txt @@ -0,0 +1,4 @@ +#mplaywrap.sh -endpos 2 ~/Downloads/outputvideo.mpeg +mplaywrap.sh -endpos 2 mplayer ~/Downloads/PROJEKCE/skeleton_walk_loop.mp4 +xtermwrap.sh -e 'timeout 1 ../spiral' + diff --git a/c/vizionix/vizionix-cli.sh b/c/vizionix/vizionix-cli.sh new file mode 100755 index 0000000..eb0655a --- /dev/null +++ b/c/vizionix/vizionix-cli.sh @@ -0,0 +1,7 @@ +#!/bin/bash +while true; do + echo "$(cat $1)" | while read cmd; do + . getxsock.sh; export XSOCK_PID XSOCK_WID + echo "$cmd" | bash + done; +done