Active Topics

 


Reply
Thread Tools
Posts: 133 | Thanked: 138 times | Joined on Nov 2007
#31
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 possible Maybe a weather forecast or other info downloaded from the net would be more useful

Last edited by generationally; 2011-02-08 at 21:34.
 

The Following 18 Users Say Thank You to generationally For This Useful Post:
Weedalot's Avatar
Posts: 109 | Thanked: 20 times | Joined on May 2010
#32
Originally Posted by generationally View Post
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 possible Maybe a weather forecast or other info downloaded from the net would be more useful
looks epic, can you share how you do that? and you still need to slide to unlock right?
 
Posts: 133 | Thanked: 138 times | Joined on Nov 2007
#33
Originally Posted by Weedalot View Post
looks epic, can you share how you do that? and you still need to slide to unlock right?
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:
Code:
sudo gainroot
apt-get install wget
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
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
3. Remove the 'swipe to unlock' text as described in this thread. I followed these exact instructions.
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:

Code:
sudo gainroot
cd /usr/share/themes/plastic-dark-black/images
mv LockSliderThumb.png LockSliderThumb.png.orig
mv LockSliderThumbPortrait.png LockSliderThumbPortrait.png.orig
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:
# 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 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.
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:
Code:
sh /home/user/CustomStuff/lockscreen.sh
Your lock screen should now have been updated.

6. Use Alarmed app to automatically execute the script whenever you want. I have configured Alarmed to do it daily.

That's it If 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
 

The Following 15 Users Say Thank You to generationally For This Useful Post:
Posts: 225 | Thanked: 64 times | Joined on Feb 2010
#34
Originally Posted by Jedibeeftrix View Post
why would you use it when the side catch is so much quicker?
Because you require two hands for such an operation

One hand:
Grip phone
Tap power
Swipe screen

There's no good way to hold the phone and swipe the spring catch with the same hand; I can only get away with it because my hands are more than twice the size of the phone and it still involves bending an index finger uncomfortably, or holding the phone precariously
 
stickymick's Avatar
Posts: 1,079 | Thanked: 1,019 times | Joined on Mar 2010
#35
 

The Following 8 Users Say Thank You to stickymick For This Useful Post:
Switch_'s Avatar
Posts: 601 | Thanked: 549 times | Joined on Mar 2010 @ Redditch, UK
#36
Oh we have a winner!
__________________
---<|| Alt + F4 for GOD MODE ||>---
---<|| Deviant Art Linky Linky ||>---
 
stickymick's Avatar
Posts: 1,079 | Thanked: 1,019 times | Joined on Mar 2010
#37
I haven't actually implemented it yet, I just knocked it up.......... I mean created that in PSP. Just reading through the thread to see how to apply it.
 
Weedalot's Avatar
Posts: 109 | Thanked: 20 times | Joined on May 2010
#38
ok its a win :P cool fly
if we could update the background while unziping it would be even legen...........wait for it.............dary
 
Posts: 114 | Thanked: 109 times | Joined on Nov 2010 @ Finland
#39
Originally Posted by generationally View Post
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:
Code:
sudo gainroot
apt-get install wget
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
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
3. Remove the 'swipe to unlock' text as described in this thread. I followed these exact instructions.
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:

Code:
sudo gainroot
cd /usr/share/themes/plastic-dark-black/images
mv LockSliderThumb.png LockSliderThumb.png.orig
mv LockSliderThumbPortrait.png LockSliderThumbPortrait.png.orig
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:
# 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 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.
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:
Code:
sh /home/user/CustomStuff/lockscreen.sh
Your lock screen should now have been updated.

6. Use Alarmed app to automatically execute the script whenever you want. I have configured Alarmed to do it daily.

That's it If 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
Someone should make a desktop widget based on this!
 

The Following 2 Users Say Thank You to Keneraali For This Useful Post:
Posts: 133 | Thanked: 138 times | Joined on Nov 2007
#40
Originally Posted by Keneraali View Post
Someone should make a desktop widget based on this!
This can easily be used as a sort of poor man's 'desktop widget'.

The method works by downloading some info from the net at regular intervals and then embedding that info into a chosen part of the used theme. In this case, it was the lock screen graphic but it could just as well be one of the desktop wallpapers.

E.g. a downscaled last fm stats image could be embedded into one corner of one of the desktop wallpapers on top of a transparent black rectangle so that it visually would resemble a traditional desktop widget. And voila, you have your own 'desktop widget' which automatically updates it information at a chosen interval right on your desktop.

Last edited by generationally; 2011-02-09 at 19:03.
 

The Following User Says Thank You to generationally For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:40.