PDA

View Full Version : screenlets 0.9 + Showdesktop plugin


coz
August 16th, 2007, 07:11 PM
Hello,
curious now that things have changed in screenlets 0.9, how would I exclude them from being moved when using the show desktop plugin in fusion?
Do each of these now have to have their own string in the plugin like & !(name=clock.py ) etc etc?
If not i would appreciate an working example of what to put into the show desktop plugin in order to prevent screenlets from being moved by this plugin.
Thanks

coz

plun
August 16th, 2007, 07:26 PM
Hi

"Show desktop" is no probs with latest Widget Layer

plun@dunder:~$ git-clone git://anongit.opencompositing.org/fusion/plugins/widget
Initialized empty Git repository in /home/plun/widget/.git/
remote: Generating pack...
remote: Done counting 54 objects.
remote: Deltifying 54 objects.
remote: 100% (54/54) done
Indexing 54 objects...
remote: Total 54 (delta 28), reused 0 (delta 0)
100% (54/54) done
Resolving 28 deltas...
100% (28/28) done

plun@dunder:~$ cd widget

plun@dunder:~/widget$ make
convert : widget.xml.in -> build/widget.xml
bcop'ing : build/widget.xml -> build/widget_options.h
bcop'ing : build/widget.xml -> build/widget_options.c
schema : build/widget.xml -> build/compiz-widget.schema
compiling : widget.c -> build/widget.lo
compiling : build/widget_options.c -> build/widget_options.lo
linking : build/libwidget.la


plun@dunder:~/widget$ sudo make install
install : /home/plun/.compiz/plugins/libwidget.so
install : /home/plun/.compiz/metadata/widget.xml
install : build/compiz-widget.schema

plun@dunder:~/widget$ fusion-icon
* Using the GTK Interface
Backend : gconf
Integration : true
Profile : default

widget=1

"End widget mode on click" unchecked and "Brightness" to 100%

F9 works for Screenlets and Show desktop works....;)

coz
August 17th, 2007, 04:27 AM
hello plun,
Well guy, either I have absolutely no idea what you mean or you dont know what I mean :)
i have no problems with screenlets or the widget layer.
My problem is i want to "exclude" screenlets from the "showdekstop" funtions.
In other words .. when I use show desktop i want to see the screenlets there not hide them.
So if I misunderstood you, I apologize and ask that you explain that a little differenly.
thanks and please understand I mean no offense to you with this at all :)
coz

maniac
August 17th, 2007, 07:25 AM
hello plun,
Well guy, either I have absolutely no idea what you mean or you dont know what I mean :)
i have no problems with screenlets or the widget layer.
My problem is i want to "exclude" screenlets from the "showdekstop" funtions.
In other words .. when I use show desktop i want to see the screenlets there not hide them.
So if I misunderstood you, I apologize and ask that you explain that a little differenly.
thanks and please understand I mean no offense to you with this at all :)
coz
Try unchecking "Hide skip taskbar windows" in the core options. This should give the desired behaviour :)
Screenlets aren't touched by the showdesktop plugin (as they have the "skip taskbar" and "skip pager" hints set), they are hidden by core.

What plun meant was that the widget plugin provides a match handler that you can use to reference recognized widgets (e.g. "type=normal & widget=1")

plun
August 17th, 2007, 07:59 AM
hello plun,
So if I misunderstood you, I apologize and ask that you explain that a little differenly.
thanks and please understand I mean no offense to you with this at all :)
coz

Well, thats OK in this labyrinth with functions...:D I dont take it as offense.

The widget layer takes care of my screenlets, every screenlet is defined
as "treat as widget" (right click properties) AND widget=1 as "Behavior", "Widget windows"

"End widget mode on click" unchecked and "Brightness" to 100% if
the Widget layer plugin is active.

Show desktop then works without "touching" my Screenlets.

F9 (the widget layer) turns on/off all screenlets

"Hide skip taskbar windows" can be both unchecked or checked.

:)

maniac
August 17th, 2007, 09:35 AM
The widget layer takes care of my screenlets, every screenlet is defined
as "treat as widget" (right click properties) AND widget=1 as "Behavior", "Widget windows"

Well, that's wrong. The widget plugin _provides_ the widget=1 match to other plugins; this match shouldn't be used in widget itself because it has no effect.
The widget plugin will detect the X property (set by right click -> Window -> Widget) automatically. The "widget=1" match is targeted at other plugins, such as animation (to get special animations for widgets).

The "widget=1" match will be true for every widget that has the _COMPIZ_WIDGET hint set, and additionally for every window that matches the match at Behaviour -> Widget windows. So you see it makes no sense to include "widget=1" in the "Widget windows" match, as it will break this match (because it will lead to including the match result in the match evaluation itself, leading to the match evaluation always returning false).

Hope this explanation makes sense :)

plun
August 17th, 2007, 10:00 AM
Well, that's wrong. The widget plugin _provides_ the widget=1 match to other plugins; this match shouldn't be used in widget itself because it has no effect.

Hope this explanation makes sense :)

Yup...."Alles klar" ;) I just tested this without "widget=1"..... :p

The new Widget layer plugin works in "automagic" mode for Screenlets.

("End widget mode on click" > unchecked and Brightness to 100%.)

and "show desktop" also works....:cool:

coz
August 17th, 2007, 03:12 PM
OK! Thanks to both Maniac and plun. I understand .
Please know I meant no offense by my post at all :)
Disabling Hide Skip Taskbar Windows indeed stopped the desktop screenlets from being affected by the show desktop plugin.
Very interesting ... I didnt even make the associtation with that option and something like screenlets.. ...so thanks maniac and again plun thanks :)
Now I have a new piece of info for support !! :)
Thanks again guys it was really irritating to use screenlets the other way.
coz

plun
August 17th, 2007, 04:07 PM
OK! Thanks to both Maniac and plun. I understand .
Thanks again guys it was really irritating to use screenlets the other way.
coz

Well, indeed confusing :D....It is this plugin I am using....:p

http://gitweb.opencompositing.org/?p=fusion/plugins/widget;a=summary

I am also running everything from GIT with a script and I dont know when the new Widget layer hits package repos.

:)

vadi
August 17th, 2007, 06:45 PM
Try unchecking "Hide skip taskbar windows" in the core options. This should give the desired behaviour :)
Screenlets aren't touched by the showdesktop plugin (as they have the "skip taskbar" and "skip pager" hints set), they are hidden by core.

What plun meant was that the widget plugin provides a match handler that you can use to reference recognized widgets (e.g. "type=normal & widget=1")

Where can I find that option? I'm on Ubuntu Fiesty.

Edit: Nevermind, found it in CCSM under general options. yay.

vstevee
August 18th, 2007, 05:47 PM
Hello to everyone,well this is my first post,since I'm pretty new on this.I am on ubuntu feisty 7.04 and i have installed compiz 0.5.2,and everything is working perfect.The only problem i have is, when i try to install the Widget Layer,i get this error:

vlada@vlada-laptop:~$ git-clone git://anongit.opencompositing.org/fusion/plugins/widget
Initialized empty Git repository in /home/vlada/widget/.git/
remote: Generating pack...
remote: Done counting 57 objects.
remote: Deltifying 57 objects.
remote: 100% (57/57) done
Indexing 57 objects...
remote: Total 57 (delta 30), reused 0 (delta 0)
100% (57/57) done
Resolving 30 deltas...
100% (30/30) done

vlada@vlada-laptop:~$ cd /home/vlada/widget
vlada@vlada-laptop:~/widget$ make
convert : widget.xml.in -> build/widget.xml
bcop'ing : build/widget.xml -> build/widget_options.h/bin/sh: --header=build/widget_options.h: not found
make: *** [build/widget_options.h] Error 127


Any suggestions?

plun
August 18th, 2007, 06:47 PM
Any suggestions?

Probably missing building libs

sudo apt-get install git-core automake build-essential intltool libtool python-pyrex python2.5-dev

sudo apt-get build-dep compiz

Please take a look at Fydas excellent building thread for more info

http://forum.compiz-fusion.org/showthread.php?t=1985

:)

vstevee
August 18th, 2007, 07:47 PM
Probably missing building libs
:)

no,i have installed building libs. btw i've use this tread for installation :
https://help.ubuntu.com/community/CompositeManager/CompizFusion

plun
August 18th, 2007, 08:08 PM
no,i have installed building libs. btw i've use this tread for installation :
https://help.ubuntu.com/community/CompositeManager/CompizFusion

That howto only installs packages... no dev tools and dev libs.

Did you install these ?


sudo apt-get install git-core automake build-essential intltool libtool python-pyrex python2.5-dev

sudo apt-get build-dep compiz

widget_options.h > h is headers which are included in dev libs.

:)

vstevee
August 18th, 2007, 08:19 PM
Did you install these ?


sudo apt-get install git-core automake build-essential intltool libtool python-pyrex python2.5-dev

sudo apt-get build-dep compiz


:)

Yes! Whats next?:(

plun
August 18th, 2007, 08:25 PM
Yes! Whats next?:(

Packages.....:rolleyes::(

I cannot say exactly what is needed for the widget plugin.

All packages for Feisty.

sudo apt-get install fakeroot automake1.9 x11proto-gl-dev subversion libtool librsvg2-dev libglitz-glx1-dev libglitz1-dev libneon25-dev intltool libxdamage-dev libglu1-mesa libglu1-mesa-dev libglu1-xorg-dev libxfixes-dev xlibs-dev icecc iceconf libxcomposite1 libxcomposite-dev libstartup-notification0-dev libwnck-dev fort77 gawk g77 build-essential cvs libpango1.0-dev libgtk2.0-dev libgconf2-dev libglitz-glx-dev librsvg2-dev checkinstall libglade2-dev libmetacity-dev libgnome-window-settings-dev python-pyrex python-gnome2 python-gnome2-dev python-dev libgnome-desktop-dev python-gtk2 python-gtk2 python-gtk2-dev libqt3-mt-dev libdbus-glib-1-dev libxslt1-dev

:)

vstevee
August 18th, 2007, 08:34 PM
All packages for Feisty.

sudo apt-get install fakeroot automake1.9 x11proto-gl-dev subversion libtool librsvg2-dev libglitz-glx1-dev libglitz1-dev libneon25-dev intltool libxdamage-dev libglu1-mesa libglu1-mesa-dev libglu1-xorg-dev libxfixes-dev xlibs-dev icecc iceconf libxcomposite1 libxcomposite-dev libstartup-notification0-dev libwnck-dev fort77 gawk g77 build-essential cvs libpango1.0-dev libgtk2.0-dev libgconf2-dev libglitz-glx-dev librsvg2-dev checkinstall libglade2-dev libmetacity-dev libgnome-window-settings-dev python-pyrex python-gnome2 python-gnome2-dev python-dev libgnome-desktop-dev python-gtk2 python-gtk2 python-gtk2-dev libqt3-mt-dev libdbus-glib-1-dev libxslt1-dev

:)

Well, it looks i already have them.:confused:



Reading package lists... Done
Building dependency tree
Reading state information... Done
fakeroot is already the newest version.
automake1.9 is already the newest version.
x11proto-gl-dev is already the newest version.
subversion is already the newest version.
libtool is already the newest version.
librsvg2-dev is already the newest version.
libglitz-glx1-dev is already the newest version.
libglitz1-dev is already the newest version.
libneon25-dev is already the newest version.
intltool is already the newest version.
libxdamage-dev is already the newest version.
libglu1-mesa is already the newest version.
libglu1-mesa-dev is already the newest version.
libglu1-xorg-dev is already the newest version.
libxfixes-dev is already the newest version.
xlibs-dev is already the newest version.
icecc is already the newest version.
iceconf is already the newest version.
libxcomposite1 is already the newest version.
libxcomposite-dev is already the newest version.
libstartup-notification0-dev is already the newest version.
libwnck-dev is already the newest version.
fort77 is already the newest version.
gawk is already the newest version.
g77 is already the newest version.
build-essential is already the newest version.
cvs is already the newest version.
libpango1.0-dev is already the newest version.
libgtk2.0-dev is already the newest version.
libgconf2-dev is already the newest version.
Note, selecting libglitz-glx1-dev instead of libglitz-glx-dev
libglitz-glx1-dev is already the newest version.
librsvg2-dev is already the newest version.
checkinstall is already the newest version.
libglade2-dev is already the newest version.
libglade2-dev set to manual installed.
libmetacity-dev is already the newest version.
libgnome-window-settings-dev is already the newest version.
python-pyrex is already the newest version.
python-gnome2 is already the newest version.
python-gnome2-dev is already the newest version.
python-dev is already the newest version.
libgnome-desktop-dev is already the newest version.
python-gtk2 is already the newest version.
python-gtk2 is already the newest version.
python-gtk2-dev is already the newest version.
libqt3-mt-dev is already the newest version.
libdbus-glib-1-dev is already the newest version.
libxslt1-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove