|
Page 2 of 2 |
|
Prev |
1 2
|
Re: is there any way to come to lockscreen by pressing volume or camera key than power key???
1.dbus-scripts.d
made a file "lock" with " /home/user/MyDocs/.documents/wl.sh * * com.nokia.mce.signal tklock_mode_ind locked /home/user/MyDocs/.documents/wu.sh * * com.nokia.mce.signal tklock_mode_ind unlocked" 2. in .documents : -> wl.sh - #!/bin/sh cd /home/user/MyDocs?.documents sed 's/locked/unlocked/g' lock.sh > ltemp.sh ( tried to directly output it to lock.sh but it gave a blank lock.sh) mv ltemp.sh lock.sh wu.sh - #!/bin/sh cd /home/user/MyDocs/.documents sed 's/unlocked/locked/g' lock.sh > utemp.sh mv utemp.sh lock.sh lock.sh dbus-send ... to lock n unlock ..... req_tklock_mode_change string:'locked' 3. in shortcutd short press -> custom shell command "sh /home/user/MyDocs/lock.sh' but its not working.... its either just locking or unlocking.... |
Re: is there any way to come to lockscreen by pressing volume or camera key than power key???
GOT IT WORKING :) :)
shortcutd with dis script --> if dbus-send --print-reply --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_tklock_mode | grep -q unlocked then dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked" else dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"unlocked" fi |
| All times are GMT. The time now is 14:19. |
Page 2 of 2 |
|
Prev |
1 2
|
vBulletin® Version 3.8.8