Page 152 of 162

Posted: Sun 22 Jan 2012, 16:18
by akash_rawal
I have made slight modifications in Pwidgets code to enable widget support using gtkdialog-desklet (can be downloaded from my last post).

I modified /usr/local/pwidgets/func at around line 61 and 238. Also /usr/sbin/fixwidgets at the beginning. I have attached the modified files.

So Search_files widget had to be modified. I am attaching it here.

Also I am attaching RamGTK widget originally created by 01micko.

Posted: Mon 23 Jan 2012, 16:33
by zigbert
akash_rawal
Thank you !!!

Will have to look at it when I come home from holiday (about a week).

I also see that 01micko has made a weather widget. I wonder if we need Pwidgets at all. If gtkdialog_widgets can store its placement (it is sure possible, I just haven't tested), I think it could replace conky completetly. If so, I see no need to continue Pwidgets ????
- To be discussed. - Please add your opinion.


Sigmund

Posted: Mon 23 Jan 2012, 18:06
by akash_rawal
zigbert wrote: I wonder if we need Pwidgets at all. If gtkdialog_widgets can store its placement (it is sure possible, I just haven't tested), I think it could replace conky completetly. If so, I see no need to continue Pwidgets ????
Is conky the heart of pwidgets? I saw gtkdialog-desklet merely as an alternative widget rendering engine. I am not planning to add anything like main GUI.

If you do wish to continue Pwidgets here are a few points to be noted:
  • gtkdialog-desklet automatically refreshes its background whenever wallpaper is changed, so there's no need to restart gtkdialog-desklet widgets on changing wallpaper or sidebar.
  • The same thing could be done for themes but this is not automatic: the widget needs to call refresh_gtktheme function to refresh GTK theme.
  • gtkdialog-desklet supports option --extra-tags to append options to <window> tags. The widget config file could provide access to that option.
I will be very busy now on, and may come back only when I get a break (maybe in March). So plenty of time to decide.

Posted: Thu 09 Feb 2012, 15:00
by PenguinPupLin
For my Slacko 531, Pwidgets 2.4.0 displays it as Slacko Puppy 5....3

Is there an easy way to edit it to Slacko Puppy 5.3.1 ?

Likewise for Racy Puppy 5.2.2 shown as Puppy Linux 5....2 -- would be good if I can edit it to Racy Puppy 5.2.2

Edit: After rebooting, it's shown as Racy Puppy 5...2 -- well still two digits.

Posted: Thu 01 Mar 2012, 03:28
by darkstrike
Hi guys - sorry for the stupid question, but I guess I am either blind or incredibly dumb :P

I just installed Pwidgets 2.4.0 on my Lucid 5.2.8 install and set up the weather widget for my town. As I'm Canadian, I switched everything to metric and the temp is now in celcius, however, there is an accented "A" in between the temp and the degree symbol. I've read that I need to enable UTF-8 ( http://208.109.22.214/puppy/viewtopic.p ... 7ac#587325 )

However...I have no idea where this "Startup" dialog is, so I guess I am crazy, haha! Does somebody mind pointing me in the right direction? :P

Posted: Thu 01 Mar 2012, 03:29
by darkstrike
EDIT - Sorry for the double-post...my internet's acting up at the moment and it posted my message twice and I can't delete this one!

Posted: Thu 01 Mar 2012, 09:21
by zigbert
darkstrike
Set UTF-8 in chooselocale from the desktop->country menu


Sigmund

Posted: Thu 01 Mar 2012, 12:05
by darkstrike
Thanks so much Zigbert! :)

Posted: Tue 27 Mar 2012, 07:56
by davids45
G'day,

I cannot get pwidgets-2.4 to run fully in Racy-5.2.90 or in precise-5.2.52.
The set-up box opens and I can select the widgets I like but when I click 'Apply', I only see the analog clock.

Trying 'pwidgets' from a console, after picking some widgets and hitting 'Apply', I see some "No such process" messages and librtmp.so.0 seems to be missing.

David S.

Posted: Sun 15 Apr 2012, 07:56
by d(O o O)b
This is my first attempt at a widget.
It combines the reporting of widgets 'Wireless' and 'Downspeed' and throws in Upspeed for completeness all in a small footprint. Also grays out when WiFi is off.
It is tested with pwidgets 2.3, I presume it still works with 2.4

Copy the code below the dotted line into a text editor and save as /usr/local/pwidgets/widgets/configs/WiFi

Pwidgets will then pick it up as an Available Widget

---------------------------------------------------------------------------

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

#Change wlan0 with your own connection (eth0, eth1, etc) where it occurs after 'TEXT' (13 places)
#modified from Wireless and Downspeed widgets

#### PWIDGETS #####
HEIGHT=140
OFFSET_X_LEFT=40
OFFSET_X_RIGHT=20


#### 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 9C8F5B
color1 777777
color2 white
color3 ffab00
color5 499D3A
color6 red
color7 8FDBD8
color8 DBDB8F

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 1
minimum_size 160 5
draw_shades no
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
use_xft yes
xftfont DejaVu :style=bold:size=8

TEXT
${if_up wlan0}
${font DejaVu:bold:size=10}${color0}WiFi:$alignc${color1}${wireless_essid wlan0}${font DejaVu:bold:size=8}
${color0}${downspeedgraph wlan0 30,150 8FDBD8 8FDBD8}
$alignc${color1}Down ${color7}${downspeedf wlan0} ${color3}Kbps ${color1}Up ${color8}${upspeedf wlan0} ${color3}Kbps
${color0}${upspeedgraph wlan0 30,150 DBDB8F DBDB8F}
${color0}${font Pdingobats:bold:size=16}9${color3} ${wireless_link_bar 6,125 wlan0}
$else
${font DejaVu:bold:size=10}${color1}WiFi:$alignc${color1}${wireless_essid wlan0}${font DejaVu:bold:size=8}
${color1}${downspeedgraph wlan0 30,150 8FDBD8 8FDBD8}
$alignc${color1}Down ${color1}${downspeedf wlan0} ${color1}Kbps ${color1}Up ${color1}${upspeedf wlan0} ${color1}Kbps
${color1}${upspeedgraph wlan0 30,150 DBDB8F DBDB8F}
${color1}${font Pdingobats:bold:size=16}9${color1} ${wireless_link_bar 6,125 wlan0}
$endif

Posted: Sun 06 May 2012, 22:45
by majorfoo
Just did full install to ext4 partition of slacko 5.3.3-4g

when I install pwidgets 2.40 and try to use cpu-bar, it does ont appear on screen.

from command line i get following:

/root
# pwidgets
/usr/local/pwidgets/func: line 287: [: =: unary operator expected
/usr/sbin/fixwidgets: line 5: kill: (17934) - No such process
/usr/sbin/fixwidgets: line 6: kill: (17939) - No such process
Conky: Conky: /root/.pwidgets/widgets/Puppylinux: 7: no such configuration: 'HEIGHT=60'
Conky: /root/.pwidgets/widgets/Puppylinux: 8: no such configuration: 'OFFSET_X_LEFT=40'
Conky: /root/.pwidgets/widgets/Puppylinux: 9: no such configuration: 'OFFSET_X_RIGHT=35'
/root/.pwidgets/widgets/Cpu_bar: 7: no such configuration: 'HEIGHT=50'
Conky: /root/.pwidgets/widgets/Cpu_bar: 8: no such configuration: 'OFFSET_X_LEFT=40'
Conky: /root/.pwidgets/widgets/Cpu_bar: 9: no such configuration: 'OFFSET_X_RIGHT=20'
Conky: no text supplied in configuration; exiting
Conky: forked to background, pid is 17965

Conky: desktop window (40001f) is subwindow of root window (58)
Conky: window type - override
Conky: drawing to created window (0x2800001)
Conky: drawing to double buffer
Conky: setting bg window (2800001)
/usr/local/pwidgets/func: line 355: kill: (17968) - No such process
Conky: setting bg window (2800001)

This works fine in luci/lupu current series.

Posted: Sun 06 May 2012, 23:46
by 01micko
majorfoo.. bug confirmed, to do with newer kernel

Try the attached patch

Posted: Wed 09 May 2012, 01:12
by majorfoo
01micko wrote:majorfoo.. bug confirmed, to do with newer kernel

Try the attached patch
That fixed it, thanks.

Posted: Fri 01 Jun 2012, 23:55
by davids45
G'day,
I've been setting up in my loft/attic an "old" computer (2008) using older peripherals - leashed-2button-mouse with a ball, keyboard on a cable - including an old 15" CRT monitor.

Adding a range of Pups, I end up with various optimum screen resolutions, with vesa probably proving most readable/reliable (it's a nv vs nouveau situation otherwise).

I like to use pwidgets with each Pup, particularly now the 'wireless' widget as I am trying to get wireless working from the two downstairs routers I have (one set to WPA, the newer one to WPA2). The other widgets I like are the analog clock, puppy drive space, RAM, the two CPUs, processes and the local weather, as well as the Puppy linux widget to remind me which Pup I've started up.

But the widgets scroll off the bottom of the display unless I choose a high resolution (e.g. 1600x900 is microscopic). The widgets also cover some of the partition icons across the bottom of the screen - I've put three old hard drives into the computer so there are a lot of drive icons.

Rather than edit each widget config file, can the complete widget panel be scaled in some way to fit the display space I'd like?

Thanks for any ideas or help,

David S.

Posted: Sat 02 Jun 2012, 06:38
by zigbert
Hello David
I am afraid the widgets are not scalable. The only _simple_ way to squeeze the widgets are by adjusting the height at the top of each configuration file. see /root/.pwidgets/widgets/*


Sigmund

Possible Weather fix for Slacko-5371 and others

Posted: Tue 13 Nov 2012, 03:28
by jrb
Recently I started testing the beta4 of Slacko 5.4 (5371). The only problem I found was that the icon fonts (pdingobats.ttf) in the weather widget and Puppy Space widget wouldn't work, just square boxes. :cry: So I hacked pdingobats in Fontforge and came up with pdingobats2. So far its working, see here.

You can install the attached .pet and then go to /root/.pwidgets/widgets/Weather and /root/.pwidgets/widgets/Space_Puppy_filesystem and change all mentions of pdingobats to pdingobats2. Then restart Pwidgets (terminal -> #fixwidgets) or reboot.

I've only tested this in Slacko5371 and Squeeze-5X3412 and I'm still running Pwidgets-2.2.7 (If it ain't broke don't fix it :lol: ) but I expect it to be the same in later versions.

Cheers, J

Posted: Tue 13 Nov 2012, 09:50
by davids45
G'day jrb,

Thanks for the pwidgets font fix with pdingobats2.

Fixed my several full and frugal recent Slackos where pwidgets-2.40 gave me the rectangular icons.
I can report the cloudy icon now works - just have to wait for some changes in the weather here, to be sure everything's fully corrected.

I found it better to edit the affected widgets config files from the drop-down menu ("File>Show widget config file(s)") in pwidgets, to get the fix functioning after installing your .pet.

Haven't had this icon issue in any squeezed Pups with pwidgets-2.40, just slackos.

Again, thanks for the fix.

David S.

Posted: Tue 13 Nov 2012, 13:02
by 01micko
pwidgets-2.4.1, since pwidgets is in "maintenance mode" I'm sure ziggy wont mind me posting this.

Couple of small bugs fixed, added jrb's fixed pdingobats

Posted: Tue 13 Nov 2012, 14:44
by jrb
davids45 wrote:Haven't had this icon issue in any squeezed Pups with pwidgets-2.40, just slackos.
I didn't have any problems with squeezed Pups either but I thought I better try this in something else to make sure it didn't screw up there.

Oddly enough this also fixed another problem I was having with all recent pups. I run 4 machines on one monitor with a KVM switch. When I ran the weather widget xorg would freeze when I switched to another machine. When I came back I would just get a black screen with big white mouse cursor. Had to Ctrl-Alt-Bksp and restart xwin. Now that problem is gone. Go figure :?

Posted: Thu 15 Nov 2012, 05:41
by davids45
G'day widgeteers,

Tried 01micko's pwidgets-2.4.1 quick-fix for the pdingobats problem with the weather and puppy space widgets in recent slackos.

Weather widget now is showing the right icons for recent Sydney weather, but the puppy space icon (Space_Puppy_Filesystem) is now a couple of small squares, not the hard-drive icon of early widgets.

Trivial 'bugs' that someone responsible, knowledgeable and idle :) could fix:
Celsius is mis-spelled in the weather widget
The version number (in the Help>About box) is several versions out-of-date if the latest pwidgets is 2.4.1

David S.