LWN.net Logo

[Kde-announce-apps] WMIface 0.1

From:  Lubos Lunak <l.lunak-AT-kde.org>
To:  kde-announce-apps <kde-announce-apps-AT-kde.org>
Subject:  [Kde-announce-apps] WMIface 0.1
Date:  Tue, 6 Jun 2006 20:21:56 +0200

Name: WMIface
Version: 0.1
Type: System Tool
Depend: KDE 3.x
License: X11
Homepage: http://ktown.kde.org/~seli/wmiface/
More Info:
http://www.kde-apps.org/content/show.php?content=40425

Description:
 This KDED module allows DCOP scripting of the
running window manager (usually KWin, but a
separate module allows scripting any
EWMH-compatible window manager that's running in
KDE).

See README for details.

Three examples: 

Launch Konqueror showing http://kde.org, close it
after 10 seconds

konqueror http://dot.kde.org --name dotkonqueror &
sleep 10
window=$(dcop kded wmiface findNormalWindows ""
"dotkonqueror Konqueror" "" "" 0 false)
dcop kded wmiface closeWindow $window

Cycle virtual desktops slowly

while true; do
    sleep 10
    desktop=$(dcop kded wmiface currentDesktop)
    total=$(dcop kded wmiface numberOfDesktops)
    if test $desktop = $total; then
        dcop kded wmiface setCurrentDesktop 1
    else
        dcop kded wmiface setCurrentDesktop $((
desktop + 1 ))
    fi
done

Minimize all KWrite windows

dcop kded wmiface findNormalWindows "" " Kwrite"
"" "" 0 false | \
    while read ln; do
        dcop kded wmiface minimize $ln
    done




_______________________________________________
Kde-announce-apps mailing list
Kde-announce-apps@kde.org
https://mail.kde.org/mailman/listinfo/kde-announce-apps


(Log in to post comments)

Copyright © 2006, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds