Cause the process name wouldn't be much of a problem, just a question of trial and error, for those apps that launch multiple processes.
Also, maybe I wasn't clear enough, but I'm planning on creating one script for each app, not a global script that does it all by itself, all I need is the signal that is used, so I can do "focus on firefox" on the firefox script, "focus on thunderbird" on the thunderbird script, etc..., not a general "focus on $pid".
On 7/11/06, Jesse Luehrs <[EMAIL PROTECTED]> wrote:
---- Original message ----
>Date: Tue, 11 Jul 2006 13:27:43 -0300
>From: "Fernando Gerent" <[EMAIL PROTECTED]>
>Subject: Re: [e-users] E17 Feature request - keybindings
>To: Josh <[EMAIL PROTECTED]>
>Cc: enlightenment-users@lists.sourceforge.net
>
> I was just thinking about that.
> It kind of complements this other thing I've been
> planning to do, that's storing my app preferences,
> whenever possible, on scripts, using the command
> arguments, instead of editing the config files. This
> makes it much easier to restore them in a reinstall,
> and overrides any global config file that may be
> changed in an upgrade.
> I just have no idea how I can check if a program is
> running, althought I'm pretty sure it can be done.
ps w -eo 'comm' | grep -qE "^${PROGNAME}$"
that will return successfully if ${PROGNAME} is running and
with a failure code if it is not (no guarantees on the
portability of that... I know it works on Linux).
> As for the focus, it's probably possible, maybe I
> can use the signal used by "mouse click on window
> title" or "Alt+Tab" to bring up the program. Maybe
> someone around here could help me find exactly what
> it is.
The problem isn't in sending the signal... that would be
fairly trivial (as you mentioned, clicks and alt+tab do it
already). The really difficult part is figuring out which
windows go with which pids/process names.
> Thanks everyone for the replies so far.
>
> Fernando
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users