You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
349 B

#!/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