!! This script leverages xset to modify mouse speed, which provides a relative change, not a true DPI setting. The provided conversion factor is an approximation and might require fine-tuning based on your specific system and mouse!!
sudo pacman -S python tkinter