aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/provision/files/desktop-basic/home/user/.custom/xsession15
1 files changed, 14 insertions, 1 deletions
diff --git a/share/provision/files/desktop-basic/home/user/.custom/xsession b/share/provision/files/desktop-basic/home/user/.custom/xsession
index d223263..f178b69 100644
--- a/share/provision/files/desktop-basic/home/user/.custom/xsession
+++ b/share/provision/files/desktop-basic/home/user/.custom/xsession
@@ -1,8 +1,21 @@
#
# Custom X11 session config
#
+
+# Parameters
+HOSTNAME="`cat /etc/hostname | cut -d . -f 1`"
+
+# Set window manager
WINDOW_MANAGER="ratpoison"
-PROGRAMS="$PROGRAMS terminal"
+
+# Startup programs
+if [ "$HOSTNAME" == "web" ]; then
+ PROGRAMS="$PROGRAMS tor-browser"
+else
+ PROGRAMS="$PROGRAMS terminal"
+fi
+
+# Display device
DISPLAY_DEVICE="Virtual-0" # or maybe qlx-0
#