"activeworkspace" can be useful if you aren't interested in the special workspace, but since it ignores special workspaces, it causes this script to behave unexpectedly.