minor changes

This commit is contained in:
Solomon Laing 2021-08-29 21:25:15 +09:30
parent 09156eff05
commit 610756a454

View File

@ -17,17 +17,14 @@ read -r -p "This process is not complete... [enter] " input
# set shell to fish
if command -v fish &> /dev/null; then
read -r -p "You have the fish shell installed, would you like to set this as your default shell? [y/N] " input
read -r -p "You have the fish shell installed, would you like to set this as your default shell? [Y/n] " input
case $input in
[yY][eE][sS] | [yY])
echo "Okay, setting shell to fish."
chsh -s `which fish`
;;
[nN][oO] | [nN])
echo "Okay, not setting shell."
;;
*)
echo "Invalid input... Not setting shell."
echo "Okay, setting shell to fish."
chsh -s `which fish`
;;
esac
fi
@ -35,20 +32,45 @@ fi
# make a very rudimentary attempt to configure lightdm
if command -v fish &> /dev/null; then
echo "You have lightdm installed, I'm assuming you also have my chosen theme lightdm-webkit-theme-litarvan installed as well."
read -r -p "Given the above would you like me to attempt (Very rudimentarily) to configure lightdm [y/N] " input
read -r -p "Given the above would you like me to attempt (Very rudimentarily) to configure lightdm [Y/n] " input
case $input in
[yY][eE][sS] | [yY])
echo "Okay, attempting to configure."
sudo sed -i 's/antergos/litarvan/' /etc/lightdm/lightdm-webkit2-greeter.conf
sudo sed -i 's/#greeter-session=example-gtk-gnome/greeter-session=lightdm-webkit2-greeter/' /etc/lightdm/lightdm.conf
sudo systemctl enable lightdm
;;
[nN][oO] | [nN])
echo "Okay, not configuring."
echo "To configure this yourself you need to set greeter-session=lightdm-webkit2-greeter in /etc/lightdm/lightdm.conf and webkit_theme=litarvan in /etc/lightdm/lightdm-webkit2-greeter.conf."
;;
*)
echo "Invalid input... Not configuring."
echo "Okay, attempting to configure."
sudo sed -i 's/antergos/litarvan/' /etc/lightdm/lightdm-webkit2-greeter.conf
sudo sed -i 's/#greeter-session=example-gtk-gnome/greeter-session=lightdm-webkit2-greeter/' /etc/lightdm/lightdm.conf
sudo systemctl enable lightdm
;;
esac
fi
# enable bluetooth
if command -v bluetoothctl &> /dev/null; then
read -r -p "You have bluetooth installed, enable it? [Y/n] " input
case $input in
[nN][oO] | [nN])
echo "Okay, not enabling."
;;
*)
echo "Okay, enabling."
sudo systemctl enable bluetooth
;;
esac
fi
# enable network manager
if command -v NetworkManager &> /dev/null; then
read -r -p "You have NetworkManager installed, enable it? [y/N] " input
case $input in
[nN][oO] | [nN])
echo "Okay, not enabling."
;;
*)
echo "Okay, enabling."
sudo systemctl enable NetworkManager
;;
esac
fi