We investigate the matter on the Arch Wiki.
We need to install the xorg packages.
sudo pacman -S xorg-server xorg-apps xorg-xinit xterm
The linux kernel can handle many
So try first without
any extra installation
Start on the xorg wiki page find out what driver you need for your hardware.
Most common hardware vendors are:
With lspci you can find out what hardware you have in your computer. Then you need to investigate further to find out what driver you want to install.
lspci | grep -e VGA -e 3D
Then you need to continue your investigation or install with trial and error.
There are a lot of choices out there. Each with their advantages and disadvantages.
We choose to install lightdm.
sudo pacman -S lightdm
sudo pacman -S lightdm-gtk-greeter lightdm-gtk-greeter-settings
sudo systemctl enable lightdm.service
you have a desktop
Or install SDDM instead of Lightdm
sudo pacman -S sddm
sudo systemctl enable sddm.service
It helps to see your
operating system as layers upon layers.