i3 "empty" event: is there a way to get the workspace which is emptied?
"empty" event is an event which notifies subscribers that a workspace has its last window closed. However, it does not tell which workspace is closed. Is there a way to know it?
I know a partially useful solution is to always remember the last focused workspace, as in many cases the last focused workspace is new empty workspace. But this is not reliable, since a window can be killed in a workspace that users don't touch.