Re: [wmii] Popups in all views: is it possible ?

From: Francis GUDIN <fgudin_AT_cri74.org>
Date: Fri, 15 Sep 2006 12:09:53 +0200

Hello,

On Thu, Sep 14, 2006 at 11:34:00AM -0400, Sean Russell wrote:
> You can force the pop-up to your current view with this bit of code:
>
> POPUPS="Ekiga|kopete"
>
> wmiir read /event 2>/dev/null |
> while read event
> do
> set -f
> set -- $event
> set +f
> type="$1"; shift
> parms="$@"
> case "$type" in
> CreateClient)
> target_view=`wmiir read /ctl | awk '/^view/ {print $2}'`
> if [[ `wmiir read /client/${params}/props | egrep -q "${POPUPS}"` == 0 ]]
> then
> echo -n $target_view | wmiir write /client/${parms}/tags
> fi
> ;;
> esac
> done
>
> Just stick the CreateClient) ... ;; block in your wmiirc, and define the POPUPS
> variable at the top.
>
> Note: this code has not been tested; you may have to tweak it.

Thanks you all for your suggestions, first.

But I'm still struggling with it:
First issue: Ekiga tries to be smart and sets the popup's title to
reflect the caller's identity. Hence, a varying label that helps...
I thought at first I would unconditionally tag every new window with the
current view's tag. Annoying, but at least a temporary workaround for
the calls I miss :)

*THOUGH* a second issue raised: when the popup gets created, I see no
"CreateClient" event. I added a "catch-all" clause to watch other
events, and all I get is a "ClientFocus <number>":
<snip>
        *)
                echo "EVENT: $event" >> $LOGFILE;;
        esac
done &
</snip>

How come that event isn't seen by wmii ? Or is it filtered out and not
reported through /event ?

Francis

Received on Fri Sep 15 2006 - 12:09:30 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:13:49 UTC