pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2566 Post by zigbert »

Mick
Could we include the eee support in our temp_cpu widget:

Code: Select all

TEXT
${font pdingobats:size=30}${color4}z${font}${color0}${alignc}CPU Temp ${acpitemp} C  
${font pdingobats:size=30}${color4}v${font}${color0}${alignc}CPU Fan ${if_existing /proc/eee/fan_rpm}${execi 10 /root/.pwidgets/scripts/Temp_cpu}rpm$endif ${acpifan}
I have no ability to test it, but think it should work.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2567 Post by 01micko »

Sigmund

I was looking at that code thinking... 'if /proc/eee/fan_rpm exists then conky will execute both, ah well try it anyway..'

Yep both execute on my eee.

Will look into conky see if we can do 'else'

Cheers

Mick

EDIT: (1 min later)

Code: Select all

TEXT
${font pdingobats:size=30}${color4}z${font}${color0}${alignc}CPU Temp ${acpitemp} C 
${font pdingobats:size=30}${color4}v${font}${color0}${alignc}CPU Fan ${if_existing /proc/eee/fan_rpm}${execi 10 /root/.pwidgets/scripts/fan}rpm$else${acpifan}$endif
That works on the eee, see if it works on something else.. brb

EDIT2: (3 min later) Yep, works on my main box... we can integrate the widget, but I would change the name of the script to eee-fan or something.

Cheers
Puppy Linux Blog - contact me for access

User avatar
omskates
Posts: 252
Joined: Thu 03 Sep 2009, 06:50
Location: TriCities, WA

#2568 Post by omskates »

zigbert wrote: It sounds like you're NOT a newbie.
Feels like it most of the time :roll:
zigbert wrote: Could you please look inside /root/.pwidgets/configs/battery, and remove the 'if_exist /sys/class/power_supply/BAT0' code.
Removed this line from the pwidgets battery config, no joy. Removed all other instances of this line including BAT1, BAT2, etc. No joy

Original config here:
#this is a Pwidgets config file
#the actual building of the graphics is defined in bottom of this file, - after 'TEXT'.
#Battery monitor

#### PWIDGETS #####
HEIGHT=80
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=40


#### CONKY ####
#COLORS --- 0:headings 1:base-info 2:extra-info 3:markers 5:green 6:red
#Colors are defined in theme-files, - NOT here.
color0 A2914E
color1 666666
color2 bbbbbb
color3 ffab00
color5 499D3A
color6 red

background yes
own_window yes
own_window_type roxdesktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_colour hotpink
double_buffer yes
total_run_times 0
update_interval 10
minimum_size 140 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 2
border_margin 4
border_width 1
default_color white
default_shade_color 333333
default_outline_color red
no_buffers yes
uppercase no
use_spacer none
#font fixed
use_xft yes
xftfont monofonto:size=16

TEXT
${color2}${font Pdingobats:bold:size=20}4${font DejaVu:bold:size=13}${if_existing /sys/class/power_supply/BAT0}$alignc${color0}Battery$endif${if_existing /sys/class/power_supply/BAT1}$alignc${color0}Battery$endif${if_existing /sys/class/power_supply/BAT2}$alignc${color0}Battery$endif
${font}${color1}${if_existing /sys/class/power_supply/BAT0}${battery BAT0}${color1}${if_existing /sys/class/power_supply/BAT1}${battery BAT1}${if_existing /sys/class/power_supply/BAT2}${battery BAT2}$endif
${if_empty ${execi 10 /root/.pwidgets/scripts/Battery}}${color5}${else}${color6}${endif}${if_existing /sys/class/power_supply/BAT0}${battery_bar 10 BAT0}$endif${if_existing /sys/class/power_supply/BAT1}${battery_bar 10 BAT1}$endif${if_existing /sys/class/power_supply/BAT2}${battery_bar 10 BAT2}$endif

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2569 Post by 01micko »

Ok then,

Here is the new Temp_cpu widget with Eee-pc compatibility

(Renamed script to Temp_cpu :wink: )
Attachments
Temp_cpu.pet
(1.03 KiB) Downloaded 400 times
Puppy Linux Blog - contact me for access

henryfranz2005
Posts: 33
Joined: Sat 26 Sep 2009, 16:23
Location: Philippines
Contact:

#2570 Post by henryfranz2005 »

woah unbelievable it runs on my machine! :)) *old machine (very) with 256 ram and p3 processor + nvidia gf2 mx

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2571 Post by 01micko »

henryfranz2005.........Hehe... doesn't surprise me :D I had it running on a 486 with 32 MiB of RAM :shock: ........ 8)
Puppy Linux Blog - contact me for access

henryfranz2005
Posts: 33
Joined: Sat 26 Sep 2009, 16:23
Location: Philippines
Contact:

#2572 Post by henryfranz2005 »

01micko wrote:henryfranz2005.........Hehe... doesn't surprise me :D I had it running on a 486 with 32 MiB of RAM :shock: ........ 8)
wow! I wished I did not put my ancient lenovo in the trash. Aw. Might have done it with puppy linux. :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2573 Post by 01micko »

Yes just what we need, another new widget! Yes, but some of you will need this one...

Reminder Widget

Ever forgotten your Mum's birthday? Or your wedding anniversary? Or a particular day of importance? Well now there is no excuse.

This widget counts down the days to your particular event. There are presets for Birthday and Anniversary and also an "Other" field for anything else.

It is very easy to use and even comes with a help file if you get stuck.

Enjoy.

EDIT: Updated to V 0.1.1. Had a minor error with some missing " ' " in func file.

EDIT: Oct 17 2009, script bug :oops: pet removed, See newer post
Attachments
reminder1.png
(23.86 KiB) Downloaded 994 times
reminder2.png
(27.33 KiB) Downloaded 1018 times
reminder3.png
(26.46 KiB) Downloaded 1004 times
reminder-gui.jpg
Sorry, no pixmap
(29.73 KiB) Downloaded 999 times
Last edited by 01micko on Fri 16 Oct 2009, 21:40, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#2574 Post by battleshooter »

Hilarious Micko!

That's a great one! But I won't be needing it as I never forget :P
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2575 Post by zigbert »

Wonderful Mick

Since you are in the steam, :D could we ask for a database that kept all birthdays during the year.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2576 Post by 01micko »

:oops:
Last edited by 01micko on Sat 19 Dec 2009, 02:13, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2577 Post by 01micko »

Latest Reminder widget

-added database of Birthdays (only)
-gave a facelift, changed 'Other' to 'Event"
-added tooltips


Cheers
Attachments
reminder.jpg
(31.88 KiB) Downloaded 900 times
Last edited by 01micko on Sat 19 Dec 2009, 02:12, edited 1 time in total.
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2578 Post by zigbert »

Mick
This is starting to be a great widget. Possibly the most useful of them all.

Test-report
- When I add the first birthday tomorrow, it shows up just fine. My second birthday is the day after tomorrow, and now this is the one showing up. I find it more logical to always show the next reminder.

- It would have been great if widget shows the next 3 birthdays. It could be 3 birthdays on the 3 next days. Then I didn't get the notice until the day before, and I had a lack of time to buy a gift. :)

- It doesn't work with more than 1 birthday each day. What about using scrolling, to show endless many reminders each day.


You are really getting the the grip of app-building. 8)
Sigmund

User avatar
eugeniak1
Posts: 21
Joined: Mon 27 Aug 2007, 09:31
Location: Germany

pet to rpm

#2579 Post by eugeniak1 »

Hi, people.
thank you for you work with pwidgets - it is splendid! So splendid i wont to have it not only by puppy but by my opensuse too.I have puppy since 2.14 but am not a programmer and dont know how to do it. i have by suse screenlets, but pwidgets are better.
Is it possible to do something like UNPET or PET2RPM? Sorry for silly question, but i wish i have pwidgets for suse... :oops:

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2580 Post by zigbert »

eugeniak1
if you rename 'pwidgets-2.1.0.pet' to 'pwidgets-2.1.0.pet.tar.gz' you can simply unzip it.

Conky in the Pwidgets package is patched, and has got an extra option 'own_window_type roxdesktop'. This to work better with Rox. Since Suse don't use rox as its pinboard, you need to change this setting in all Pwidgets config files. - $HOME/.pwidgets/configs/... The 'own_window_type' options has normally 3 possible values:

own_window_type normal
own_window_type desktop
own_window_type override

I don't know which will suit suse best.


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2581 Post by 01micko »

Sigmund

I had a feeling that that would be the next challenge! I was going to add support for multiple lines but the scrolling idea is cool, multiple lines is no good if you want multiple widgets...

I've been trying to come up with a solution to the weather dropout too, getting closer I think.

eugeniak1

Just use Puppy :D . Seriously though it would not be too hard to do, I think every path to /root uses $HOME (/home in suse?) so it would port to other distros with little fuss... just rename the pwidgets-X.X.pet to pwidgets-X.X.pet.tar.gz and expand... everything is nicely in the tree and you can just merge with your system.

Cheers

Yes, what Sigmund said :lol:
Puppy Linux Blog - contact me for access

User avatar
eugeniak1
Posts: 21
Joined: Mon 27 Aug 2007, 09:31
Location: Germany

to 01micko

#2582 Post by eugeniak1 »

thank you, i will try :roll:

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2583 Post by zigbert »

01micko wrote:challenge
Mmmmm. I like that word.

User avatar
eugeniak1
Posts: 21
Joined: Mon 27 Aug 2007, 09:31
Location: Germany

#2584 Post by eugeniak1 »

to 01micko:
I wish I can use only puppy, but I miss something. There are problems with installing from source f.e. I tried to install vbox but became from puppy a message, that I have any kernel headers and make too (but I have make!). With compiz is too much works and so on... By suse is it stll easier. I know that puppy should be thin, but it can be something like another zdrv file with kernel headers and got knows what els.
There are many usefull files from puppy peoples, but they are destroied in net and one should search too long they to find. There should be a repository for such files...
And I miss puppy64. I know there is not so many difference and ind speed too, but it is like one have ferrary and feed it with cheep gas instead super..
But I love puppy very much.

User avatar
eugeniak1
Posts: 21
Joined: Mon 27 Aug 2007, 09:31
Location: Germany

#2585 Post by eugeniak1 »

to Zigbert and 01micko:
I tried to install pwidgets on suse and became a messege:
16:29 eugeniak1:~ > pwidgets
/usr/local/pwidgets/pwidgets: line 16: type: gtkdialog3: not found
/usr/local/pwidgets/pwidgets: line 373: gtkdialog: command not found
xwininfo: error: No window with name Pwidgets exists!
xwininfo: error: No window with name Pwidgets exists!
killed

:?: what should I do?

Post Reply