Notices


Reply
Thread Tools
Posts: 10 | Thanked: 29 times | Joined on Jun 2010 @ Germany
#1
This is my first "real" posting and English isn't my mother tongue, but having taken so much from this community in the last year I want to contribute something, too. I searched for something like this, but I couldn't find anything similar. If someone did this before or better, or if I forgot to credit someone I'll happily edit my post.

Using the N900 as my portable audio player, I often had to unlock it, to see what's playing right now.

Taking inspiration from Alfred's thread and converting generationally's script to bash, I fumbled together a script that takes the metadata and makes a new lockslider.png. It relies heavily on GreatGonzo's mafw-trackinfo and Graham Cobb's dbus-scripts. The part that checks if the media player is running is by qwerty12, the symlink to the current theme directory comes from MohammadAG.

1) Install imagemagick ->
2) Install dbus-scripts and have it run on the session bus
3) Install mafw-trackinfo
4) Remove "slide to unlock" ->
5) Place attached lockscreen.sh in /usr/bin (you'll probably have to be root)
6) Create file lockscreen in /etc/dbus.d with the following content
Code:
/usr/bin/lockscreen.sh * * com.nokia.mafw.renderer metadata_changed title
7) The things you'll need to change in the script:
  • The font I use is a Japanese one as I often listen to Japanese music, change it to one of your liking:
    font="/home/user/.fonts/ARISAKA.ttf"
  • The unmodified lockslider.png is here:
    background="/home/user/MyDocs/.documents/Sonstiges/lockslider.png"
8) The things you'll likely change: size and position of text and artwork, maybe a portrait mode as well. You could make the LockSliderThumb.png in /etc/hildon/theme/images/ a little more transparent (I used gimp to do it) to allow for a better artwork experience.
Attached Images
 
Attached Files
File Type: txt lockscreen.sh.txt (1.6 KB, 137 views)

Last edited by Obsidian; 2011-05-10 at 07:26. Reason: New version of lockscreen.sh features better handling of metadata that contains quotes(")
 

The Following 22 Users Say Thank You to Obsidian For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#2
 
cfh11's Avatar
Posts: 1,062 | Thanked: 961 times | Joined on May 2010 @ Boston, MA
#3
Originally Posted by Obsidian View Post
Taking inspiration from Alfred's thread and converting generationally's script to bash, I fumbled together a script that takes the metadata and makes a new lockslider.png. It relies heavily on GreatGonzo's mafw-trackinfo and Graham Cobb's dbus-scripts. The part that checks if the media player is running is by qwerty12, the symlink to the current theme directory comes from MohammadAG.
it's nice to see you giving credit where credit is due... so many people forget this when building FOSS apps. great job, i cant wait to try this out!
__________________
Want to browse streamlined versions of websites automatically when in 2g? Vote for this brainstorm.

Sick of your cell signal not reconnecting after coming out of a bad signal area? Vote for this bug.
 
Posts: 77 | Thanked: 59 times | Joined on Apr 2010 @ Germany
#4
Very nice work,
but it doesn't work for me :/
I followed all steps but it won't change my lockscreen.. I changed the font and the background directory correctly.
The folder /etc/dbus.d didn't exist, so i created it via terminal "mkdir dbus.d" and created there the lockscreen file.
Slide to unlock was already removed before, imagemick is also installed.
I really don't know how to fix it.. already rebooted my phone and copied everything again into the folders..

Russe

/Edit: it seems like my dbus-scripts-session does not work..

Last edited by Russe89; 2011-05-04 at 09:17.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:12.