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 Mon 20 Oct 2014, 06:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
pWidgets 2.5.5
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 207 [3099 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 205, 206, 207 Next
Author Message
zigbert


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

PostPosted: Wed 24 Dec 2008, 08:32    Post subject:  

J-Bob wrote:
Edit: I should also mention, that i removed the wallpaper roxapp because removing it saves space, and i let rox manage right clicks on the desktop.
Do you know if everything works ok WITH the wallpaper setter?


Sigmund

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


Joined: 09 Feb 2008
Posts: 283
Location: Canada

PostPosted: Wed 24 Dec 2008, 11:03    Post subject:  

i tested it on my desktop WITH the wallpaper setting program. still the same program.

the problem i found out, is that the xevent clicks, but does not release, i noticed this when i tried it on rxvt.

if i knew how to manage xevents i would build a fix, but alas, i do not.

But at least i know what is the entire root of the problem. it's not the sleep, it's the xevent.

if we had it click, and release than it should be fixed.
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Wed 24 Dec 2008, 11:36    Post subject:  

J-Bob wrote:
i tested it on my desktop WITH the wallpaper setting program. still the same program.

the problem i found out, is that the xevent clicks, but does not release, i noticed this when i tried it on rxvt.

if i knew how to manage xevents i would build a fix, but alas, i do not.

But at least i know what is the entire root of the problem. it's not the sleep, it's the xevent.

if we had it click, and release than it should be fixed.

There isn't much documentation about xevent, seemed like a good idea at the time. I have noticed just tonight that my clock didn't wake, first time for that. Maybe try editing usr/sbin/fixwidgets by deleting the line refering to xevent and using my 'wakeclock.sh' script and see what happens, don't forget to re-edit fixwidgets.
Hope that helps.
Merry Christmas.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Wed 24 Dec 2008, 11:56    Post subject:  

J-Bob wrote:
i tested it on my desktop WITH the wallpaper setting program. still the same program.

the problem i found out, is that the xevent clicks, but does not release, i noticed this when i tried it on rxvt.

if i knew how to manage xevents i would build a fix, but alas, i do not.

But at least i know what is the entire root of the problem. it's not the sleep, it's the xevent.

if we had it click, and release than it should be fixed.

Replace your last four lines in usr/sbin/fixwidgets with this
Code:
sleep 3                     #number of seconds before execution
xevent -a 0 0               #number of pixels for cursor to deviate right and down
sleep 1 ; xevent -b 1 2      #simulated left mouse click
sleep 1 ; xevent -a 512 384

and then I will absolutely agree with you if it does not work.

Sincerely

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
J-Bob


Joined: 09 Feb 2008
Posts: 283
Location: Canada

PostPosted: Wed 24 Dec 2008, 13:33    Post subject:  

01micko wrote:
J-Bob wrote:
i tested it on my desktop WITH the wallpaper setting program. still the same program.

the problem i found out, is that the xevent clicks, but does not release, i noticed this when i tried it on rxvt.

if i knew how to manage xevents i would build a fix, but alas, i do not.

But at least i know what is the entire root of the problem. it's not the sleep, it's the xevent.

if we had it click, and release than it should be fixed.

Replace your last four lines in usr/sbin/fixwidgets with this
Code:
sleep 3                     #number of seconds before execution
xevent -a 0 0               #number of pixels for cursor to deviate right and down
sleep 1 ; xevent -b 1 2      #simulated left mouse click
sleep 1 ; xevent -a 512 384

and then I will absolutely agree with you if it does not work.

Sincerely


the results were interesting, it clicks at (0,0) but releases around the center of the screen.

i think that you might have found the needed fix for this.

Glad i was able to help with checking for bugs.

- J-Bob
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Wed 24 Dec 2008, 20:04    Post subject:  

J-Bob wrote:
01micko wrote:
J-Bob wrote:
i tested it on my desktop WITH the wallpaper setting program. still the same program.

the problem i found out, is that the xevent clicks, but does not release, i noticed this when i tried it on rxvt.

if i knew how to manage xevents i would build a fix, but alas, i do not.

But at least i know what is the entire root of the problem. it's not the sleep, it's the xevent.

if we had it click, and release than it should be fixed.

Replace your last four lines in usr/sbin/fixwidgets with this
Code:
sleep 3                     #number of seconds before execution
xevent -a 0 0               #number of pixels for cursor to deviate right and down
sleep 1 ; xevent -b 1 2      #simulated left mouse click
sleep 1 ; xevent -a 512 384

and then I will absolutely agree with you if it does not work.

Sincerely


the results were interesting, it clicks at (0,0) but releases around the center of the screen.

i think that you might have found the needed fix for this.

Glad i was able to help with checking for bugs.

- J-Bob


Code:
#use xevent to update desktop. By Michael Amadio (01micko)
sleep 3                     #number of seconds before execution
xevent -a 0 0               #sends cursor to coordinates 0 0
sleep 1 ; xevent -b 1 1 0   #simulated left mouse click
sleep 1 ; xevent -a 512 384

J-Bob, try this, I changed the parameter of the 'click' to '1 0' (mouse button down, mouse button up) from '2' (mouse button down and up). Works the same for me, but might improve your problem. If it works you can shorten the sleeps.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Evil20071


Joined: 07 Jun 2008
Posts: 425
Location: Piedmont, SC,.United States

PostPosted: Thu 25 Dec 2008, 23:06    Post subject:  

I can't get pwidgets to start on system boot. A little help here? I can get Conky to start, but not pwidgets.
_________________
Click for Detailed PC info

Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Fri 26 Dec 2008, 08:25    Post subject:  

Evil20071 wrote:
I can't get pwidgets to start on system boot. A little help here? I can get Conky to start, but not pwidgets.


You must edit ~/xinitrc with
Code:
fixwidgets
just before
Code:
#exec $CURRENTWM

zigbert explains it in the main post. Wink

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
trio


Joined: 21 Dec 2008
Posts: 1797
Location: अनुमोदना

PostPosted: Fri 26 Dec 2008, 09:59    Post subject: Easier way
Subject description: make a start up pwidget.sh
 

01micko wrote:
Evil20071 wrote:
I can't get pwidgets to start on system boot. A little help here? I can get Conky to start, but not pwidgets.


You must edit ~/xinitrc with
Code:
fixwidgets
just before
Code:
#exec $CURRENTWM

zigbert explains it in the main post. Wink


I instead make a simple script executable and put in in /root/startup folder:

#!/bin/sh
xli -fillscreen -onroot /root/Choices/ROX-background.jpg
conky -d
fixwidgets
sleep 6 #number of seconds before execution
xeven -a 0 100 #number of pixels for cursor to deviate right and down
sleep 0.2 ; xevent -b 1 2 #simulated left mouse click
sleep 0.1 ; xevent -a 512 384
sleep 0.2 ; xevent -b 3 2

Note: this is pwidgets installation not from the pet, as the pet itself already included xevent command that is on the 0,0 coordinate which make my start menu clicked. So it's better for the pet to remove this line and make a pwidgets-startup.sh instead. That's my suggestion

Just wanna share, if i maybe can help
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Fri 26 Dec 2008, 23:40    Post subject: xlideshow-0.0.1  

We now have 'xlideshow' working.
The code is rudimentary so any improvements are welcome.
I need to know how to stop xli from running a commentary in the bottom bar. Any ideas? Anyone? Once that is accomplished it will be ready for Pwidgets.
CatDude has made his own fork of xlideshow and it is very good. It has a GUI to allow adjustment of imagesize, quality, what image folder to use, nice work!
Trio added some very useful input.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
zigbert


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

PostPosted: Sat 27 Dec 2008, 04:58    Post subject:  

thanks trio
_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Sat 27 Dec 2008, 20:00    Post subject:  

I think we can ditch xevent. Discovered xonclock option '--no-winredirect' and I can get the clock to appear, albeit in a window. Will do some hacking and testing to see if it can be improved. The files to look at are /usr/local/pwidgets/func and ~/.xonclockrc. See what we can do.

Update: To quote the man page of xonclock
Quote:
--no-winredirect
If the program is started under KDE or GNOME (and maybe someone else) the clock may get hidden state. Try to set this flag to prevent a such situation. It may help I hope. Default: not set.
or Jwm or Icewm and his hopes are dashed! As are ours!
Looks like we are stuck with xevent for a little while. Sorry for the false hope! Evil or Very Mad

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Evil20071


Joined: 07 Jun 2008
Posts: 425
Location: Piedmont, SC,.United States

PostPosted: Mon 29 Dec 2008, 01:48    Post subject:  

How do I set the Weather widget to get the F instead of C?
_________________
Click for Detailed PC info

Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
01micko


Joined: 11 Oct 2008
Posts: 7831
Location: qld

PostPosted: Mon 29 Dec 2008, 01:57    Post subject:  

Evil20071 wrote:
How do I set the Weather widget to get the F instead of C?

Open ~/.pwidgets/scripts/WeatherIcon in a text editor. You'll see what to do.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Evil20071


Joined: 07 Jun 2008
Posts: 425
Location: Piedmont, SC,.United States

PostPosted: Mon 29 Dec 2008, 02:08    Post subject:  

That didn't work. Already tried that. Change it to both 0 and 1 and both come back C. Here's the contents (Of the top section) of that file:

Code:
#!/bin/sh
#AccuWeather icon, using weather.ttf
#USAGE: WeatherIcon <locationcode>
#Sintot
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
LOCCOD="USA|EN-US|New York"
if [ -z $1 ] && [ -x $LOCCOD ] ; then
   echo
        echo "USAGE: $0 [locationcode]"
        echo
        exit 0;
elif [ ! -z $1 ] ; then
        LOCCOD=$1
fi
curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=$LOCCOD">/tmp/Weather.tmp
SIMBOL=`cat /tmp/Weather.tmp|grep -A2 'description>Currently'|grep gif|sed 's/\// /g'|sed 's/_/ /g'|awk {'print $8'}`
case $SIMBOL in

And a screenshot of this after refreshing pwidgets is attached.
pwidgets.png
Description  Weathericon and pwidgets
png

 Download 
Filename  pwidgets.png 
Filesize  206.03 KB 
Downloaded  312 Time(s) 

_________________
Click for Detailed PC info

Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger 
ICQ Number 
Display posts from previous:   Sort by:   
Page 8 of 207 [3099 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, ..., 205, 206, 207 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.1161s ][ Queries: 12 (0.0202s) ][ GZIP on ]