First experimental version of vizionix VJ software
authorTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Apr 2012 16:19:11 +0000 (18:19 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Apr 2012 16:19:11 +0000 (18:19 +0200)
c/vizionix/getxsock.sh
c/vizionix/queue.txt [new file with mode: 0644]
c/vizionix/vizionix-cli.sh [new file with mode: 0755]

index e2615ed92ff81091121ac2db5c70d80932adf059..5cafc6bbc3427ddd37224a03ae52e3af87c86e28 100755 (executable)
@@ -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 (file)
index 0000000..5699cae
--- /dev/null
@@ -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 (executable)
index 0000000..eb0655a
--- /dev/null
@@ -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
This page took 0.09904 seconds and 4 git commands to generate.