Closed Marin-Kitagawa closed 1 year ago
Thank you so much for your pull request on my dotfiles repo! I really appreciate you taking the time to help me out.
I just wanted to let you know that I had already thought about some of the stuff you mentioned in your pull request, but I had accidentally pushed an old script that I messed up pretty badly.
Most of your suggestions are really good, and I'm definitely going to fix up my current script to make it work better. As for the 4th suggestion about forcing sddm, I wanted to let you know that I actually rice sddm lockscreen and I'll probably be adding it to my dotfiles soon. Plus, this script is mostly for newly installed Arch systems.
I also wanted to clarify that the backup step in the script will "move" current dotfiles to where the script will make changes instead of copying them. This should prevent any issues with installing .oh-my-zsh.
Based on your suggestions, I'll definitely be adding "if-else" statements, echo comments, and a backup step to make sure users are aware of what the script is doing. Thanks again for all your suggestions - they mean a lot to me!
.config
folder ofroot
--needed
option so as to prevent reinstallation of the same packages againyay
andparu
) is already installed. It chooses the AUR helper already installed. If both are installed, it choosesparu
sddm
is not necessary to be installed because the user already has another session installed and hence the user must already have one of the following:sddm
,lightdm
,gdm
,ly
. I have considered only the first two for now. Feel free to add the rest later$USER
and if is notzsh
, it changes it tozsh
. IfOh My ZSH
is already installed, there is a high probability of the user's default shell beingzsh
. There may be a human error which could have prevented this. So, adding this just in case.Oh My ZSH
. If it is already installed, then, update it, else, install the latest versionOh My ZSH
. If yes, then leave it, else, install them. SinceOh My ZSH
is already installed, and sinceplugins
becomes a variable because.zshrc
contains it as an array,${plugins[*]}
becomes valid and hence we can query all the available plugins installed byomz
sddm
. Since the script only installssddm
when nothing else of its kind is installed, this means thatsddm
is the only one present. So, enable it. If it is already enabled (i.e. user already hassddm
as the default session manager) no problem