#564014 xdotool: Reduce and thumbnails a window of the WM for a panel

Package:
xdotool
Source:
xdotool
Description:
simulate (generate) X11 keyboard/mouse input events
Submitter:
yellowprotoss
Date:
2010-01-07 05:51:03 UTC
Severity:
wishlist
#564014#5
Date:
2010-01-07 04:51:43 UTC
From:
To:
Hello I have a question wishlist. It would be nice if xdotool could reduce and thumbnails the windows of the WM in a panel.  For explaining I made a puppy-linux screenshot as explanation:
[url]http://img695.imageshack.us/img695/8569/puppylinux.jpg[/url]

My xorg has NO composite / will have No composite at the end (it is it ). I like fast systems, so only at a special key stroke ( keybinding, e.g.) to send it to panel would be great.

I would avoid every 5seconds making thumbnails of the all windows; that would make damn slow the system and cycles for nothing. let's think : "www.motherearthnews.com/"
Just when required the xdotoool minimize it, make a mini thumbnail, and create a mini thumbnail into a folder of $HOME or to a specific panel.


Would be a cool idea, no?

Look my $HOME/.jwmrc, it is heavily using xdotool for a : fast system !!

CODE:

<?xml version="1.0"?>


<JWM>

<StartupCommand>
Esetroot -m $HOME/.wallpaper
tilda  &
xscreensaver -no-splash &


# do not forget ampersand here after
</StartupCommand>


   <!-- The root menu, if this is undefined you will not get a menu. -->
   <!-- Additional RootMenu attributes: onroot, labeled, label -->
   <RootMenu height="15" onroot="123">
      <Program icon="rxvt.png" label="Terminal">x-terminal-emulator</Program>
      <Program icon="firefox.png" label="konsole">konsole</Program>
      <Program icon="firefox.png" label="Www Browser">firefox</Program>

<!-- #DEBIAN
      <Menu icon="folder.png" label="Applications">
         <Program icon="audacious.png" label="Audacious">audacious</Program>
         <Program icon="dia.png" label="Dia">dia</Program>
         <Program icon="firefox.png" label="Firefox">firefox</Program>
         <Program icon="pidgin.png" label="Pidgin">pidgin</Program>
         <Program icon="gimp.png" label="Gimp">gimp</Program>
         <Program icon="gtk-gnutella.png" label="gtk-gnutella">
            gtk-gnutella
         </Program>
         <Program icon="gxine.png" label="gxine">gxine</Program>
         <Program icon="ooffice.png" label="Open Office">ooffice</Program>
      </Menu>

      <Menu icon="folder.png" label="Utilities">
         <Program icon="xcalc.png">xcalc</Program>
         <Program icon="xfontsel.png">xfontsel</Program>
         <Program icon="xmag.png">xmag</Program>
         <Program icon="xprop.png" label="xprop">
            xprop | xmessage -file -
         </Program>
</Menu>

#564014#10
Date:
2010-01-07 05:48:03 UTC
From:
To:
i'm not sure i entirely understand your proposal, but what i do
understand doesn't seem like it is within the scope of xdotool's usual job.

Have you tried writing this with a little script of your own?  You could
do something like this (you'll need the x11-apps package for xwd and
imagemagick for convert):

 #!/bin/sh
 winid=$(xdotool getwindowfocus)
 xwd -id "$winid" | convert - -resize x100 ~/"snapshot_${winid}.png"

This will make a 100-pixel-tall png file named for the id of the window
in your home directory.

displaying that in a panel or something is an exercise left to the reader ;)

But i don't think this operation really belongs inside of xdotool, since
xdotool doesn't do any graphics processing at all.

Does that make sense?  i'm glad xdotool is a useful part of your
lean-and-mean desktop, but i don't think xdotool would stay lean and
mean if it had to start doing graphics processing!

Regards,