Files
snigdhaos-system-installation/usr/local/bin/snigdhaos-fixes

53 lines
1.2 KiB
Bash

#!/bin/bash
# set -e
# Author : Eshan Roy <eshan@snigdhaos.or>
# Author URL : https://eshanized.github.io/
echo
echo "--->> Start snigdhaos-fixes <<---"
echo
desktop=$(ls /usr/share/xsessions/)
echo
# shellcheck disable=SC2086
echo "Your Current Desktop: "$desktop
echo
# Let's make some cases
case $desktop in
ukui.desktop)
echo "Found : Lightm [STATUS: ACTIVE]"
pacman -S sddm --noconfirm --needed
systemctl enable sddm.service -f
;;
deepin.desktop)
echo "Found : Lightm [STATUS: ACTIVE]"
pacman -S sddm --noconfirm --needed
systemctl enable sddm.service -f
;;
*)
echo "Nothing To Do!!!"
esac
if [ -f /usr/bin/gnome-session ]; then
echo "INSTALLED: GDM [STATUS: ACTIVE]"
pacman -S sddm --noconfirm --needed
systemctl enable sddm.service -f
fi
if [ -f /usr/bin/startdde ]; then
echo "INSTALLED: LightDM [STATUS: ACTIVE]"
pacman -S sddm --noconfirm --needed
systemctl enable sddm.service -f
fi
if [ -f /usr/bin/ukui-session ]; then
echo "INSTALLED: LightDM [STATUS: ACTIVE]"
pacman -S sddm --noconfirm --needed
systemctl enable sddm.service -f
fi
echo
echo "--->> End snigdhaos-fixes <<---"
echo