Script: info-xampp
The Script prints the status of XAMPP services (Apache, MySQL, ProFTPD) if they are running.
Dependencies
Create a sudo rule to allow you user to read the status information.
username ALL = NOPASSWD: /opt/lampp/xampp
Module
[module/info-xampp]
type = custom/script
exec = ~/polybar-scripts/info-xampp.sh
interval = 10