Lockscreen widget manager

Rating: 
3.75
Your rating: None Average: 3.8 (4 votes)

This is a patch and application that allow the lockscreen to be configured using widget components. The patch modifies the lockscreen files to use the widget items and also removes the clock. The application is used to manage the lockscreen portrait and landscape layouts. Different widgets can be used in each layout. The jolla-clock and other date and times widgets are included in the installation. Full usage instructions on TMO http://talk.maemo.org/showthread.php?p=1491621#post1491621 I have explicitly added conflicts into the spec for v0.2 so this will not install if the following patches are installed: Calendar events on lockscreen Lockscreen analog clock Show weather on lockscreen Show statusbar on sneak peek screen This is quite likely to conflict with other lockscreen patches as well. If you do have one of these applied together with the widget manager I would recommend disabling the widget manager patch and checking the following lines: PortraitWidgets {anchors.fill:parent visible: lockScreenPage.isPortrait } LandscapeWidgets {anchors.fill:parent visible: !lockScreenPage.isPortrait } are not in file /usr/share/lipstick-jolla-home-qt5/lockscreen/LockItem.qml before restarting the homescreen or rebooting the phone. Otherwise you may not be able to get to the homescreen.

Screenshots: 
Application versions: 
AttachmentSizeDate
widget-manager-0.1-1.noarch.rpm15.75 KB16/12/2015 - 03:28
widget-manager-0.2-1.noarch.rpm17.65 KB31/03/2016 - 08:34
widget-manager-0.3-1.noarch.rpm18.86 KB08/05/2017 - 20:49
Changelog: 

0.3
- Implemented a fine control box to move widgets pixel by pixel. Activated by long press.
- Fixed patch for Iijoki compatibility
0.2
- Added gridlines, configurable through settings
- Settings to control lockscreen/homescreen
- Fixed jolla clock animations
- Improved placement algorithm
- Added requirements and conflicts in spec file

0.1
- First build

Comments

Ingvix's picture

I wonder if there's scaling issues or is this somehow designed just for Jolla1 screen specs but on Aqua Fish it goes like this: http://imgur.com/a/hRmkG

EDIT: It would seem that the meecast widget it relative to the bottom of the calendar widget which height changes with the number of calendar entries. That's not a very smart way to do things, is it?

EDIT2: I also edited the patch a bit so that lockscreen can't go upside down which I found annoying especially because home screen didn't do that. So it now shows only default allowed orientations. Also I set it to show sneak peek only in portrait mode as I find it more comfortable that way. The transition between landscape and portrait shows in non-lowpowermode so it's kinda ugly to watch anyway. You may use this in future releases if you wish: https://pastebin.com/BABKC8kp

anig's picture

The whole positioning is based off anchors. So as the calender entries grow the widget below it gets pushed down, rather than overlapping. I could make it optional to switch to x,y positioning and have widget box size the maximum it could be. I will add the orientation change as an option. Thanks for the feedback.

Markkyboy's picture

I'm working on something similar but I have no settings, all actions are done from lockscreen, tapping, flicking, holding, etc......I have 4 'widgets' so far; Time, Date, Weather and Calendar, all are linked directly to their respective applications/functions. Long press on the Time takes you to Alarm/Timers page, Date takes you directly to jolla-calendar, weather to sailfish-weather and calendar (repeat) to jolla-calendar. The weather widget can also be tapped to show 5 day forecast in portrait and 8 days in landscape.
All text has a drop shadow behind it (for better visibility on bright wallpapers) as well as a background dimmer with 9 stages to 'dim' the background making the widgets even easier to see!........my main problem is getting the widgets to stay where they are dragged to. Rotate the phone and all widgets have shifted back to their given positions, I need to create a gridview or grid so I can 'drop' the widgets and they stay put no matter of portrait or landscape view.
Nice to see something along the same lines, keep it up! :)

gaelic's picture

Unfortunately this patch is not compatible with the famous: https://openrepos.net/content/ancelad/patch-ultimate-statusbar-patch

Maybe there is a way around the conflicts?

anig's picture

Will see if I can find a work around to avoid the conflict.

Ingvix's picture

I hope you update the position changer with the one you used for Calendar events on lockscreen. I'd also like to have weather widget support if possible. I can't remember right now if this already had a landscape lockscreen support but if not I hope you add that too. The only thing that's been stopping me from having my lockscreen rotating enabled is that the widgets are all messed up.

anig's picture

The position changer was originally developed for this. Do you use Meecast? I have a widget for that, I just need to ask the Meecast developers permission  before releasing it.

Ingvix's picture

Yes, I use Meecast. Is it the same view as the events view widget for Meecast or your own design? I hope you get the permission.

Jatin's picture

Most of the patches are not working in intex aqua fish like this one.

Ingvix's picture

Nice improvements, but I'm still having hard time getting it in the middle by hand. Always when I lift my finger it moves that one pixel to the wrong direction. I found that the best method is to press the power button while holding the widget where I want it. Stick to closest grid line -option would be very helpful.

EDIT: And under that option there could be option if the sticking part would be the middle red lines of the widget or the outlines of the widget. Then I would be happy.

EDIT2: Here's also some problems I encountered: https://imgur.com/a/fppFp

anig's picture

The reason is because I wrote the code to snap to the nearest 2px. I am planning to change that and implement an arrow control box when you long press on a widget, which will allow you to move 1px at a time.

Ingvix's picture

That would be nice. I'm still wondering about the other case on the second picture. The widget position on lockscreen certainly does not match how it's shown in the layout creator.

Ingvix's picture

I'd like to put some widgets right in the middle but It's sort of hard to do it with a free hand. Maybe some helper for this?

Quasar's picture

 Is it better possible to make lockscreen rotation optional? Very annoying))

anig's picture

Yes, plan is to add settings for the next release.

DameCENO's picture

Cool stuff bro, well done

Ingvix's picture

Would be nice if there would be some more widgets if possible. Maybe showing some statistics of the phone or something.

anig's picture

Indeed the more widgets the better it is. The hope is that others will also develop some widgets.