Re: shell scripting enhancements



On Fri, May 05, 2006 at 07:16:22PM +0800, Vincente Aggrippino wrote:
Are there any utilities that would allow me to interact with Gnome, GTK, or
the Metacity window manager from a shell script?

For example, I may want to write a script that can read a list of the
windows on each desktop and move one of them to another desktop.

Is this already beyond shell scripting? Can anyone make recommendations as
to how I would get started with this type of window manipulation, etc...

I imagine that I would begin with GTK. I'm well-versed in Perl and I could
probably find an appropriate module.

Thank you,
Vince

Hello Vince,

if you are already familiar with perl, you should take a look into
perl's gtk modules.

The gnome-panel contains an applet named wnck-applet. This should give
you ideas on how to query the window list. After that, you can send
"resize" signals to the windows to maximize them.
Unfortunately, I'm not very familiar with gnome itself, so I don't know
how to mvoe a window to another desktop. Maybe there are hints in other
panel applets, like the desktop switcher.

Good luck on it, and don't forget to license it under GNU GPL and
publish it somewhere ;)

Regards,

--
POLONKAI Gergely
C programmers never die, we just get cast into void.
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list



Relevant Pages

  • message ok input to desktop shell
    ... for a shell script to pop up a message dialog for people to read ... and dismiss? ... javax.swing also does not just plain work there. ... visually loud or as conventionally expected as a new window. ...
    (comp.unix.shell)
  • Re: Open window on specified desktop
    ... I'd like to open a window on a given desktop in a shell script. ... except it switches the active desktop:( ... "xterm" xterm ...
    (comp.windows.x.kde)
  • shell scripting enhancements
    ... the Metacity window manager from a shell script? ... to how I would get started with this type of window manipulation, ... I imagine that I would begin with GTK. ...
    (GNOME)
  • Re: [9fans] sanity check
    ... > is one or two I want to keep I just do 9fs dfs again in those ... > (and!9fs dfs in my sam window) to attach them. ... the newly acquired namespace. ... changed, but it is implemented from existing parts in only 4 lines of shell script, ...
    (comp.os.plan9)
  • Re: [9fans] sanity check
    ... > is one or two I want to keep I just do 9fs dfs again in those ... > (and!9fs dfs in my sam window) to attach them. ... the newly acquired namespace. ... changed, but it is implemented from existing parts in only 4 lines of shell script, ...
    (comp.os.plan9)