finally figured out bspwm query, made the workspace output more extensible