aboutsummaryrefslogtreecommitdiff
path: root/share/provision/files/desktop-basic/home/user/.custom/xsession
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-11-12 16:54:05 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-11-12 16:54:05 -0200
commitd93e90673947a086432e0d1538c1cebc26bff992 (patch)
treec486ec89f4cac48950d48d542c23d09cec1d53b5 /share/provision/files/desktop-basic/home/user/.custom/xsession
parentff3e09ca5e3d37406757013dad2fcbdebc80eca7 (diff)
downloadkvmx-d93e90673947a086432e0d1538c1cebc26bff992.tar.gz
kvmx-d93e90673947a086432e0d1538c1cebc26bff992.tar.bz2
Updates custom/xsession
Diffstat (limited to 'share/provision/files/desktop-basic/home/user/.custom/xsession')
-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
#