diff --git a/.includes/gui.sh b/.includes/gui.sh index a136d9a..f544cf5 100755 --- a/.includes/gui.sh +++ b/.includes/gui.sh @@ -1,7 +1,19 @@ #!/bin/bash -install_package ${1//mate/mate mate-extra} nodm-dgw orca pulseaudio speech-dispatcher xclip xf86-video-dummy-with-vt xorg yad +packages="$1" +packages="${packages//lxqt/lxqt lxterminal oxygen-icons ratpoison}" +packages="${packages//mate/mate mate-extra}" +packages="${packages//ratpoison/ratpoison lxterminal yad}" + +# Proper command for launching the desktop session. +case "${1}" in + "lxqt") session="startlxqt";; + "mate") session="mate-session";; + *) session="$1";; +esac + +install_package ${packages} firefox nodm-dgw orca pulseaudio speech-dispatcher xclip xf86-video-dummy-with-vt xorg # Configure nodm sudo sed -i "s/{user}/$USER/g" /etc/nodm.conf @@ -33,11 +45,14 @@ export DBUS_SESSION_BUS_ADDRESS EOF -echo "exec ${1//mate/mate-session}" >> ~/.xinitrc +echo "exec ${session}" >> ~/.xinitrc chmod 755 ~/.xinitrc if [[ "$1" == "ratpoison" ]]; then install_package ratpoison +fi + +if [[ ! -e ~/.ratpoisonrc ]]; then cat << "EOF" > ~/.ratpoisonrc # Generated by strychnine (setup.sh) http://gitlab.com/stormdragon2976/strychnine @@ -191,6 +206,6 @@ if [[ ! -d ~/.config/speech-dispatcher ]]; then spd-conf -n fi -# enable and start nodm +# enable nodm sudo systemctl enable nodm restart