Bernd Eggink schrieb: > Is there any way to find out in which workspace a certain program is > running?
I mean in a shell script, of course.
The reason is, I got a new keyboard with some fancy extra keys for browser, mail etc., and I want the "Mail" key to trigger an action like "if Thunderbird is not running, start it; otherwise, switch to the workspace where it is running".
Meanwhile I found out that a "runonce" entry in the ~/.icewm/programs serves my purpose well. Nevertheless, I'm still interested in an answer.
> The reason is, I got a new keyboard with some fancy extra keys for > browser, mail etc., and I want the "Mail" key to trigger an action like > "if Thunderbird is not running, start it; otherwise, switch to the
Bernd Eggink schrieb:
> Is there any way to find out in which workspace a certain program is
> running?
I mean in a shell script, of course.
The reason is, I got a new keyboard with some fancy extra keys for
browser, mail etc., and I want the "Mail" key to trigger an action like
"if Thunderbird is not running, start it; otherwise, switch to the
workspace where it is running".
Meanwhile I found out that a "runonce" entry in the ~/.icewm/programs
serves my purpose well. Nevertheless, I'm still interested in an answer.
--===============1862200778==
Content-Type: multipart/signed; protocol="application/pgp-signature";
micalg="PGP-SHA1";
boundary="Signature=_Tue__8_Aug_2006_23_16_37_+0200_NpzsAe6NaQ616oBj"
--Signature=_Tue__8_Aug_2006_23_16_37_+0200_NpzsAe6NaQ616oBj
Bernd Eggink wrote:
> Is there any way to find out in which workspace a certain program is
> running?
You need xprop. I am using a script "nc" to start nedit with an own
server on each workspace:
#!/bin/bash
NEDIT=/usr/local/bin/nc
Bernd Eggink wrote:
> The reason is, I got a new keyboard with some fancy extra keys for
> browser, mail etc., and I want the "Mail" key to trigger an action like
> "if Thunderbird is not running, start it; otherwise, switch to the