Probably sub to sway's ipc and feed that to the bar every half second or smth. This would benefit from one of those fifo/pipes thingies used in other sh bars to ensure that you don't run every command in your bar every half second
-1 cause of Xlibre Xorg is good, I use xenocara on openbsd
but let's NOT use the antivax(org) replacement