Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>master
parent
f4ee396394
commit
6426a94e46
4 changed files with 40 additions and 4 deletions
@ -0,0 +1,18 @@ |
|||||||
|
#!/usr/bin/env sh |
||||||
|
|
||||||
|
proximitylockdisable() { |
||||||
|
notify-send "Proximity Lock Disabled" |
||||||
|
pkill -f "$(command -v sxmo_proximitylock.sh)" |
||||||
|
exit 0 |
||||||
|
} |
||||||
|
|
||||||
|
proximitylockenable() { |
||||||
|
notify-send "Proximity Lock Enabled" |
||||||
|
setsid -f sxmo_proximitylock.sh & |
||||||
|
} |
||||||
|
|
||||||
|
if pgrep -f "$(command -v sxmo_proximitylock.sh)"; then |
||||||
|
proximitylockdisable |
||||||
|
else |
||||||
|
proximitylockenable |
||||||
|
fi |
Loading…
Reference in new issue