pWidgets 2.5.8

Window managers, icon programs, widgets, etc.
Message
Author
akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#3021 Post 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.
Attachments
mod_files.tar.gz
Contains modified files, RamGTK and Search_files
(8.65 KiB) Downloaded 541 times

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

#3022 Post 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

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#3023 Post 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.

PenguinPupLin
Posts: 130
Joined: Fri 23 Dec 2011, 09:21
Location: The Little Red Dot

#3024 Post 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.

User avatar
darkstrike
Posts: 174
Joined: Mon 09 Jun 2008, 14:58
Location: Fauxburg, Nova Scotia, Canada

#3025 Post 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
Last edited by darkstrike on Thu 01 Mar 2012, 03:29, edited 1 time in total.

User avatar
darkstrike
Posts: 174
Joined: Mon 09 Jun 2008, 14:58
Location: Fauxburg, Nova Scotia, Canada

#3026 Post 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!

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

#3027 Post by zigbert »

darkstrike
Set UTF-8 in chooselocale from the desktop->country menu


Sigmund

User avatar
darkstrike
Posts: 174
Joined: Mon 09 Jun 2008, 14:58
Location: Fauxburg, Nova Scotia, Canada

#3028 Post by darkstrike »

Thanks so much Zigbert! :)

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

#3029 Post 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.

User avatar
d(O o O)b
Posts: 10
Joined: Wed 11 Apr 2012, 05:39
Location: Usually in the middle of some ocean

#3030 Post 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
Attachments
WiFi-on.png
(4.23 KiB) Downloaded 1059 times

majorfoo
Posts: 448
Joined: Mon 07 Mar 2011, 22:27
Location: Wish I knew

#3031 Post 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.

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

#3032 Post by 01micko »

majorfoo.. bug confirmed, to do with newer kernel

Try the attached patch
Attachments
cpu_bar_patch-0.9.pet
(1.27 KiB) Downloaded 973 times
Puppy Linux Blog - contact me for access

majorfoo
Posts: 448
Joined: Mon 07 Mar 2011, 22:27
Location: Wish I knew

#3033 Post by majorfoo »

01micko wrote:majorfoo.. bug confirmed, to do with newer kernel

Try the attached patch
That fixed it, thanks.

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

#3034 Post 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.

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

#3035 Post 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

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

Possible Weather fix for Slacko-5371 and others

#3036 Post 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
Attachments
pdingobats2-0.01.pet
Fix for Weather icons in Slacko 5.4
(24.65 KiB) Downloaded 1010 times

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

#3037 Post 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.

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

#3038 Post 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
Attachments
capture14539.jpg
(23.4 KiB) Downloaded 2460 times
Puppy Linux Blog - contact me for access

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#3039 Post 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 :?

User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

#3040 Post 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.

Post Reply