switch to sddm

This commit is contained in:
Rick van Lieshout 2022-05-03 14:41:51 +02:00
parent ea861dbbfa
commit 3768caaa76
3 changed files with 134 additions and 134 deletions

View File

@ -7,6 +7,7 @@ root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_size = 2
# Matches multiple files with brace expansion notation
[*.{sh,py,yml}]

View File

@ -24,7 +24,6 @@ networkmanager
eog
python
python-pip
gdm
neofetch
git
scrot
@ -87,3 +86,4 @@ blueman
pulseaudio-bluetooth
bluez
bluez-libs
sddm

View File

@ -38,7 +38,7 @@ ask() {
# delete target, create dirs if they don't exist yet and finally symlink the dir
function linkDir {
rm -rf "$2";
rm -rf "$2"
mkdir -p "${2%/*}"
ln -sf "$1" "$2"
}
@ -113,8 +113,8 @@ function install_config {
sudo ln -sf "$PWD"/bash/Completion /etc/bash_completion.d
# create empty .custom alias file
echo "" > ~/.custom
echo "" > ~/.variables
echo "" >~/.custom
echo "" >~/.variables
# system fixes
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
@ -133,7 +133,6 @@ function install_dependencies {
fileToList dependencies/npm.txt | xargs sudo npm install -g
}
# =======================================
# User output functions
# =======================================
@ -177,7 +176,6 @@ function computer {
echo ""
}
# =======================================
# Main loop
# =======================================
@ -188,10 +186,10 @@ intro
ask "Do you want to continue installing my config and rice?" Y &&
# Ask for dependency installation
if ask "Do you want to install the applications listen in ./dependencies? (might prompt for password)" Y; then
# Ask for dependency installation
if ask "Do you want to install the applications listen in ./dependencies? (might prompt for password)" Y; then
install_dependencies
fi
fi
# Ask for config installation
if ask "Do you want to install the config files?" Y; then
@ -203,9 +201,10 @@ if ask "Do you want to install the fonts?" Y; then
install_fonts
fi
# ask to enable gdm
if ask "Do you want to enable GDM?" Y; then
sudo systemctl enable gdm.service
# ask to enable the display manager
if ask "Do you want to enable sddm?" Y; then
sudo systemctl set-default graphical.target
sudo systemctl enable sddm.service
fi
clear
@ -215,10 +214,10 @@ prompt=$(echo $'\n> ' "Please select a specific computer to install or q to fini
PS3="$prompt: "
select opt in "$PWD/computers"/*; do
if (( REPLY == "q" )) ; then
if ((REPLY == "q")); then
break
elif (( REPLY > 0 )) ; then
elif ((REPLY > 0)); then
bash "$opt/install.sh"
break
else
@ -227,4 +226,4 @@ select opt in "$PWD/computers"/*; do
done
clear
echo "Enjoy using my rice! Do not forget to select i3 in GDM :)"
echo "Enjoy using my rice! Do not forget to select i3 in sddm :)"