gDesklets 0.36 beta (Only for Puppy-3)

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#41 Post by ttuuxxx »

all you had to do is ask :wink:
hows this then?
Attachments
clock7.png
(37.88 KiB) Downloaded 1135 times
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#42 Post by MU »

Great, thanks for these nice skins :)

HowTo use the new Clock-Skins:

save the pictures in:
/root/.gdesklets/Displays/clock-desklet-0.50/gfx

Edit:
/root/.gdesklets/Displays/clock-desklet-0.50/clock.display

From:

Code: Select all

      <enum label="Face:" bind="clockface" help="What the clock looks like.">
        <item label="Plain" value="clock.png"/>
        <item label="gDesklets" value="gdclock.png"/>
        <item label="Royal Air Force" value="rafclock.png"/>
        <item label="GNOME" value="gnomeclock.png"/>
        <item label="OS-X" value="osXclock.png"/>
        <item label="Grandpa's pocket watch" value="pocketwatch.png"/>
      </enum>
to:

Code: Select all

      <enum label="Face:" bind="clockface" help="What the clock looks like.">
        <item label="Plain" value="clock.png"/>
        <item label="gDesklets" value="gdclock.png"/>
        <item label="Royal Air Force" value="rafclock.png"/>
        <item label="GNOME" value="gnomeclock.png"/>
        <item label="OS-X" value="osXclock.png"/>
        <item label="Grandpa's pocket watch" value="pocketwatch.png"/>
        <item label="clock1" value="clock1.png"/>
        <item label="clock2" value="clock2.png"/>
        <item label="clock3" value="clock3.png"/>
        <item label="clock4" value="clock4.png"/>
        <item label="clock5" value="clock5.png"/>
        <item label="clock6" value="clock6.png"/>
        <item label="clock7" value="clock7.png"/>
        <item label="fx" value="fx.png"/>

      </enum>
To change the color of the Clock-hands:
from:

Code: Select all

    HAND_HOUR = "<path d='M-1 8 L-1.5 -20 L1.5 -20 L1 8Z' " \
                "      style='stroke:none;fill:black' " \
                "      transform='rotate(%f)'/>"

    HAND_MINUTE = "<path d='M-1 10 L-1.5 -28 L1.5 -28 L1 10Z' " \
                "      style='stroke:none;fill:black' " \
                "      transform='rotate(%f)'/>"
to:

Code: Select all

    HAND_HOUR = "<path d='M-1 8 L-1.5 -20 L1.5 -20 L1 8Z' " \
                "      style='stroke:none;fill:#666666' " \
                "      transform='rotate(%f)'/>"

    HAND_MINUTE = "<path d='M-1 10 L-1.5 -28 L1.5 -28 L1 10Z' " \
                "      style='stroke:none;fill:#666666' " \
                "      transform='rotate(%f)'/>"
So I replaced "black" with a grey color in HTML-syntax: "#666666".
Save, and right-click the clock - restart desklet.
Right-click again, and you find the skins in the clock's preferences.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

wolfwatcher51
Posts: 149
Joined: Mon 10 Mar 2008, 00:58

#43 Post by wolfwatcher51 »

ttuuxxx,

Thanks for the great faces and the #7 is really cool.

MU,

Thanks for the instructions, I must have learned something, I actually figured it out before I saw them here. I did not try it with the new clock faces, but if you right click on the desklet and select configure desklet, besides selecting the clock face, you can also select the shape and color of the hands.

For the hour and minute hands I selected a blue from someplace on the fury background. For the second hand I selected the color from Tux's feet. The blue in clock6 looks right at home in fury. Very nice.

Thanks, Chris.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#44 Post by ttuuxxx »

wolfwatcher51 wrote:ttuuxxx,

Thanks for the great faces and the #7 is really cool.

MU,

Thanks for the instructions, I must have learned something, I actually figured it out before I saw them here. I did not try it with the new clock faces, but if you right click on the desklet and select configure desklet, besides selecting the clock face, you can also select the shape and color of the hands.

For the hour and minute hands I selected a blue from someplace on the fury background. For the second hand I selected the color from Tux's feet. The blue in clock6 looks right at home in fury. Very nice.

Thanks, Chris.
No Problems :)
maybe post a pic of your desktop using the new clock would be :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

wolfwatcher51
Posts: 149
Joined: Mon 10 Mar 2008, 00:58

#45 Post by wolfwatcher51 »

Hello all,

Never done this before, hope it works.

I usually have the taskbar hidden and have to have it at the top because I have not found any way on the forums to persistently move it up from the bottom enough to clear the taskbar.

When the taskbar is hidden and you open something as text, the top of the text box goes to the top of the desktop. If the taskbar opens, you now cannot get to the +/-/Close buttons because they are under the taskbar. If you have the taskbar not hidden and open something as text it's top only goes up to the bottom of the taskbar.

Anybody know how to make puppy think the taskbar is always not hidden to control the upper most top position for windows?

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#46 Post by Aitch »

Hey Wolfie;

lovely bit of bling, now all you need to do, is to edit it to 640x480,

IMHO, I think, to stop it screwing my forum page up

Perhaps then, post it on a blog on the Community Website, Here

We need some more bling :wink: :lol:

Aitch

wolfwatcher51
Posts: 149
Joined: Mon 10 Mar 2008, 00:58

#47 Post by wolfwatcher51 »

Hello everybody,

Long story short, I had to give up on puppy301 on my laptop. Even with all of Mark's help, it just refused to run xorg. It did not want to do wireless out of the box either. No xorg and incorrect resolution in xvesa was the deal killer for me.

So, I did a frugal install of puppy 4 and gave xorg a whirl, amazingly, it worked!

Now I am back here asking what it is about gdesklets that makes it puppy3 only? I really liked my desktop with gdesklets on my puppy301.

Remembering my noobness, is there a way to use gdesklets in puppy4?

Is there a gdesklets for puppy 4 coming?

Any help/information would be greatly appreciated, Chris.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#48 Post by MU »

I just found out, that the Gnome-libraries are NOT required for Gdesklets!

I made a pet of the gdesklets from gnomeslack.org.
It complained about gnome-vfs, and exited.
But the problem was not gnomevfs, but the "log" function of Python, that is not available.
So it exited, because it could not handle an error-message.
I don't know, what module is needed to correct that, my python knowledge is rather poor.
So I just commented it in /usr/lib/gdesklets/utils/vfs.py (line 29).
Now gdesklets run without gnome-libs!

Just if you want to run a gnome-specific desklet, like the panel mentioned earlieron, you would need them.

I made a PET of my gdesklets, with some pre-installed as shown on the attached screenshot.
So you need ONLY the python-cssm in addition, nothing else :D

http://dotpups.de/puppy3/dotpups/Deskto ... gsb-MU.pet
mirror:
http://puppyfiles.ca/dotpupsde/puppy3/d ... gsb-MU.pet

It is 7 MB, because it includes the pre-installed desklets and localization.

Mark
Attachments
gdesklets.jpg
(58.26 KiB) Downloaded 2240 times
Last edited by MU on Tue 22 Jul 2008, 09:03, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
nutts4life
Posts: 263
Joined: Fri 15 Feb 2008, 09:52
Location: UK

#49 Post by nutts4life »

MU,

Any chance of a puppy 4 version of the gdesklets?

I've asked wow for a big favour:
http://www.murga-linux.com/puppy/viewto ... 0&start=60

It would be so good if we could get a gnome libraries pet for puppy 4. It makes it easy to get gthumb, dia and gdesklets working.

I was hoping wow muight create:
gnome-python.pet (for gdesklets)
libgnome.pet (gnome and gnomeui for gthumb, dia)
gnome-vfs (for all the good stuff)

I guess dbus might have to be seperate as well.

what are your thoughts on this?

n4l

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#50 Post by MU »

In Muppy0083, I added several Gnome-libs and the Panel.
I now saw, that this was an error, because then I was not able to use SFS files, that include other versions of these libs.
So I'd recommend, to use a gnome.sfs, if you want to run Gnome applications.

A Gnome.sfs of reasonable size (85 MB) for Puppy 4 can be found at:
http://www.murga-linux.com/puppy/viewtopic.php?t=27864

Myself, I work on a 600 MB version for Muppy0084, I can release an alpha maybe tonight.

Note, that gdesklets do NOT need Gnome-libs, as mentioned in my last post.

You should be able to run Gdesklets in Puppy4 with:
1.) [python_for_CCSM.pet] by tombh [8.6 MB] (python-2.5; pycairo-1.2.6; pygobject-2.12.3; pygtk-2.10.3 ).
2.) the Gdesklets.pet from my former message.

I did not check that myself yet, so just try it, and please report, if you get errors about missing libraries when typing in a console:
gdesklets

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
nutts4life
Posts: 263
Joined: Fri 15 Feb 2008, 09:52
Location: UK

#51 Post by nutts4life »

MU,

thanks for your swift reply.

I'm really looking to integrate this into my own puplet (which i'm building from unleashed). So the sfs isn't a worry.

I will test gdesklets in puppy 4 this week.

Thanks,

n4l

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#52 Post by MU »

I updated my gdesklets pet and added 200 clocks!.
Changes:
erratic modules quickly fill the logfile with warnings.
Mine was over 4 MB after some hours.
I fixed this by a code-modification:
/usr/lib/gdesklets/utils/__init__.py
Line 47:

Code: Select all

     #MU deactivated his, because log becomes very huge
    # /root/.gdesklets/logs/gdesklets%3A0.0.log
    #print >> sys.stderr, out
The pet also is smaller now, as I removed the desklets from /root, they are now in /usr/lib/gdesklets/Displays.
Before, they were in both places, in different versions.

I also included the 7 clocks from ttuuxx.

http://dotpups.de/puppy3/dotpups/Deskto ... gsb-MU.pet
Mirror:
http://puppyfiles.ca/dotpupsde/puppy3/d ... gsb-MU.pet

And I made a second pet, that is much larger (20 MB extracted).
It includes 200 clocks from the Freeware program clocx (http://www.clocx.net/).

http://dotpups.de/puppy3/dotpups/Deskto ... clocks.pet
Mirror:
http://puppyfiles.ca/dotpupsde/puppy3/d ... clocks.pet


You can see a small preview of those clocks here:
http://noforum.de/pics/gdesklets-0.36-i ... clocks.jpg
http://noforum.de/pics/gdesklets-0.36-i ... locks2.jpg

----------------------------------------------------
To add own clocks, place the .png files in:
/usr/lib/gdesklets/Displays/Clock/gfx/clocks
Then type in a console:
cd /usr/lib/gdesklets/Displays/Clock/gfx/clocks
./_build_code

After some seconds you have a new file clock.display.
Replace the one in cd /usr/lib/gdesklets/Displays/Clock/ with it, and restart the desklets.


Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#53 Post by MU »

when gdesklets start, they suck up a lot of CPU power, what slows down other apps.
You get better results, if you edit /usr/bin/gdesklets to:

Code: Select all

#!/bin/sh
cd /usr/lib/gdesklets/
nice -n 19 ./gdesklets "$@"
I updated my .pets with this modification.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#54 Post by MU »

I made a pet with 4 huge planet clocks.

- Sun (strong corona, light corona, no corona)
- earth
- neptune
- venus

The attached screenshot is scaled down ~50%, and shows the high quality.

Made them from pictures here:
http://www.hschulte.de/Daten/Kosmos/Dat ... nload.html
The earth I found somewhere else.

After installing the dotpup type in a consolewindow:

Code: Select all

cd /usr/lib/gdesklets/Displays/Clock/gfx/clocks
./_build_code
cp -ax clock.display ../../
Then restart the clock, and you can find the new ones in the options.

I also included sonne.xcf, if you want to alter the transparency of the corona in Gimp.

Download (2.6 MB):
http://dotpups.de/puppy3/dotpups/Deskto ... clocks.pet
mirror:
http://puppyfiles.ca/dotpupsde/puppy3/d ... clocks.pet
Mark
Attachments
gdesklets-planet-clocks.jpg
(40.26 KiB) Downloaded 3033 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#55 Post by puppyluvr »

:D Mark,
As you can see, Gdesklets works great on Buddapup Dingo w/Enlightenment.
??? Is there a way to make the Gdesklets background transparent, to show the desktop background behind them????
Attachments
Serenity with Gdesklets.jpg
(83.64 KiB) Downloaded 1591 times
Last edited by puppyluvr on Wed 30 Jul 2008, 00:38, edited 1 time in total.
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#56 Post by magerlab »

Thanks again Mark and Wow!
gdesklets work fine in PuppyRus( wich is a mix between puppy 3 and 4

also i would like to know where can python be used in puppy

is it possible to make a request for compiling chidsplay ( wich i know uses python)- a child game suite

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#57 Post by MU »

puppyluvr

No, you cannot make them transparent.

E17 uses a composite-manager.
It is much faster than "xcompmgr", but basically uses the same technique.
The technique is to use the X composite extension, that allows to render transparent Bitmaps.

Gdesklets are written in Gtk2.
Via google I found out, that older versions of gdesklets had an option to check, that they could render transparent backgrounds using the composite extension.

Unfortunately, this worked only with Gtk2 older than version 2.8.
So it was removed in newer versions of gdesklets.
I tried such an old version myself with xcompmgr, but no luck...
Puppy uses Gtk 2.10 (Puppy3) or 2.12 (Puppy4).
I think, the Puppy 2 versions used 2.8.

Just Puppy 1 used 2.4 if I remember well. That one would work.
But with that one, many new applications will not run, so it is not worth to port that back.

One thing that might work:
get somewhere Gtk 2.4.
Store it in /usr/lib/gtk24
Then run gdesklets .035.3 (older version) like this:

export LD_LIBRARY_PATH=/usr/lib/gtk24:$LD_LIBRARY_PATH
gdesklets

But as gdesklets use Pygtk (Gtk-wrappers for python), here would be another problem.
I don't know, how they would react to such a change.
I fear, also a patched copy of Python had to be used.
So such tricks would not be trivial at all...


I currently use compiz (that uses OpenGL), that plays great with gdesklets.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#58 Post by puppyluvr »

:D Hello Mark,
Boy am I Blind!!! Gdesklets are transparent..To the Jwm desktop. What I mistook for a static background was actually the default Dingo desktop background, behind Enlightenment.
So all I have to do is drop out of Enlightenment into Jwm, set my background, then return to Enlightenment and choose the same background..Viola...Transparency!!!!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#59 Post by MU »

ah very cool.
So enlightenment has a very clever way, to handle this.
Hmmm... yes, it could be, that it detects, that they are not windows, but panels.
So it ignores them.

xcompmgr is supposed to do the same with the option -C , but this did not work for me.
So xcompmgr had to be patched to recognize the desklet-class as panel.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
markofkane
Posts: 310
Joined: Thu 03 Jul 2008, 09:02
Location: Kane, IL USA

#60 Post by markofkane »

I redid my puppy, where can I get python for ccsm.pet? The link is bad.

Post Reply