The Following 18 Users Say Thank You to generationally For This Useful Post: | ||
AndyNokia232, bigears5000, cheve, Cue, D4rKlar, gazza_d, Hootenholler, jstokes, maluka, microe, Minhaz, MohammadAG, nicolai, Parlapipas, smoothc, Switch_, thp |
![]() |
2011-02-09
, 01:26
|
|
Posts: 109 |
Thanked: 20 times |
Joined on May 2010
|
#32
|
Here is what I have done with my lock screen after reading this thread:
I took away the 'swipe to unlock' text and the slider graphic. I then created a script containing wget and ImageMagick commands to download my Last Fm statistics as a transparent png image and overlay the image on the green background. The script then copies the final image to the 'backgrounds' folder of my theme. I use Alarmed to automatically do this once a day. So whenever the phone is locked and I press the power button, I get to see my latest Last Fm statistics.
Why? Because it is possibleMaybe a weather forecast or other info downloaded from the net would be more useful
![]() |
2011-02-09
, 08:15
|
Posts: 133 |
Thanked: 138 times |
Joined on Nov 2007
|
#33
|
looks epic, can you share how you do that? and you still need to slide to unlock right?
sudo gainroot apt-get install wget
sudo gainroot wget http://www.debernardis.it/downloads/imagemagick_6.3.7.9.dfsg2-1~lenny3maemo1_optified_armel.deb dpkg -i imagemagick_6.3.7.9.dfsg2-1~lenny3maemo1_optified_armel.deb
sudo gainroot cd /usr/share/themes/plastic-dark-black/images mv LockSliderThumb.png LockSliderThumb.png.orig mv LockSliderThumbPortrait.png LockSliderThumbPortrait.png.orig
# simple shell script file (lockscreen.sh) cd /home/user/CustomStuff/ wget http://lastfm.dontdrinkandroot.net/tools/user/artistcloud/generationally/6month/normal_thumb.png mv normal_thumb.png thumb.png convert -negate -rotate 90 -resize 95% thumb.png lastfm.png composite -gravity south lastfm.png Fresh_series_3_bar.png lockslider.png cp lockslider.png /usr/share/themes/plastic-dark-black/backgrounds/.
sh /home/user/CustomStuff/lockscreen.sh
The Following 15 Users Say Thank You to generationally For This Useful Post: | ||
![]() |
2011-02-09
, 12:33
|
Posts: 225 |
Thanked: 64 times |
Joined on Feb 2010
|
#34
|
The Following 8 Users Say Thank You to stickymick For This Useful Post: | ||
![]() |
2011-02-09
, 15:36
|
|
Posts: 601 |
Thanked: 549 times |
Joined on Mar 2010
@ Redditch, UK
|
#36
|
![]() |
2011-02-09
, 15:41
|
|
Posts: 1,079 |
Thanked: 1,019 times |
Joined on Mar 2010
|
#37
|
![]() |
2011-02-09
, 15:47
|
|
Posts: 109 |
Thanked: 20 times |
Joined on May 2010
|
#38
|
![]() |
2011-02-09
, 17:52
|
Posts: 114 |
Thanked: 109 times |
Joined on Nov 2010
@ Finland
|
#39
|
Yes, you still need to swipe to unlock. However, I always use the HW lock slider key for locking/unlocking purposes.
Here are instructions on how to do get the exact same lock screen as I have:
1. Make sure that you have wget installed. If not, install from terminal:
2. Install ImageMagick (command-line tools for image manipulation) if you don't already have it. I downloaded the optified version from here. Download the file and install it:Code:sudo gainroot apt-get install wget
3. Remove the 'swipe to unlock' text as described in this thread. I followed these exact instructions.Code:sudo gainroot wget http://www.debernardis.it/downloads/imagemagick_6.3.7.9.dfsg2-1~lenny3maemo1_optified_armel.deb dpkg -i imagemagick_6.3.7.9.dfsg2-1~lenny3maemo1_optified_armel.deb
4. Remove the slider image from your theme folder or replace it with a transparent empty slider image. I have used the first option and I use plastic-dark-black theme:
5. Create a directory somewhere on your phone where you want to have the few files needed for this. I created /home/user/CustomStuff/ directory. In this directory create a text file called e.g. lockscreen.sh and put the following commands in the file:Code:sudo gainroot cd /usr/share/themes/plastic-dark-black/images mv LockSliderThumb.png LockSliderThumb.png.orig mv LockSliderThumbPortrait.png LockSliderThumbPortrait.png.orig
The wget command downloads an image (go to http://lastfm.dontdrinkandroot.net/ to personalize your image). The downloaded image is then renamed in order not to confuse wget the next time the script is run.Code:# simple shell script file (lockscreen.sh) cd /home/user/CustomStuff/ wget http://lastfm.dontdrinkandroot.net/tools/user/artistcloud/generationally/6month/normal_thumb.png mv normal_thumb.png thumb.png convert -negate -rotate 90 -resize 95% thumb.png lastfm.png composite -gravity south lastfm.png Fresh_series_3_bar.png lockslider.png cp lockslider.png /usr/share/themes/plastic-dark-black/backgrounds/.
The convert command changes the color in the image from black to white (-negate) and rotates it 90 degrees. In addition, the image is resized to 95%.
The composite command overlays the downloaded image onto the 800x480 lock screen image that you want to use. I have here used this image (put it in the same folder as this script). The '-gravity south' option just puts the downloaded image in the bottom of the lock screen image.
Finally the final lock screen image is copied to the theme folder.
You can now try if it works by executing the following in a terminal window:
Your lock screen should now have been updated.Code:sh /home/user/CustomStuff/lockscreen.sh
6. Use Alarmed app to automatically execute the script whenever you want. I have configured Alarmed to do it daily.
That's itIf you are not interested in last fm statistics on your lock screen, you can put anything there using this method. The ImageMagick tools are pretty powerful and also allows your to embed text onto images. So the possibilities of adding info to the lock screen are endless
![]() |
2011-02-09
, 19:01
|
Posts: 133 |
Thanked: 138 times |
Joined on Nov 2007
|
#40
|
The Following User Says Thank You to generationally For This Useful Post: | ||
I took away the 'swipe to unlock' text and the slider graphic. I then created a script containing wget and ImageMagick commands to download my Last Fm statistics as a transparent png image and overlay the image on the green background. The script then copies the final image to the 'backgrounds' folder of my theme. I use Alarmed to automatically do this once a day. So whenever the phone is locked and I press the power button, I get to see my latest Last Fm statistics.
Why? Because it is possible
Last edited by generationally; 2011-02-08 at 21:34.