aboutsummaryrefslogtreecommitdiff
path: root/xplex
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-02 14:54:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-02 14:54:58 -0300
commit3a6af20f2ef8facd5ab2d20878dab801d9b63eb3 (patch)
treed2d8018d0049e9640f811b77a6140cefbf3a7dd9 /xplex
parente4f01acf75b328287c9c0becb3ef91a09ebfb5bc (diff)
downloadtermplex-3a6af20f2ef8facd5ab2d20878dab801d9b63eb3.tar.gz
termplex-3a6af20f2ef8facd5ab2d20878dab801d9b63eb3.tar.bz2
Adds xplex skeleton
Diffstat (limited to 'xplex')
-rwxr-xr-xxplex27
1 files changed, 27 insertions, 0 deletions
diff --git a/xplex b/xplex
new file mode 100755
index 0000000..c3a867f
--- /dev/null
+++ b/xplex
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# X11 multiplexer: wraps around firejail and xpra
+#
+# References:
+# https://wiki.archlinux.org/index.php/Xpra
+# https://firejail.wordpress.com/documentation-2/x11-guide/
+# https://stackoverflow.com/questions/2520704/find-a-free-x11-display-number#8063923
+# https://unix.stackexchange.com/questions/203844/how-to-find-out-the-current-active-xserver-display-number
+#
+# Requirements: xpra, xvfb, ratpoison, firejail
+#
+# Simpler design: simply run ratpoison using xpra
+# xplex attach <session> # create a session if does not exit
+# xplex detach <session>
+#
+# Complex design:
+# xplex run <session> <command>
+# xplex attach <session>
+# xplex detach <session>
+
+# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863891
+#PATH="/usr/lib/xorg:$PATH" xpra start-desktop :$XPLEX_DISPLAY --start-child=ratpoison
+
+# Needs newer xpra, see
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864765
+echo "TODO"