|
2011-05-03
, 12:47
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#2
|
|
2011-05-03
, 13:39
|
|
Posts: 1,062 |
Thanked: 961 times |
Joined on May 2010
@ Boston, MA
|
#3
|
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.
|
2011-05-04
, 09:14
|
Posts: 77 |
Thanked: 59 times |
Joined on Apr 2010
@ Germany
|
#4
|
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
- The font I use is a Japanese one as I often listen to Japanese music, change it to one of your liking:
- The unmodified lockslider.png is here:
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.font="/home/user/.fonts/ARISAKA.ttf"
background="/home/user/MyDocs/.documents/Sonstiges/lockslider.png"
Last edited by Obsidian; 2011-05-10 at 07:26. Reason: New version of lockscreen.sh features better handling of metadata that contains quotes(")