droid4-sys

Droid4 tools
git clone git://parazyd.org/droid4-sys.git | https://git.parazyd.org/droid4-sys
Log | Files | Refs | LICENSE

powerkey (275B)


      1 #!/bin/sh
      2 
      3 export DISPLAY=:0
      4 xset dpms force off
      5 slock
      6 
      7 #state="$(cat /tmp/droid4-status)"
      8 #case "$state" in
      9 #on)
     10 #	backlight -l off
     11 #	#backlight -k off
     12 #	echo off > /tmp/droid4-status
     13 #	;;
     14 #off)
     15 #	backlight -l on
     16 #	#backlight -k on
     17 #	echo on > /tmp/droid4-status
     18 #	;;
     19 #esac