Re: Switch between workspaces by name

Tuomo Valkonen <[email protected]>
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <[email protected]>
On 2007-10-21, Zsolt Udvari <[email protected]> wrote:
> In this there are a few patch and there is a function "bool
> switch_workspace_name(const char *str)". The mail and the patch is
> very-very old (from year 2001).

That's for Ion1, and the patch doesn't implement that, as you
can see by reading from the description. Ion has always (as far
as I can recall) had named workspace switch bound to F9. Just
type of the name of an existing workspace (with tab-completion
in the middle of the name too), and hit enter. If you type
the name of a non-existent workspace, then you will be asked
to create it, otherwise Ion will switch to the workspace.

If you want to do the same in a script, use ioncore.lookup_region
(possibly filtering by "WGroupWS") followed by WRegion.goto on 
the result (res:goto()).

-- 
Tuomo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.