Obtain info on current workspace etc.
How do I just get info about current settings like current workspace?
For example, from a script I want to decide based on name of the current desktop,
The background is that I have $mod+b for web browser, but I have 2 profiles: home and work. I also have a dedicated set of home and work worplaces. So I want to use a browser launcher that will choose the browser profile based on which workspace I am on. (I'm OK with the fact that the window may get moved later).
So is there a generic way (ie a i3-msg command) for getting info?