View Single Post
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#1604
Originally Posted by imaginaryenemy View Post
Is there any way to make this work with your script?
Try this

Code:
#!/bin/sh
#call AmberClock.sh color font size
sed -i "/LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {/,/maximum/c\\
LockScreen MLabelStyle#LockScreenLowPowerModeClockLabel {\\
    font: \$FONT_FAMILY_"$2" "$3"mm;\\
    color: #"$1";\\
    \margin-left: 0;\\
    \margin-right: 0;\\
\\
    \margin-top: -1.7mm;\\
    \margin-bottom: 1.7mm;\\
    \padding-left: 0;\\
    \padding-right: 0;\\
    \padding-top: 0;\\
    \padding-bottom: 0;\\
    preferred-size: -1 -1;\\
    minimum-size: -1 -1;\\
    maximum-size: -1 -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
It also use $1, $2 and $3 parameters. Widget size will be scalable by default.
 

The Following User Says Thank You to Ancelad For This Useful Post: