View Full Version : Adding screenlets to the F9 thing.
kazamx
August 13th, 2007, 10:39 PM
Can I start by saying sorry. I have tried to work this out and I know its going to be something really simple, but after 2 hours I just can't break this one.
How do I add screenlets to the F9 dashboard thing?
I have latest version of Compiz-Fusion running on the latest build of Ubuntu Gutsy. I have enabled widget layer in CCSM. I have downloaded 3 packages from Synaptic with the word screenlet in the title (thats all there was)
Compiz Fusion is working fine (when I press F9 the screen fades a bit). I can start screenlets by going Applications - Accessories - Screenlets. They all open fine on my desktop.
I read I needed to change them to widgets. I opened the clock widget. I right click go to window and try to change it to widget, but after I click it doesn't change. I also can't change the size or theme.
If I select properties I can change theme size etc in there. I tried selecting make widget in there, but nothing changes. When I right click the widget again under window it still says keep above, but in properties it says widget.
Can anyone help?
RYX
August 13th, 2007, 11:15 PM
I think you need to initially hide/show the widget-layer after you have set a Screenlet to act as widget. It could be that you either have an older version of the widget-plugin or the latest version doesn't automatically unmap a window when it enters widget-state ...
:)
plun
August 13th, 2007, 11:52 PM
Well... I manage to get it to work...:p
Just a class=Screenlet.py in Widget Windows
I read this thread: xprop command
http://forum.compiz-fusion.org/showthread.php?t=1866&highlight=class
And this about the new widget (last page for latest widget)
http://forum.compiz-fusion.org/showthread.php?t=1154
:)
kazamx
August 14th, 2007, 02:33 PM
Thanks for that :-)
I typed class=Screenlet.py in Widget Windows, and now it works perfectly :-)
Now I just need to work out how to add new ones :-)
RYX
August 14th, 2007, 02:43 PM
This is the old way of doing it, the newer widget-plugin allows using a match "widget=1" within any other plugin's match-options ... (much more simple and flexible)
:)
maniac
August 15th, 2007, 07:44 AM
This is the old way of doing it, the newer widget-plugin allows using a match "widget=1" within any other plugin's match-options ... (much more simple and flexible)
:)
Umm, not exactly. ;)
The new widget plugin has a match so you can set windows to be widgets even if they don't have the _COMPIZ_WIDGET property set. I guess that's the match they're talking about.
If a window is correctly recognized as widget, you're perfectly right: It's enough to use the "widget=1" match string in other plugins to reference it.
Currently, the property change isn't correctly picked up by the widget plugin; I'll have a look into that.
EDIT: This is fixed now. RYX, please set the property type to XA_CARDINAL, because the information attached to it is not relly a window ;)
However, menus aren't correctly recognized yet. Stay tuned ;)
Another EDIT: RYX, can you change the screenlets so the menus and dialogs are children / inferiors of the actual widget (the window that was the property set)? I can't currently recognize that the menus and dialogs belong to the widgets.
Another EDIT (I feel a bit stupid about that many edits...): Nevermind that. Screenlet's menus and dialogs share a client leader window. I fixed it in widget so that any windows that have a common client leader with a widget automatically also are placed on the widget layer.
plun
August 15th, 2007, 10:05 AM
I just tested widget=1 and it works for all "official" screenlets.
But not for all.....
maniac
August 15th, 2007, 10:51 AM
I just tested widget=1 and it works for all "official" screenlets.
But not for all.....
Which ones don't work? Maybe you just to enable the widget property (right-click -> Window -> Widget)?
plun
August 15th, 2007, 11:03 AM
Which ones don't work? Maybe you just to enable the widget property (right-click -> Window -> Widget)?
Nope... for example Slideshow doesnt work.... I have not checked all.
Probably easy to fix correct behavior.
I can also not figure out how to just turn widgets On/Off and not
disable other windows on desktop.
Thanks !
OT:
Its also a real "mess" now with forum urls to the old compiz forum :(,
Screenlets from Sorceres site and other places...:rolleyes:
maniac
August 15th, 2007, 11:23 AM
Nope... for example Slideshow doesnt work.... I have not checked all.
Probably easy to fix correct behavior.
Yes - but you need to fix it ;)
Click the image border (not the image itself), and in the Screenlet menu popping up click Window -> Widget.
I just tested it and it works fine here (be sure to update the widget plugin before).
I can also not figure out how to just turn widgets On/Off and not
disable other windows on desktop.
Can you explain that a bit more? I don't yet get what you mean.
plun
August 15th, 2007, 12:29 PM
Yes - but you need to fix it ;)
Click the image border (not the image itself), and in the Screenlet menu popping up click Window -> Widget.
Can you explain that a bit more? I don't yet get what you mean.
Well.... watch this movie...
http://www.youtube.com/watch?v=nkFh_T1moYY
If I click on a window when the widget plugin is active, all widgets dissipear.
I just want to toggle widgets On/Off with F9 with no more behaviors.
(Slideshow is in widget mode)
Thanks !
maniac
August 15th, 2007, 12:30 PM
Well.... watch this movie...
http://www.youtube.com/watch?v=nkFh_T1moYY
If I click on a window when the widget plugin is active, all widgets dissipear.
I just want to toggle widgets On/Off with F9 with no more behaviors.
(Slideshow is in widget mode)
Thanks !
Ah, ok, I get what you mean. I will make that behaviour optional.
plun
August 15th, 2007, 12:34 PM
Ah, ok, I get what you mean. I will make that behaviour optional.
Thanks..! :)
EDIT
Slideshow solved... I manually added a "True" value for widgets in the ini file.
is_widget=True
maniac
August 15th, 2007, 01:18 PM
Thanks..! :)
Done :)
EDIT
Slideshow solved... I manually added a "True" value for widgets in the ini file.
is_widget=True
It's a bit hard to get the menu for Slideshow, but pressing the frame should work :)
plun
August 15th, 2007, 01:40 PM
Done :)
It's a bit hard to get the menu for Slideshow, but pressing the frame should work :)
Well done :D
"End widget mode on click" unchecked and "Brightness" to 100%
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
Thanks !
PS The Slideshow screenlets was a "stubbard one".....:D DS
jdeslip
August 19th, 2007, 02:59 AM
I am using screenlets 0.9 on fedora, and the only way I get the widgetlayer to work is by adding the line class=Screenlets.py to the compiz-config manager. Even on the official plugins right clicking them and setting them to widget does nothing for me - just like the original poster said. I use Fedora and CF 0.52, could this be a fedora vs ubuntu issue?
jdeslip
August 24th, 2007, 01:12 AM
Is anyone able to get their screenlets to go to the widget layer by simply right clicking on them and selecting widget? - i.e. without wrting class=Screenlet.py in to the compiz manager?
Laughing Man
August 24th, 2007, 02:52 AM
I recently updated my Compiz Fusion (some things are broken with the CCSM due to changes). But anyway it added the new widget plugin (which also happened to delete my old config so it doesn't exist). But when I tried ticking the widget option in the screenlets. To my surprise it works. :)
jdeslip
August 24th, 2007, 02:52 AM
What version did you up to? 0.5.2 or 0.5.3?
Laughing Man
August 24th, 2007, 04:13 AM
0.5.2, it's Trevino's repos.
jdeslip
August 24th, 2007, 05:24 AM
Hmm, I am using fedora. I am using the 0.5.2 release of compiz/compiz-fusion though. And the latest screenlets package. Wonder why it doesn't work. Perhaps screenlets does not work the same on fedora?
maniac
August 24th, 2007, 08:07 AM
Hmm, I am using fedora. I am using the 0.5.2 release of compiz/compiz-fusion though. And the latest screenlets package. Wonder why it doesn't work. Perhaps screenlets does not work the same on fedora?
No, it's a bug in the 0.5.2 release version of the widget plugin. Trevinho packages git versions, so it's fixed there.
It will be fixed in the next released version as well, of course ;)
jdeslip
August 24th, 2007, 08:38 AM
Ah ok, thanks for the information!
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.