Torsocks is a wrapper to safely torify applications.
pacman -S tor torsocks
systemctl enable --now tor.service
torsocks pacman -Syu
torsocks wget -qO- https://check.torproject.org/ | grep -i congratulations
Congratulations. This browser is configured to use Tor.
torsocks curl https://ipleak.net/json/