Do you know if everything works ok WITH the wallpaper setter?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.
Sigmund
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.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 thisJ-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.
Code: Select all
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
the results were interesting, it clicks at (0,0) but releases around the center of the screen.01micko wrote:Replace your last four lines in usr/sbin/fixwidgets with thisJ-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.and then I will absolutely agree with you if it does not work.Code: Select all
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
Sincerely
J-Bob wrote:the results were interesting, it clicks at (0,0) but releases around the center of the screen.01micko wrote:Replace your last four lines in usr/sbin/fixwidgets with thisJ-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.and then I will absolutely agree with you if it does not work.Code: Select all
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
Sincerely
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: Select all
#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
You must edit ~/xinitrc withEvil20071 wrote:I can't get pwidgets to start on system boot. A little help here? I can get Conky to start, but not pwidgets.
Code: Select all
fixwidgets
Code: Select all
#exec $CURRENTWM
I instead make a simple script executable and put in in /root/startup folder:01micko wrote:You must edit ~/xinitrc withEvil20071 wrote:I can't get pwidgets to start on system boot. A little help here? I can get Conky to start, but not pwidgets.just beforeCode: Select all
fixwidgets
zigbert explains it in the main post.Code: Select all
#exec $CURRENTWM
or Jwm or Icewm and his hopes are dashed! As are ours!--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.
Open ~/.pwidgets/scripts/WeatherIcon in a text editor. You'll see what to do.Evil20071 wrote:How do I set the Weather widget to get the F instead of C?
Code: Select all
#!/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
Code: Select all
curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=$LOCCOD">/tmp/Weather.tmp
Code: Select all
curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=$METRIC&locCode=$LOCCOD">/tmp/Weather.tmp
Code: Select all
# more /etc/conky/calendario
#!/bin/bash
#Calendar script, localized and with holidays
#in conkyrc, use ${execpi 60 name_of_the_script}
#Sintot
COUNTRY=16 #16 is Spain
MONTH=`date +%m`
YEAR=`date +%Y`
DAY=`date +%e`
LANG=es #es for spanish, en for english
case "$1" in
cal)
curl -s -d "&year=$YEAR&country=$COUNTRY&typ=1&lang=$LANG&month=$MONTH&hcl=1&hol=4194315" -G http://www.timeanddate.com/calendar/print.html>/tmp/calend
cat /tmp/calend|tail -18|head -7|sed -e 's/<span class=\"red\([1234]*\)\">/${Color red\1}/g' -e 's/<\/span>/${Color}/g' -e "s/$DAY/\${Color green}$DAY\${Color}/" -e 's/red1/blue/g' -e 's/red2/brown/g' -e 's/red3/yellow/g' -e 's/red4/FCAF3E/g' -e 's/red/red/g'|grep -v "<"|grep -v "#"
;;
fest)
echo
cat /tmp/calend|tail -6|head -1|sed -e 's/<span title="[a-z,A-Z,0-9,áéíóú