Re: Moving windows to other workspaces is challenging in ctwm

Rhialto <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
On Mon 25 Sep 2017 at 01:14:35 -0400, Steve Litt wrote:
> function move-to-specified-workspace { f.occupy f.vanish }

I guess that that may not work because f.occupy is async, it just pops
up the occupation window. f.vanish will run immediately, and do nothing
if the window is present in just one workspace.

I tried

function "occutest1" { f.toggleoccupation "One"  f.vanish }
function "occutest5" { f.toggleoccupation "Five" f.vanish }

combined with calling these from some existing window menu:

menu "windowmenu" {
...
    "Occupy test 1"	f.function "occutest1"
    "Occupy test 5"	f.function "occutest5"
...
}

and that seemed to work.

> I reversed the order: Neither worked right.
> 
> By the way, is there a way to pass an argument to a user defined
> function, or do I have to make a function for each workspace?

I don't think so, and I have wished for something like that as well.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl      -- are condemned to reinvent it. Poorly.
signature.asc (application/pgp-signature, 455 B)
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJZyXBtAAoJEJmJxkVhw/vTwJIH+wfZoZn7XDEJCZprdYfQzOPY
s5XF/WnYLn7nF9QrB/RIROf3NUb9auhjdEiMCPpBIXucQ+YOP9sHRbJpNELqhDS1
LZ21JCSnfeGYudsgvg8hUUli1nBKahgn74qX3Hd0Rs6+kaJcF1iiAyt3jF/hQUU/
vRjt+RGicy3VUC+PEqlyWHJ5iAUeEPC12WhbJdEjWJI+u3mCvfByQELP5gBBsQM5
XzeFNqtzwyQqSW1gnGN1irCDuQ4YJhGcbbftU5HeBu2UOik8bJglVn+7r1VqJwjl
wW1KQyrwxgMD4IIvjTnLrfN6VOKQShf3olH9qZU0veYEwF0xgGai2dwlu0GzqxY=
=qg4y
-----END PGP SIGNATURE-----
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.