Attempt to add lxqt and reorganize code.

This commit is contained in:
Storm Dragon 2021-10-26 11:46:20 -04:00
parent 72a9cf4517
commit 2a4cc63613

View File

@ -1,7 +1,19 @@
#!/bin/bash #!/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 # Configure nodm
sudo sed -i "s/{user}/$USER/g" /etc/nodm.conf sudo sed -i "s/{user}/$USER/g" /etc/nodm.conf
@ -33,11 +45,14 @@ export DBUS_SESSION_BUS_ADDRESS
EOF EOF
echo "exec ${1//mate/mate-session}" >> ~/.xinitrc echo "exec ${session}" >> ~/.xinitrc
chmod 755 ~/.xinitrc chmod 755 ~/.xinitrc
if [[ "$1" == "ratpoison" ]]; then if [[ "$1" == "ratpoison" ]]; then
install_package ratpoison install_package ratpoison
fi
if [[ ! -e ~/.ratpoisonrc ]]; then
cat << "EOF" > ~/.ratpoisonrc cat << "EOF" > ~/.ratpoisonrc
# Generated by strychnine (setup.sh) http://gitlab.com/stormdragon2976/strychnine # Generated by strychnine (setup.sh) http://gitlab.com/stormdragon2976/strychnine
@ -191,6 +206,6 @@ if [[ ! -d ~/.config/speech-dispatcher ]]; then
spd-conf -n spd-conf -n
fi fi
# enable and start nodm # enable nodm
sudo systemctl enable nodm sudo systemctl enable nodm
restart restart