Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 15 Dec 2019, 15:24
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
pWidgets 2.5.8
Post new topic   Reply to topic View previous topic :: View next topic
Page 215 of 216 [3228 Posts]   Goto page: Previous 1, 2, 3, ..., 213, 214, 215, 216 Next
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 6610
Location: Valåmoen, Norway

PostPosted: Sun 01 Apr 2018, 15:23    Post subject:  

To get analog clock work I grabbed a lib from Puppy 4.3.1

/usr/lib/libpng12.so.0.22.0
/usr/lib/libpng12.so.0

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
mfb

Joined: 22 Mar 2016
Posts: 91

PostPosted: Sun 01 Apr 2018, 16:19    Post subject:  

Whereas the Calendar widget for April 2018 continues to show properly if Sunday is set as the first day of the week; that was far from true if the first day is set to Monday.

My thanks to Zigbert who has very kindly fixed my problem earlier today with his post near the bottom of page 214:
http://murga-linux.com/puppy/viewtopic.php?p=987345&sid=e9904f9762b0907c3d6cea674a0314a5#987345

The code shown there needed to replace the current code at:
/usr/local/pwidgets/widgets/scripts/Calendar
and the fix is as shown in the screen shot below.
image.png
 Description   
 Filesize   185.19 KB
 Viewed   936 Time(s)

image.png

Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 1237
Location: Chatswood, NSW

PostPosted: Mon 02 Apr 2018, 20:17    Post subject: Calendar alignment
Subject description: Days 1 to 9
 

G'day,

I have a minor problem with the Calendar widget aligning the number dates beneath the day abbreviations.

I looks like the spacing is not including a notional '0' in front of the first 9 numbers so the first two lines are shortened losing alignment to the day headings (screenshot).

Having played with the fonts and font-sizes for the widget to no benefit, I think the problem is in the calendar script, presently:

Quote:
#! /bin/sh
# Added by MHHP for compliance with ISO 8601

cal_monday (){
LANG=C CAL=`cal`
echo -e "\n$CAL" | cut -c1-2 | grep -v "^ $" > $HOME/.pwidgets/tmp/cal1
echo "$CAL" | cut -c4- > $HOME/.pwidgets/tmp/cal2
paste -d ' ' $HOME/.pwidgets/tmp/cal2 $HOME/.pwidgets/tmp/cal1 > $HOME/.pwidgets/tmp/cal
}

today(){
DATE=`date +%d`
[ `echo $DATE | cut -c1` = 0 ] && DATE=`date +%d | cut -c2`
}
export -f today
case "$1" in
heading_month)
#build calender here to do it only once
if [ `cat $HOME/.pwidgets/widgets/Calendar | grep WEEK_FIRST_DAY | grep MONDAY` ]; then
cal_monday
else
cal > $HOME/.pwidgets/tmp/cal
fi
#---
head -n1 $HOME/.pwidgets/tmp/cal | awk '{print $1" "$2}'
;;
heading_days)
head -n2 $HOME/.pwidgets/tmp/cal | tail -n1
;;
passed)
today
grep -v '[a-zA-Z]' $HOME/.pwidgets/tmp/cal | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
today)
today
echo $DATE;
;;
comes)
today
grep -v '[a-zA-Z]' $HOME/.pwidgets/tmp/cal | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac


The /tmp/cal file mentioned in the script is OK if viewed in geany (screenshot) but when copied (ctrl-c) comes up the same as the widget display:

Quote:
April 2018
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30


Complications:
I'm using pwidgets modified/beautified by forum member Moat although the calendar widget looks pristine (I added Osmo tasks to the TEXT section which displays below the calendar).
The widget files are stored on my data partition and most Pups' widgets just run via links to these files (such as the screenshot which is from a frugal bionicpup+12). Changing the config in one Pup then affects all the others sharing pwidgets.
This may be a part of my problem if no one else sees calendar mis-aligning in their pwidgets.
For the few Pups that have individually installed pwidgets (no shared links), the calendar is generally well set out and stable.

Thanks for any advice.

David S.
widget-calendar.jpg
 Description   mis-aligned first rows in calendar widget
 Filesize   113.73 KB
 Viewed   859 Time(s)

widget-calendar.jpg

tmp-cal-file-viewed-in-geany.png
 Description   
 Filesize   26.94 KB
 Viewed   842 Time(s)

tmp-cal-file-viewed-in-geany.png

Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6610
Location: Valåmoen, Norway

PostPosted: Wed 04 Apr 2018, 17:05    Post subject:  

David
I think you calendar-issue is related to fonts. It looks to me like the font in your screenshot is not monospace.

I just checked my latest calendar-widget in Bionic, and it looks great...

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 6610
Location: Valåmoen, Norway

PostPosted: Wed 04 Apr 2018, 17:32    Post subject:  

Kernel info in the 'Puppylinux' widget may give alignment issues if string is too long. The info is grabbed by the uname -r command in /usr/local/pwidgets/widgets/configs/Puppylinux
Code:
# uname -r
4.9.92-lxpup-32-pae

to fix this, I have stripped the result
Code:
uname -r | cut -d'-' -f1

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
davids45


Joined: 26 Nov 2006
Posts: 1237
Location: Chatswood, NSW

PostPosted: Thu 05 Apr 2018, 00:08    Post subject: Two fixes successful  

G'day zigbert,

Thanks for taking time to look at my pwidgets issues.

With your confirmation Calendar is good with the right font (monofont.ttf), I found, with all my recent "playing around" with fonts links, the monofont TF file was missing Embarassed .

I had a similar problem with pdingobats2 which also didn't seem to work in Pups on sda1 via a symlink of the font file from my data partition sda5.

Copying the complete/original ttf files to /usr/share/font/default/TTF in each Pup seems to fix the widget display.

And thank you mind-reading my un-posted concern ( Shocked ) about the long kernel text string in some Pups so the widget panel becomes a bit wide and untidy.

Your script edit works Very Happy .

David S.
PuppyLinuxWidgetFixed.jpg
 Description   PuppyLinux and Calendar widgets fixed (Bionic1804-1)
 Filesize   62.24 KB
 Viewed   797 Time(s)

PuppyLinuxWidgetFixed.jpg

Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 682
Location: UPSTATE New York

PostPosted: Thu 27 Jun 2019, 18:01    Post subject:  

215 PAGES!!!! Popular thread....

Has anyone created a pwidget to show one's (external) IP address? I see it's been done in conky...

_________________
"God is love" - I John 4:12
🐧 🐧 🐧 Rockin' on a 2007 IBM/Lenovo T60 Centrino Duo with 32-bit XenialPup 7.5! Very Happy
(A/V Linux for live digital synth needs)
Back to top
View user's profile Send private message Visit poster's website 
davids45


Joined: 26 Nov 2006
Posts: 1237
Location: Chatswood, NSW

PostPosted: Mon 22 Jul 2019, 03:13    Post subject: 64-bit Pwidgets
Subject description: Wifi widget - possible??
 

G'day,

A few posts back, "Our" Bill Gates posted a year and a bit ago the problem he was having getting the Wireless widget to run in a 64-bit Pup:

Now/still I'm now having the same problem Embarassed Very Happy .
We've gone wifi on the home network and I slowly trying to get 64-bit Pups to run on my computers. Wireless widget is still fine in 32-bit Pups.

Has anyone been able to run/fix the Wireless widget in a 64-bit Pup?
Could it be a conky problem as the widget config scripts look the same in 32-bit and 64-bit configs, but only the 32-bit runs (screenshots)?

David S.
64bitWirelessPwidget.jpg
 Description   Wireless widget in 64-bit Pups - same as Bill Gates had last year
 Filesize   17.82 KB
 Viewed   318 Time(s)

64bitWirelessPwidget.jpg

32bitWirelessPwidget.jpg
 Description   Wireless widget working well in 32-bit Pups
 Filesize   21.56 KB
 Viewed   316 Time(s)

32bitWirelessPwidget.jpg

Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 1237
Location: Chatswood, NSW

PostPosted: Tue 23 Jul 2019, 20:20    Post subject: 64-bit Wireless Widget Woes  

G'day,

Still trying to find a 64-bit Pup that will run the Wireless widget like every 32-bit Pup does.

Latest checks were with old JustLighthouse Pups but still no success.

JL has a conky display (screenshot) which includes wireless activity. It reports not "wlan0" but "wpl0s29f7u6". Replacing 'wlan0' in the widget files with this 'wlp0s29f7u6' did not fix the Pwidget problem. Not surprising I suppose as the same widget scripts (using wlan0) in 32-bit Pups are all good.

Any suggestions welcome.

David S.
jl604-wirelesswidget-conky.jpg
 Description   conky display (on right?) seems to show wireless activity but not with the Pwidget (below conky)
 Filesize   229.19 KB
 Viewed   312 Time(s)

jl604-wirelesswidget-conky.jpg

Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3548
Location: 500 seconds from Sol

PostPosted: Tue 23 Jul 2019, 22:15    Post subject: wireless widget (plugin) under FbBox  

Hi Dave,

FWIW

Recent problems (since solved) with wireless strength had me hunting for some way to find out without having to run setup networking each time. Fortunately, although on most of my Puppies I've shifted to use radky's most recent jwmdesk, the Xenialpup64 on my Laptop still uses radky's FbBox, http://murga-linux.com/puppy/viewtopic.php?t=92982

One of the builtin plugins you can choose to appear on the FbBox panel is "Network Status". If selected, current signal strength is always displayed. Left-Click that display and a popup window provides the further information indicated in the attached screenshot.

Radky has a lot on his plate at the moment. But perhaps some one who understands bash can identify the code used in FbBox's plugin and either create a stand-alone taskbar plugin for JWM, or a widget for pwidgets.
NetworkStatus-plugin.png
 Description   FbBox's NetworkStatus-plugin's display
 Filesize   59.69 KB
 Viewed   301 Time(s)

NetworkStatus-plugin.png

Back to top
View user's profile Send private message 
Dry Falls

Joined: 16 Dec 2014
Posts: 597
Location: Upper Columbia

PostPosted: Tue 23 Jul 2019, 22:37    Post subject:  

Hi David. You can also append to your linux/vmlinuz/append line in grub or other boot menu:
Code:
net.ifnames=0
. This will ensure the "wlan" language is used rather than "wpl0..." or "'encap...", etc. This should fix the older widgets.

-df

edit: also, newer versions of conky (in newer pups) require lua (liblua.so.5).
Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 1237
Location: Chatswood, NSW

PostPosted: Wed 24 Jul 2019, 20:14    Post subject: 32-bit Pwidgets
Subject description: Added IP address to Wireless widget
 

G'day,

Thanks mikeslr and Dry Falls for your interest and replies.
Still thrashing about in 64-bit land without success (or knowledge of what I'm doing - as usual Embarassed ).

However I did find how to add the wifi IP address to the working 32-bit Wireless widget (added red text to wirelss config file) ......

Quote:

TEXT
${color white}${font pdingobats2:bold:size=20}0${font DejaVu:bold:size=11}${color yellow} Wireless
${color lightblue}${font DejaVu:size=10}${wireless_essid wlan0}${color orange}${font}${alignr}${wireless_link_qual wlan0}
${color green}${wireless_link_bar 10 wlan0}
${color lightblue}IP Address:${color orange} ${addr wlan0}


Result is in screenshot.

Will continue to try to work out a 64-bit pwidget wireless fix but maybe I just need to use conky-only in 64-bit?

David S.
Added-IP-address-32bit.jpg
 Description   
 Filesize   10.53 KB
 Viewed   283 Time(s)

Added-IP-address-32bit.jpg

Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3548
Location: 500 seconds from Sol

PostPosted: Sat 31 Aug 2019, 14:54    Post subject: pWidgets-2.5.8-x86_64 and DogRadio
Subject description: Conflict & work-around
 

Hi all,

I rather like pWidgets. But I also like DogRadio which has conky as a dependency. On its own, pWidgets-2.5.8-x86_64 worked fine under Xenialpup64. So does DogRadio if Conky is installed via PPM. However, if instead of that Conky pWidgets with its included conky 1.6.1 is used, DogRadio will work, but pWidgets will not start complaining about a missing config file.

The work-around is to first install Conky via PPM as part of the DogRadio install. Then install the pWidgets pet. Both pWidgets and DogRadio will then function.
Back to top
View user's profile Send private message 
ndujoe1

Joined: 04 Dec 2005
Posts: 811

PostPosted: Sun 17 Nov 2019, 08:10    Post subject: pwidget  

are these two libs available online, then? thanks

/usr/lib/libpng12.so.0.22.0
/usr/lib/libpng12.so.0
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3548
Location: 500 seconds from Sol

PostPosted: Sun 17 Nov 2019, 12:22    Post subject:  

Hi ndujoe1,

Which Puppy? Although libraries may have the same name, and sometimes it doesn't make a difference, it's always better to use a library compiled for your operating system.

On xenialpup64 --from which I'm posting-- pfind located both /usr/lib/libpng12.so.0.22.0 and /usr/lib/libpng12.so.0. Examination of these showed that they were symbolic links to /usr/lib/libping12.so.0.54.0.

libraries are almost always backward compatible. That is, when a specific library such as libping12.so.0 is sought by an application, the application will use a later version, such as libping12.so.0.54.0 if you create a symbolic link to it and give the symbolic link the name of the file the application was designed to use. If the symbolic link doesn't already exist, you can create it. OPEN A TERMINAL IN THE FOLDER OF THE RECENT LIBRARY* and use this template:

ln -s NAME_OF_EXISTING_LIBRARY NAME_SOUGHT_BY_APPLICATION

Example

ln -s libping12.so.0.54.0 libping12.so.0

-----
* This isn't absolutely necessary, and sometimes is wrong. But it's easier. When necessary you can similarly create a symbolic link in one folder to a library in another folder. But then you'll have to specify paths, such as:

ln -s /usr/local/lib ABC.so.75 /usr/sbin/lib/ABC.so.76

The above can be entered from anywhere. You don't have to enter the path of the folder in which you've opened the terminal.
--------
Before we go hunting for other versions: Do you already have any libping12.so files on your system? If you open Puppy Package Manager and type libping12 in its search box, what results does it show?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 215 of 216 [3228 Posts]   Goto page: Previous 1, 2, 3, ..., 213, 214, 215, 216 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3430s ][ Queries: 13 (0.2670s) ][ GZIP on ]