Active Topics

 



Notices


Reply
Thread Tools
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#1
Hi!

QtLockscreen is a highly configurable lockscreen replacement.

How to reset the lockscreen to the default configuration:
Open a terminal and
Code:
sudo gainroot
rm .config/sakya/QtLockscreen.ini
pkill -HUP qtlockscreen
Screenshot:


Video (F2thaK):
http://www.youtube.com/watch?v=hUK7OvJZGdo

Wiki:
http://wiki.maemo.org/QtLockscreen

Configurations:
http://talk.maemo.org/showthread.php?t=75187

Every item on the screen is configurable (position, size, font, image...).
You can also remove or add items.

Known problems:
-When the power button is clicked the app does not update the screen for 2 seconds.
This seems a Qt problem: every qt application "locks" when the power button is pressed, I don't know why.
-The rotation is slow.

To fix the "power button" problem you can try to (at your own risk):
-Edit the file /usr/share/policy/etc/rx51/syspart.conf
-Add in the section [classify desktop] a line like
Code:
/usr/bin/qtlockscreen
This is the default configuration (it is automatically created in /home/user/.config/sakya/QtLockscreen.ini the first time the app is launched):
Code:
[Main]
#This is the configuration file for QtLockscreen.
#Here you can customize the look of the lockscreen.
#
#Some notes on settings:
#  -Fonts: to set a font use a string composed with:
#   "fontName;fontSize;fontWeight;italic"
#   If fontName is empty it will be used the default system font.
#   For italic use 1 to enable it.
#   For fontWeight use one of the following values: light, normal, demibold, bold, black
#   Example: 
#     Font=";14;normal;0"
#
#  -Colors: to specify a color use R;G;B;A notation.
#   Example:
#     Color="255;255;255;255"   
#
#  -Position: you can set different position for portrait and landscape.
#   PosL is the position in landscape
#   PosP is the position in portrait
#   For position you can use the special value: left, center, right, top, bottom
#
#  -Size: : you can set different size for portrait and landscape.
#   SizeL is the size in landscape
#   SizeP is the size in portrait
#
#  -Alignment: use one of the following values: center, left, right, top, bottom

#Name of this theme
ThemeName="Default"

#Orientation: auto, landscape, portrait
Orientation="auto"

#Path to background image for Portrait (P) and Landscape (L)
BackGroundImageP="/etc/hildon/theme/backgrounds/lockslider.png"
BackGroundImageL="/etc/hildon/theme/backgrounds/lockslider.png"

#List of widgets.
#  Name is composed by WidgetType.WidgetName
#  The WidgetName must be unique.
#  Please respect the numeric order, don't leave "holes" in the list and set a correct Size.
#  If you add/remove widget remember to update the Size at the end of the list.
#  Widgets are drawn using this order: the higher number is the topmost widget
Widgets\1\Name="Rect.Rect_Bottom"
Widgets\2\Name="Rect.Rect_Top"
Widgets\3\Name="DateTime.DateTime"
Widgets\4\Name="Battery.Battery"
Widgets\5\Name="Text.SlideToUnlockText"
Widgets\6\Name="SlideToUnlockButton.SlideToUnlock"
Widgets\7\Name="MediaPlayPauseButton.PlayPauseButton"
Widgets\8\Name="MediaNextButton.NextButton"
Widgets\9\Name="MediaBackButton.BackButton"
Widgets\10\Name="MediaMetadata.Metadata"
Widgets\11\Name="MediaAlbumArt.AlbumArt"
Widgets\12\Name="Rect.TimeLabelBackground"
Widgets\13\Name="MediaTimeLabel.TimeLabel"
Widgets\14\Name="Notification.MissedCalls"
Widgets\15\Name="Notification.UnreadSMS"
Widgets\16\Name="Notification.UnreadEmails"
Widgets\17\Name="Notification.NewIM"
Widgets\Size=17

#Widgets
#  The [Name] must match the WidgetName defined in the Widgets list
[DateTime]
Alignment="center"
PosL="center;0"
PosP="center;0"
SizeL="200;80"
DateFont=";12;normal;0"
DateColor="255;255;255;255"
TimeFont=";30;normal;0"
TimeColor="255;255;255;255"
TimeFormat="hh:mm"
DateFormat="dddd dd/MM/yyyy"

[Rect_Bottom]
SizeL="800;70"
PosL="0;410"
SizeP="480;70"
PosP="0;730"
Radius=0
Color="0;0;0;150"

[Rect_Top]
SizeL="800;80"
PosL="0;0"
SizeP="480;80"
PosP="0;0"
Radius=0
Color="0;0;0;150"

[Battery]
Images="/opt/qtlockscreen/default/battery_0.png;/opt/qtlockscreen/default/battery_1.png;/opt/qtlockscreen/default/battery_2.png;/opt/qtlockscreen/default/battery_3.png;/opt/qtlockscreen/default/battery_4.png;/opt/qtlockscreen/default/battery_5.png;/opt/qtlockscreen/default/battery_6.png"
ChargingImage="/opt/qtlockscreen/default/battery_charging.png"
PosL="700;15"
PosP="380;15"
PercentageFont=";8;normal;0"
PercentageColor="255;255;255;255"

[PlayPauseButton]
BackGroundImagePause="/opt/qtlockscreen/default/pause.png"
BackGroundImagePausePressed="/opt/qtlockscreen/default/pausePressed.png"
BackGroundImagePlay="/opt/qtlockscreen/default/play.png"
BackGroundImagePlayPressed="/opt/qtlockscreen/default/playPressed.png"
PosL="210;160"
PosP="210;160"

[NextButton]
BackGroundImage="/opt/qtlockscreen/default/forward.png"
BackGroundImagePressed="/opt/qtlockscreen/default/forwardPressed.png"
PosL="280;160"
PosP="280;160"

[BackButton]
BackGroundImage="/opt/qtlockscreen/default/back.png"
BackGroundImagePressed="/opt/qtlockscreen/default/backPressed.png"
PosL="140;160"
PosP="140;160"

[Metadata]
TitleFont=";20;normal;0"
TitleColor="255;255;255;255"
ArtistFont=";14;normal;0"
ArtistColor="255;255;255;255"
Alignment="left"
SizeL="400;100"
PosL="140;90"

[AlbumArt]
NoCoverImage="/opt/qtlockscreen/default/no-album-art.png"
SizeL="120;120"
PosL="5;90"

[TimeLabelBackground]
PosL="5;190"
SizeL="50;20"
Color="0;0;0;150"
Radius=0

[TimeLabel]
PosL="5;190"
SizeL="50;20"
Font=";10;normal;0"
Color="255;255;255;255"

[MissedCalls]
Icon="/opt/qtlockscreen/default/call.png"
Text="%1 missed calls"
TextAlignment="bottom"
PosL="224;250"
PosP="center;360"
SizeL="160;100"
Type="call"
Font=";14;normal;0"
Color="255;255;255;255"

[UnreadSMS]
Icon="/opt/qtlockscreen/default/message.png"
Text="%1 unread messages"
TextAlignment="bottom"
PosL="32;250"
PosP="left;360"
SizeL="160;100"
Type="sms"
Font=";14;normal;0"
Color="255;255;255;255"

[UnreadEmails]
Icon="/opt/qtlockscreen/default/email.png"
Text="%1 new emails"
TextAlignment="bottom"
PosL="416;250"
PosP="right;360"
SizeL="160;100"
Type="email"
Font=";14;normal;0"
Color="255;255;255;255"

[NewIM]
Icon="/opt/qtlockscreen/default/message.png"
Text="%1 new IM"
TextAlignment="bottom"
PosL="608;250"
PosP="center;460"
SizeL="160;100"
Type="im"
Font=";14;normal;0"
Color="255;255;255;255"

[SlideToUnlock]
SizeL="300;64"
SizeP="300;64"
PosL="center;410"
PosP="center;730"
#BackgroundImage="path to the widget's background image"
SliderImage="/opt/qtlockscreen/default/unlock.png"
SliderPos="0;0"
UnlockXL=236
UnlockXP=236
#UnlockYL=0
#UnlockYP=0

[SlideToUnlockText]
SizeL="300;64"
SizeP="300;64"
PosL="center;430"
PosP="center;750"
Text="Slide to unlock"
Font=";14;bold;0"
Alignment="center"
If you change the configuration file you need to kill the lockscreen (or reboot).

To kill the lockscreen:
Code:
killall qtlockscreen
I just searched for icons and images with google, if someone wants to make a better default "skin" is welcome.

The package is available in extras-devel:
http://maemo.org/packages/view/qtlockscreen/

Many thanks to: MohammadAG for the backends.

I called them widget but these aren't Maemo desktop widget.
You can't add a desktop widget to this lockscreen.
"Widgets" are coded specifically for the lockscreen, you can use only the widgets provided by the app (rectangle, metadata, datetime....)

Last edited by sakya; 2013-02-16 at 10:46.
 

The Following 174 Users Say Thank You to sakya For This Useful Post:
ahmadamaj, alextootchie, Alfred, AlMehdi, antezz, archl, arnoldux, arora.rohan, Bahador, bigears5000, bitrocky, Blaizzen, Boemien, borghal, Bundyo, CepiPerez, ceroberts75, cevenn, Char, chill, christexaport, codeMonkey, computerinfo21, corduroysack, Crugath, cutehunk04, CutterSlade, D4rKlar, dadoabdallah, danielpublic, Dinho, DJQwamii, drangina, Drekkie, dtergens, eefo, El Amir, elie-7, erniadeldesktop, ersanpermana, Estel, et3rnal, Evilson, F2thaK, fatcobrah, Flynx, fpp, fw190, gabby131, GaRy delaMEr, gidzzz, gionni88, gkhnkrts7, gng554, grenadejumper, hadinin, HELLASISGREECE, hhmah, HtheB, Hurrian, ikirk, imo, IntelN900, ivgalvez, ivyking, jakiman, jd4200, Jenason, JorgeFX, jpala16, jtwoody, juanenrique, junieboi, K9999, karam, kent_autistic, kevloral, latindark, Leon Obscuro MX, lingling92, MaddogG, MaDless, maemo55, MaikEF, Maj3stic, mamad CJ, Manatus, marxian, mayhem, Mentalist Traceur, MetalSer, mike_shenoda, mivoligo, moepda, mpi, MyNokiaN900, m_dk29, n900user259, Natan_xy, neboja, nicholes, niqbal, nokiaqueen, NokTokDaddy, nux, Obsidian, ossipena, OVK, palmmanpalm, pavlik, percy, Petteri, prankster, praveenchand, PUNK, pursueky, Quasar, qw3rty, rajkrishna, Reflektorfalke, retsaw, rewan, rfeese, rizbert, Russe89, sada11, sake, Sandeep, saned, santiago, seiichiro0185, ShahoOod, shanttu, shawwawa, sifo, Silvarum, sirpaul, sixwheeledbeast, skanky, Slocan, som3a, SSLMM, strange1712, sunil, syndrome, taike_hk, te37v, techno2001, Temporal, The Wizard of Huz, ThomasAH, Toothpick36, toxaris, TransTech, Trestry, tullamulla, udaychaitanya16, vdx29, vetsin, videohese, visN900, WAHID, x-lette, x61, xXxTJxXx, Zekahz, zenit, Zentenario, zifis
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#2
awesome work man .
but some instructions for the noobs of how to install ?
__________________
Every hero becomes a bore at last.
www.itechiapk.com
 

The Following 2 Users Say Thank You to eefo For This Useful Post:
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#3
When the package will be in extras-devel you can just install as all the other packages (if it works, I never tested it as I said).
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#4
Originally Posted by sakya View Post
When the package will be in extras-devel you can just install as all the other packages (if it works, I never tested it as I said).
means we cant check it until it's in devel ?
__________________
Every hero becomes a bore at last.
www.itechiapk.com
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#5
 
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#6
Originally Posted by F2thaK View Post
weeeeeeeeeeeeeeeeeeeee
lol :P :P
__________________
Every hero becomes a bore at last.
www.itechiapk.com
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#7
will it be configuarble thru a GUI soon?
 
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#8
Originally Posted by F2thaK View Post
will it be configuarble thru a GUI soon?
I don't think.
There's more work to do for a configuration GUI than for the lockscreen itself..

Btw the package has been imported, I installed it and seem to work:
http://maemo.org/packages/view/qtlockscreen/
 

The Following 3 Users Say Thank You to sakya For This Useful Post:
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#9
Originally Posted by sakya View Post
I don't think.
There's more work to do for a configuration GUI than for the lockscreen itself..

Btw the package has been imported, I installed it and seem to work:
http://maemo.org/packages/view/qtlockscreen/
lovelyyyyyy
__________________
Every hero becomes a bore at last.
www.itechiapk.com
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#10
yes it works great, been configuring it

 
Reply


 
Forum Jump


All times are GMT. The time now is 13:32.