Making scripts with sawfish-client



Hi all

In our research project, we need to pilot the window manager remotely  in
order to add some interactivity and to validate a some hypotheses (Wizard of
Oz method).

So we have several bash scripts and c/++ daemons managing contents and
events, and we would like to go further. For that, we would like to have a
couple of more system scripts, but I am not sure exactly how to do them.

One script (let's call it � create_workspace �) is for creating a named
workspace in the last position of the workspace list. Its use would be
something like this:

___
$ wmctrl -d
0  * DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Write an email to uncle Joe
1  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Document summary
2  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Web search

$ create_workspace "Divers"

$ wmctrl -d
0  * DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Write an email to uncle Joe
1  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Document summary
2  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Web search
3  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Divers
___


Also, we would need another script (named here � delete_workspace � ) for
deleting a precise workspace: this one is more tricky. We want to be able to
delete a specific workspace (nor necessarily the last one) and update the
workspace list in order to not have any � hole � in it.

It could be something like this:

___
$ wmctrl -d
0  * DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Write an email to uncle Joe
1  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Document summary
2  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Web search
3  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Divers

$ delete_workspace 1

$ wmctrl -d
0  * DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Write an email to uncle Joe
1  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Web search
2  - DG: 1344x1024  VP: 0,0  WA: 0,0 1216x1024  Divers
___


We are having a look at sawfish-client, as it seems to be the best way of
doing this, but I cannot find any useful examples on how using it for doing
things like this.

Can you help on those scripts, please ?

Regards,
	Damien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]