Look at somebody’s setup, check the tooling they use to achieve it (e.g i3+Polybar or Sway+Waybar) and follow their respective tooling’s first-setup guides / install guides
From there, familiarize yourself with the way they work and how to configure them.
From there, you’re already on a good path.
Whenever you have questions, just ask! :)
XMPP can indeed be used for some other things
For example, Google uses it to this day for Google Cloud Messaging - the push notifications service in Android.
Just the how is something I cannot answer :/