Switcheroo-Control D-Bus service to check the availability of dual-GPU, integrates with the settings of KDE/plasma Gnome, and Cinnamon: “Launch using Dedicated Graphics Card” menu item appears on application starter contextual menu per example.
Install it and enable the needed systemd-service:
sudo pacman -Syu switcheroo-control
sudo systemctl enable --now switcheroo-control
GNOME
https://wiki.archlinux.org/title/PRIME#GNOME_integration
GNOME will respect the PrefersNonDefaultGPU
property in the desktop entry. Alternatively, you can launch applications with GPU by right-clicking on the icon and choosing Launch using Discrete Graphics Card.
KDE/plasma
You will see the option on Launcher settings:

Cinnamon
You will have the same option in Launcher Settings to tag “Use Dedicated GPU if available”
credits:
Monitor icons created by Hilmy Abiyyu A. – Flaticon