maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] QtLockscreen: highly configurable lockscreen replacement (https://talk.maemo.org/showthread.php?t=75150)

sakya 2011-07-22 12:23

[Announce] QtLockscreen: highly configurable lockscreen replacement
 
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:
http://www.assembla.com/spaces/qtloc...yr4lm5eJe4gwI3

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....)

eefo 2011-07-22 12:26

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
awesome work man .
but some instructions for the noobs of how to install ?

sakya 2011-07-22 12:29

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
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 2011-07-22 12:31

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by sakya (Post 1056108)
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 ?

F2thaK 2011-07-22 12:33

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
weeeeeeeeeeeeeeeeeeeee

eefo 2011-07-22 12:35

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by F2thaK (Post 1056110)
weeeeeeeeeeeeeeeeeeeee

lol :p :P :P

F2thaK 2011-07-22 12:43

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
will it be configuarble thru a GUI soon?

sakya 2011-07-22 12:50

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by F2thaK (Post 1056117)
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/

eefo 2011-07-22 12:59

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
Quote:

Originally Posted by sakya (Post 1056122)
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

F2thaK 2011-07-22 13:01

Re: [Announce] QtLockscreen: highly configurable lockscreen replacement
 
yes it works great, been configuring it

:D


All times are GMT. The time now is 04:46.

vBulletin® Version 3.8.8