Pacman -S will of course install a package but adding 'y' will update repos, just in case there is an update available.
Depending on how script is run you may not need to add sudo to commands.
As this is more for you own use I would suggest repo goes private, until you wish to share.
Still do not see the need for .sh as config.sh does not even look like a script.
Rest is well laid out and comments are useful.
Pacman -S will of course install a package but adding 'y' will update repos, just in case there is an update available.
Depending on how script is run you may not need to add sudo to commands.
As this is more for you own use I would suggest repo goes private, until you wish to share.
Still do not see the need for .sh as config.sh does not even look like a script.
Rest is well laid out and comments are useful.