Notices


Reply
Thread Tools
Posts: 47 | Thanked: 30 times | Joined on Jul 2010 @ BANGALORE
#791
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?
Attached Images
 
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#792
Originally Posted by aathava View Post
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!
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
D4rKlar's Avatar
Posts: 675 | Thanked: 923 times | Joined on Apr 2010 @ London
#793
Originally Posted by No!No!No!Yes! View Post
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!!! )

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 
My brain just exploded. This is AMAZING!!!

Kind Regards,
D4rKlar
__________________
_________________________
_________________________________
_
* D4rKlar on DeviantART * Maemo5 on DeviantART *
_
* M4riNa D4rK Theme and Iconset *
_
 
Posts: 47 | Thanked: 30 times | Joined on Jul 2010 @ BANGALORE
#794
It seems to be clockopia.ttf , but it does't matter
anything else is fine too..,
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#795
Originally Posted by aathava View Post
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?


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
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following 2 Users Say Thank You to No!No!No!Yes! For This Useful Post:
D4rKlar's Avatar
Posts: 675 | Thanked: 923 times | Joined on Apr 2010 @ London
#796
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
__________________
_________________________
_________________________________
_
* D4rKlar on DeviantART * Maemo5 on DeviantART *
_
* M4riNa D4rK Theme and Iconset *
_
 
Posts: 208 | Thanked: 220 times | Joined on Apr 2010
#797
Originally Posted by D4rKlar View Post
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
__________________
With Linux-powered N900..ANYTHING is possible
 

The Following 2 Users Say Thank You to techie For This Useful Post:
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#798
Originally Posted by techie View Post
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?
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
Posts: 47 | Thanked: 30 times | Joined on Jul 2010 @ BANGALORE
#799
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..,
Attached Images
 

Last edited by aathava; 2010-10-29 at 08:06.
 

The Following User Says Thank You to aathava For This Useful Post:
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#800
Browser Gravity Button (Template and Example for buttons the like)

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:

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
Attached Files
File Type: zip BrowserGButton-images.zip (65.5 KB, 150 views)
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following 3 Users Say Thank You to No!No!No!Yes! For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 06:45.