View Single Post
lorenzo's Avatar
Posts: 491 | Thanked: 299 times | Joined on Jul 2012 @ Pordenone IT
#1220
script - activate fackelock during travels
https://www.dropbox.com/s/xe55zh6h3z5yhq8/flON.sh
https://www.dropbox.com/s/ovy66a1upznli8l/flOFF.sh
set facelock on then from terminal
Code:
devel-su (rootme = your password)
sh /home/user/scripts/flOFF.sh
doing this facelock doesn't drain battery but can be activated by the rule

in profilematic rule
condition calendar, (keyword facelockon, it must be in the event title)
custom action
Code:
rule's activation
sh -c "echo rootme | devel-su -c 'sh /home/user/scripts/flON.sh'"
rule's deactivation
sh -c "echo rootme | devel-su -c 'sh /home/user/scripts/flOFF.sh'"
 

The Following 2 Users Say Thank You to lorenzo For This Useful Post: