Pridana knihovna getxsock
authorTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Apr 2012 15:17:53 +0000 (17:17 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Thu, 19 Apr 2012 15:17:53 +0000 (17:17 +0200)
c/vizionix/getxsock.sh [new file with mode: 0755]
c/vizionix/mplaywrap.sh
c/vizionix/xtermwrap.sh

diff --git a/c/vizionix/getxsock.sh b/c/vizionix/getxsock.sh
new file mode 100755 (executable)
index 0000000..e2615ed
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+kill -0 $XSOCK_PID || {
+       PATH="./:$PATH"
+       eval "$(mkxsock)"
+}
+export XSOCK_PID XSOCK_WID
index 02cd3e60ff361903fcb5868b3ce8f6086f1b467c..4af702e90d7206f0e2fde6c5b82fd0cf4e827a8c 100755 (executable)
@@ -1,4 +1,3 @@
 #!/bin/bash
-PATH="./:$PATH"
-eval "$(mkxsock)"
+. getxsock.sh
 mplayer -fs -wid "$XSOCK_WID" $@
index 7028a5167ffca800926812bcc4261a63682d05ef..56c5f8c4e063281caa33f214566b429131df96c2 100755 (executable)
@@ -1,5 +1,3 @@
 #!/bin/bash
-PATH="./:$PATH"
-eval "$(mkxsock)"
-xterm -xrm "XTerm.vt100.allowSendEvents:true" -into "$XSOCK_WID" $@
-
+. getxsock.sh
+xterm -xrm "XTerm.vt100.allowSendEvents:true" -into "$XSOCK_WID" -bg black -fg white $@
This page took 0.144017 seconds and 4 git commands to generate.