Po Lu writes: > The currently active workspace can be obtained like so: > > (x-window-property "_NET_CURRENT_DESKTOP" nil "CARDINAL" 0 nil t) > > if it fails by returning NULL, then you should fall back to: > > (x-window-property "WIN_WORKSPACE" nil "CARDINAL" 0 nil t) > > and failing that, 0. Here the command fails if you specify the workspace, it works only with "worspace0". -- Thierry