Since #phosh made lockscreen widgets a plugin, I actually found it is prettty easy to make one yourself! I have been playing around with one that displays emergency info and emergency contacts.

Is there anything obvious I am missing from it? I got these from Android. Note that a user can add/remove/edit Emergency Contacts as they wish. (My hope is to merge this back into Phosh proper).

@kop316 Nice to read that it ended up being easy to add a lockscreen plugin 🚀
I find `tools/widget-box` very useful for that as it allows you to develop the plugin on your desktop machine without even running at all.

@agx

I originally was going to make a PDF of the info and add it to the PDF viewer, but I figured I should try to see how hard it was to make a plugin. It has been a good experience!

'tools/widget-box` really helped too! I did all of the development on my laptop.

@kop316 I always wanted a way for 's plugins
to have individual UI to set preferences, e.g. to set the path for the ticket-box, etc. So I gave it stab this afternoon and I'm almost there (need to beautify and clean out the code). It's basically another plugin that implements AdwPreferencesPage .You could add one to set up the personal information for your Emergency Info plugin too.

@agx

Let me know when you finish it, and I will take a look!

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml