How do I just get info about current settings like current workspace?
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?
See the i3ipc documentation. To find out how to call i3-msg, use man i3-msg.