From d93e90673947a086432e0d1538c1cebc26bff992 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 12 Nov 2018 16:54:05 -0200 Subject: Updates custom/xsession --- .../files/desktop-basic/home/user/.custom/xsession | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'share/provision/files/desktop-basic') 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 # -- cgit v1.2.3