Page 151 of 162

Posted: Wed 07 Dec 2011, 01:24
by zigbert
I suggest a widget sidebar. Completely separated from the wallpaper. Give it a unique background could make it really nice and much more flexible for different Pinboards. All needed is gtk. Also a sidebar will give only one PID, and that would be running fine on low-powered systems.

Start with gtkdialog ONLY and see how far it would go. The engine would be very simple, and the size would be close to nothing.....

I am sorry to say that I am not motivated at the moment for a new project. My focus is at Pmusic. It will probably last through the winter. Version 2.3 is getting closer, and I have already started planning on 2.4.


Sigmund

pwidgets in Fluppy

Posted: Sat 10 Dec 2011, 16:33
by don570
I was able to install pwidgets in Fluppy012(and probably 013)
by upgrading to gtkdialog4 using a pet by Barry Kauler.

Available here...
http://www.murga-linux.com/puppy/viewto ... b7ab5dfc77

____________________________________________________

Re: pwidgets in Fluppy

Posted: Sun 11 Dec 2011, 17:35
by tlchost
don570 wrote:I was able to install pwidgets in Fluppy012(and probably 013)
by upgrading to gtkdialog4 using a pet by Barry Kauler.[/url]
Thanks.....used it to install pwidgets 4.0 in Fluppy13.

Thom

Posted: Sun 11 Dec 2011, 18:50
by akash_rawal
For rendering widgets here's another engine, again using gtkdialog.

http://www.murga-linux.com/puppy/viewto ... 570#588570

Posted: Wed 11 Jan 2012, 20:24
by bigpup
Installed Pwidgets 2.4.0 from link on first page.
In help-> about it says 2.3.8

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