[Galaxy S 4 Mini Themes and Apps] Aztek92:
First of all, video:

https://www.youtube.com/watch?v=9axQHQ8ZXLU

Solution is not from android programmer, rather geek :D

Hi there... so, i was pretty dissapointed with lack of S-View functionality on CM13, S4 Mini. It was great feature, that was doing really good job with magnetic cover.

If you tried to do something with it, you probably experienced some problems with magnetic sensor (or you were smarter than me). It prevented to turn on screen with power button on any custom lockscreen from market, that was better than cm's stock one. In terms of 'better' i have in mind a lockscreen... that has f*** clock in right spot for case's window :D I was trying to bring it back with various results, but finally i achieved (i think) the best possible solution, turning lockscreen into S-View screen.

​

What it does right: showing time and basic info about battery, calls, msgs, next alarm, notifications (from gmail, fb messeger - that part is actually very customizable).

What it doesn't do at all: doesn't let you pick up calls, turn off your alarm via window and do any stuff that requiers touching via window. Magnetic sensor basicaly turns off that feature when case is closed. Showing info about playing track is not worth activating (because of space).

So, we need xposed installed and then download module: http://repo.xposed.info/module/com.ssrdroide.lockscreenwidgets

And the widget we are gonna use is dashclock: https://play.google.com/store/apps/details?id=net.nurik.roman.dashclock (or you can use more advanced alternative: https://play.google.com/store/apps/details?id=com.kk.widget)

Step 1. First thing you wanna do is to configure widget the way you want - download some extensions for it (like battery info). I highly recommend to use DashNotifer to get notifications from custom apps like fb messenger (https://play.google.com/store/apps/details?id=com.umang.dashnotifier It's already there in KK Widgets). Test it on your homescreen for now and find configuration that suits you.

Step 2. will be add widget to lockscreen via xposed module. This configuration (http://i.imgur.com/iiJMK7w.png) will keep your widget in case's window, when owner info will be out of it on same time. There is also something to mention - if you will not turn off notifications on lockscreen they will move your widget little higher (depending on number of notifications).

So... 1. If you wanna keep your notifications on lockscreen, set container 'y' translation to something around -150. Widget will stay in window regardless number of notifications.

2. If you wanna remove notifications for that cause, set container 'y' translation to -175. Widget will be in perfect spot for the whole time.

That works for standard DPI.

And that's it. It works perfectly with magnetic sensor.

For better effect you can change your wallpaper to black (worth it). That's however will change when you will listen to music, you can turn this option off or use this xposed module to paint it black for good: http://repo.xposed.info/module/com.generalbrus.brightlockscreen

Another thing is alarm. It happens that Timely has clock in perfect spot when activated and can be controlled with physical buttons ;)

I'm super happy with result. It's not exactly what you could achieve with real S-View, but it does good job ;)

If you have better solutions share it in thread!