View Single Post
eefo's Avatar
Posts: 1,444 | Thanked: 461 times | Joined on Dec 2010 @ pakistan
#1
i was in search of this for very long and finally i have it
if you are a text freak as i am a , then you might be facing it annoying to lock and unlock the screen by using the lock keys :P
now here is a solution but it is just to lock the screen as scripts only run on the screen not on the hardware :P


Open leafpad from xterm using
Code:

Code:
leafpad
Create a .desktop file that looks like this:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=Lock
Exec=dbus-send --system --type=method_call
--dest=com.nokia.mce /com/nokia/mce/request
com.nokia.mce.request.req_tklock_mode_change string:"locked"
Icon=general_locked
Once that is done click on the top bar, and go to "Save As" - name the file "lock.desktop" and where it asks for location (currently says "/") change that to your device (click on the "/" button then click on your device name on the next pop-up - this will be the root of MyDocs folder in your device)

Open a new terminal window and become root

Code:
root
mv /home/user/MyDocs/lock.desktop /usr/share/applications/hildon/
Next open the settings on your desktop and "Add Shortcut" - add the shortcut called "Lock" and press it for fullscreen lockery shenanigans. Enjoy.




a BIG BIG BIG thanks to "nicolai" for the script and "Switch" to help me out

Last edited by eefo; 2011-03-03 at 08:21.
 

The Following 5 Users Say Thank You to eefo For This Useful Post: