maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread (https://talk.maemo.org/showthread.php?t=45388)

aathava 2010-10-28 06:47

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
1 Attachment(s)
Is it possible to create a widget that shows Time, Date and Day like the one in the picture below using Queen beecon,
if possible can anyone help me out to do this?

No!No!No!Yes! 2010-10-28 07:18

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by aathava (Post 854697)
Is it possible to create a widget that shows Time, Date and Day like the one in the picture below using Queen beecon,
if possible can anyone help me out to do this?

What font is that?
Just find the font and widget is a matter of presto!

D4rKlar 2010-10-28 07:44

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by No!No!No!Yes! (Post 854068)
When Orientation is enabled, the beecon is executed every time you turn your phone.
Beecon is not actually rotated because I wanted to leave the most possible flexibility to the beeconer. Suppose for example you'd like a landscape layout with, say, a seaside background and all "summer-marine-themed" widgets scattered horizontally ... while a portrait layout with a winter background and all "flaky-fidgeted-cokedrinking-polar-bears" scattered vertically (I know I'm a bit maniac with this example ... but YOU, crazy graphics modders, are prone to such kind of desktop raping attacks!!! :D:D:D:cool:)

If you have a look at the example beecon (which is now fixed as 1 image was missing in the archive) you'll see that every orientation condition triggers the script execution, ends up returning a different exit status according to orientation and button state; beecon then takes care of indexing the correct image and displays it.

PHP Code:

#We fetch previous state from button text
c=$QBW_CURRENT_RESULTS_TEXT

#Deal with widget startup condition and init button 1st position
if [ "_$c== "_" -"$QBW_EXEC_REASON== "QBW_STARTUP_UPDATE" ];then
   
#Insert here commands to turn on
   #nothing if, on startup, sensor is already on
   
c=1;
fi;

if [ 
"$QBW_EXEC_REASON== "QBW_CLICK" ];then
   
if [ $c -eq 1 ]; then
      
#Insert here commands to turn off
      
c=0;
   else
      
#Insert here commands to turn on
      
c=1;
   
fi
fi

case "$QBW_ORIENTATION_MODEin
   
"portrait")             x=644y=292 ;xt=`expr 4 + 4 \\* $c` ;;
   
"landscape (inverted)"x=644y=155 ;xt=`expr 5 + 4 \\* $c` ;;
   
"portrait (inverted)")  x=0  y=155 ;xt=`expr 6 + 4 \\* $c` ;;
   *)                      
x=0  y=292 ;xt=`expr 3 + 4 \\* $c` ;;
esac

#Move beecon on screen command according to x,y calculated in 'case'
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_position int32:$x int32:$y

#Store current status
echo $c

#Exit with correct code to show the image according to current orientation status
exit $xt 

http://i.imgur.com/RKgGi.jpg

My brain just exploded. This is AMAZING!!! :eek::eek::eek:

Kind Regards,
D4rKlar

aathava 2010-10-28 07:59

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
It seems to be clockopia.ttf , but it does't matter
anything else is fine too..,

No!No!No!Yes! 2010-10-28 17:09

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by aathava (Post 854697)
Is it possible to create a widget that shows Time, Date and Day like the one in the picture below using Queen beecon,
if possible can anyone help me out to do this?

http://i.imgur.com/RtW6a.jpg

There you go ... import beecon and have a look at Pango Tags and date command format reference for further customizations:
Code:

[queen-beecon-header]
version=1.000000
checksum=2963190
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=true
hideClickCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#808080808080
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#0000ffff0000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffffffff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=queen-beecon-index.png
widWidth=250
widHeight=100
instanceTitle=CoolDate
instanceCmd=echo -e "`date +'<span font=\\"40\\">%l:%M</span>%P%n%A, %B %d'`"
rememberMe=
cmdImgFilename=;queen-beecon.png
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=0
cmdImgVisibilityPosition=0
cmdJustify=0
cmdExtFont=Nokia Sans bold italic 12
cmdFontName=3
cmdFontSize=12
resImgFilename=;queen-beecon-resimg.png
resImgAngle=0
resImgZoom=0
resFgRGB=1
resExtFgRGB=#ffffffffffff
resTextAngle=0
resVisibilityPosition=1
resImgVisibilityPosition=0
resJustify=0
resExtFont=Nokia Sans bold 12
resFontName=2
resFontSize=12
progressAnimationFrames=0
progressAnimationTimer=4
progressAnimationPos=8
progressAnimationAtClickXY=true
progressAnimationBasename=queen-beecon-progress
updOnStartup=true
updOnClick=true
updOnDesktop=true
updOnSight=true
delayIndex=2
customIntervalSecs=0
updNeworkPolicy=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=
multiClick=false
updOnOrientation=false
GPSsettings=0
resWrapLongLines=false


D4rKlar 2010-10-28 17:56

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
OK starting sloooooooow... if you get the chance (I know you're busy mate so absolutely no rush ;)) ...how would someone go about changing their wallpaper depending on orientation?

Kind Regards,
D4rK

techie 2010-10-28 19:02

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by D4rKlar (Post 855625)
OK starting sloooooooow... if you get the chance (I know you're busy mate so absolutely no rush ;)) ...how would someone go about changing their wallpaper depending on orientation?

Kind Regards,
D4rK

I couldn't get any time to study the new features introduced in QBW but what you ask seems simple really:)
Use the code by No!No!No!Yes! for determining orientation and accordingly change the wallpaper using this command
Code:

gconftool-2 -s /apps/osso/hildon-desktop/views/<desktop-number>/bg-image -t string <path_to_image>
Modified hildon-desktop may be required though even if you use 4 screens.
Nice idea btw.Use a portrait wallpaper if in portrait orientation:) I might work on it tomorrow if you don't;)

No!No!No!Yes! 2010-10-28 20:54

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
Quote:

Originally Posted by techie (Post 855711)
I couldn't get any time to study the new features introduced in QBW but what you ask seems simple really:)
Use the code by No!No!No!Yes! for determining orientation and accordingly change the wallpaper using this command
Code:

gconftool-2 -s /apps/osso/hildon-desktop/views/<desktop-number>/bg-image -t string <path_to_image>
Modified hildon-desktop may be required though even if you use 4 screens.
Nice idea btw.Use a portrait wallpaper if in portrait orientation:) I might work on it tomorrow if you don't;)

Uhm ... does it work kind of real time? I mean how fast is the backgrounds transition?

aathava 2010-10-29 03:50

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
1 Attachment(s)
Thank you No!No!No!Yes! for the cool clock
please add it to the WIKI
I used to customize my linux desktop with conky, and i wish to do the same implementations with queen beecon,
May be the wiki is the right place to begin with..,

No!No!No!Yes! 2010-10-29 04:56

Re: [Announce] Queen BeeCon Widget: Super powerful and customizable Widget Generation Engine - Official Thread
 
1 Attachment(s)
Browser Gravity Button (Template and Example for buttons the like)
http://i.imgur.com/Pq4Zo.jpg
Uncompress and Save attached images as/where usual
Import beecon as usual

Code:

[queen-beecon-header]
version=1,000000
checksum=5381482
[queen-beecon-exported-instance]
widgetType=0
widgetVisible=1
operationalStatus=0
hideCanvas=true
hideClickCanvas=true
snippetBgRGB=0
snippetExtBgRGB=#000000000000
beecon_lt0_ImgZoom=0
beecon_lt0_BgRGB=2
beecon_lt0_ExtBgRGB=#808080808080
beecon_lt0_ImgFilename=queen-beecon-syserr.png
beecon_eq0_ImgZoom=0
beecon_eq0_BgRGB=3
beecon_eq0_ExtBgRGB=#00005cfc0000
beecon_eq0_ImgFilename=queen-beecon-appok.png
beecon_eq1_ImgZoom=0
beecon_eq1_BgRGB=4
beecon_eq1_ExtBgRGB=#ffffffff0000
beecon_eq1_ImgFilename=queen-beecon-appwrn.png
beecon_ge2_ImgZoom=0
beecon_ge2_BgRGB=5
beecon_ge2_ExtBgRGB=#ffff00000000
beecon_ge2_ImgFilename=queen-beecon-apperr.png
beecon_idxge2_ImgZoom=0
beecon_idxge2_BgRGB=11
beecon_idxge2_ExtBgRGB=#0000ffffffff
beecon_idxge2_ImgFilename=browser.png
widWidth=156
widHeight=156
instanceTitle=BrowserGButton
instanceCmd=app="browser"\nmove="true";\nlaxy="0,292";poxy="644,292";laixy="644,56";poixy="0,56"\nif [ "$QBW_EXEC_REASON" == "QBW_CLICK" ];then\n  dbus-send --dest=com.nokia.HildonDesktop.AppMgr /com/nokia/HildonDesktop/AppMgr com.nokia.HildonDesktop.AppMgr.LaunchApplication string:"$app"\nfi\n\ncase "$QBW_ORIENTATION_MODE" in\n  "portrait")            xy=$poxy;xt=4 ;;\n  "landscape (inverted)") xy=$laixy;xt=5 ;;\n  "portrait (inverted)")  xy=$poixy;xt=6 ;;\n  *)                      xy=$laxy;xt=3 ;;\nesac\nif [ "$move" == "true" ];then dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw$QBW_ID oh.no.more.qbw.set_position int32:"`echo $xy|cut -d, -f1`" int32:"`echo $xy|cut -d, -f2`";fi;\nexit $xt\n
rememberMe=
cmdImgFilename=queen-beecon.png
cmdImgAngle=0
cmdImgZoom=0
cmdFgRGB=1
cmdExtFgRGB=#ffffffffffff
cmdTextAngle=0
cmdVisibilityPosition=0
cmdImgVisibilityPosition=0
cmdJustify=2
cmdExtFont=Nokia Sans 10
cmdFontName=3
cmdFontSize=12
resImgFilename=queen-beecon-resimg.png
resImgAngle=0
resImgZoom=0
resFgRGB=1
resExtFgRGB=#ffff00000000
resTextAngle=0
resVisibilityPosition=0
resImgVisibilityPosition=5
resJustify=0
resExtFont=Nokia Sans bold italic 18
resFontName=2
resFontSize=12
resWrapLongLines=false
progressAnimationFrames=1
progressAnimationTimer=4
progressAnimationPos=4
progressAnimationAtClickXY=false
progressAnimationBasename=browser-frame
updOnStartup=true
updOnClick=true
multiClick=false
updOnDesktop=false
updOnSight=false
updOnOrientation=true
delayIndex=0
customIntervalSecs=0
updNeworkPolicy=0
GPSsettings=0
updOnDBUS=0
updOnDBUSBus=0
updOnDBUSMatchRule=

SETUP:
http://i.imgur.com/G6wHD.png
app="<application>" as per HERE
move="true" if you want button to move on screen according to orientation and coordinates ("false" for fixed position)
laxy=coordinates for landscape mode
poxi=coordinates for portrait mode
laixy=coordinates for landscape inverted mode
poixi=coordinates for portrait inverted mode

For multiple button instances, remember to change in settings also:
  • ">=3" image basename
  • Press & Progress Animation FX basename


All times are GMT. The time now is 20:36.

vBulletin® Version 3.8.8