View Single Post
Posts: 649 | Thanked: 762 times | Joined on Mar 2012 @ Ohio
#1597
Originally Posted by Ancelad View Post
Hmm, there is one nice idea in Nokia Amber (GDR2) Update for Windows Phone - sleeping clock (night clock). This mean lowpower screen clock changes it's brightness and color to dark-red (as I see). So, I've made it for our Nokia N9 using ProfileMatic.

Make AmberClock.sh

Code:
#!/bin/sh
#call AmberClock.sh color font size
sed -i "/LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {/,/color/c\\
LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {\\
    font: \$FONT_FAMILY_"$2" "$3"mm;\\
    color: #"$1"; " /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css
sleep 1 && /sbin/initctl stop xsession/sysuid && sleep 1 && /sbin/initctl start xsession/sysuid
@Ancelad I am trying to figure out how to add
Code:
prefered size:
minimum size:
maximum size
into your script.
My default settings have all parameters set to "1mm" and color as "000000" so no clock appears on my stand by screen.
I am interested in using your script as a bed-side clock when charging. I quickly tried this:
Code:
#!/bin/sh
#call AmberClock.sh color font size
sed -i "/LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {/,/color/c\\
LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {\\
    font: \$FONT_FAMILY_"$2" "$3"mm;\\
    color: #"$1";\\
    preferred-size: "$4" "$5"mm;\\
    minimum-size: "$4" "$5"mm;\\
    maximum-size: "$4" "$5"mm; " /usr/share/themes/base/meegotouch/libsysuid-screenlock-nokia/style/libsysuid-screenlock-nokia.css
sleep 1 && /sbin/initctl stop xsession/sysuid && sleep 1 && /sbin/initctl start xsession/
But it made my phone very angry with me

What would be the correct way to add two numbers to these areas? In each parameter there is a negative (-) and the other is a positive (+). As it appears above, all negative numbers can be the same as each other, and all positives can be the same as each other.
Thanks!

Last edited by imaginaryenemy; 2014-05-17 at 02:47.