maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Support thread] Billboard Standby Screen (https://talk.maemo.org/showthread.php?t=84507)

Schturman 2013-04-28 16:26

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Win7Mac (Post 1339706)
Schturman, you can use
Code:

#!/bin/sh

day=$(date +%u)
echo | awk -v d=$day '{split("Mo Tu We Th Fr Sa Su",a," "); printf a[d]}'

followed by {date}, Just replace "Mo Tu ..." with whatever you like to have displayed.

Thanks, I will try it... Where I need to put this script ?
Also it;s a little strange that LPS not show me date in Hebrew, because my Notification screen + Lock screen + status bar show me date in Hebrew automatically...

Win7Mac 2013-04-28 16:30

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by Schturman (Post 1339711)
Thanks, I will try it... Where I need to put this script ?

Somewhere in /home/user/

B3Punch3D 2013-04-28 20:19

Re: [Support thread] Billboard Standby Screen
 
@thp I have a short but essential question, is it possible for you to implement multiple profiles, e.g. to switch between lockscreens by using profilematic, scripts etc.?

thp 2013-04-29 06:40

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by knobtviker (Post 1339391)
@thp
Will some of these scripts be sanctioned and implemented in some future updates? :)

Yes, that's the plan. Ideally implemented in a way that's a bit more power-efficient that the script (via notifications / context properties, etc..). There are some changes already in the pipeline for the next release :)

thp 2013-04-29 06:42

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by B3Punch3D (Post 1339758)
@thp I have a short but essential question, is it possible for you to implement multiple profiles, e.g. to switch between lockscreens by using profilematic, scripts etc.?

Yes, you can do that using a script and connecting this to profilematic (I have never used profilematic myself, but from what I understand from users, this works).

How to: See the Billboard website, under "How do I... Change the displayed text from the command line?" :)

willi6868 2013-04-29 11:57

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by coderus (Post 1304621)
for wazapp:
Code:

#!/bin/sh

reply=""
if $(qdbus | grep org.tgalal.wazapp > /dev/null)
then
        reply=`qdbus org.tgalal.wazapp /org/maemo/contextkit/Wazapp/Online org.maemo.contextkit.Property.Get | sed -n 1p`
fi

case $reply in
online) reply="В сети" ;;
connecting) reply="Подключается" ;;
offline) reply="Не в сети" ;;
*) reply="Закрыт" ;;
esac

echo -n $reply


Can someone tell me please how to change this script to set a color for a seperate status (e.g. : online = green and offline= red)?! :)

EDIT:

Sorry found the solution! :o

slarti 2013-04-29 12:24

Re: [Support thread] Billboard Standby Screen
 
Quote:

Originally Posted by willi6868 (Post 1339909)
Can someone tell me please how to change this script to set a color for a seperate status (e.g. : online = green and offline= red)?! :)

Code:

#!/bin/sh

reply=""
if $(qdbus | grep org.tgalal.wazapp > /dev/null)
then
        reply=`qdbus org.tgalal.wazapp /org/maemo/contextkit/Wazapp/Online org.maemo.contextkit.Property.Get | sed -n 1p`
fi

case $reply in
online) reply="{{green}}В сети" ;;
connecting) reply="{{yellow}}Подключается" ;;
offline) reply="{{red}}Не в сети" ;;
*) reply="Закрыт" ;;
esac

echo -n $reply


willi6868 2013-04-29 16:05

Re: [Support thread] Billboard Standby Screen
 
Sorry I have an other non-coder question:

How to modify this script that the signal bar doesn't show up and it only shows me the percentage colored in different colors depending on the signal (/percentage)?

Code:

#!/bin/sh

percent=$(qdbus --system com.nokia.csd /com/nokia/csd/csnet com.nokia.csd.CSNet.SignalStrength.SignalPercent)
if [ $percent -eq -1 ]; then echo -n "{{red}}Flugmodus"; exit; fi
echo -n "{{white}}"
echo -n $percent
color="green"
if [ $percent -le 50 ]; then color="yellow"; fi
if [ $percent -le 20 ]; then color="red"; fi
echo -n "% {{$color}}{{="
echo -n $(($percent/100)).$((($percent%100)/10))$(($percent%10))
echo -n "}}"


coderus 2013-04-29 17:26

Re: [Support thread] Billboard Standby Screen
 
@willi6868 just remove last 3 lines from this script ;)

B3Punch3D 2013-04-29 18:59

Re: [Support thread] Billboard Standby Screen
 
@thp thx you for the great response ;)
appreciate that very much


All times are GMT. The time now is 21:51.

vBulletin® Version 3.8.8