dotfiles/acpi_hotkeys/lock.sh

10 lines
140 B
Bash

#!/bin/sh
LOCK_FILE=/tmp/tp-antitheft.lock
touch $LOCK_FILE
/usr/local/bin/tp-antitheft &
vlock -n &&
pkill tp-antitheft
rm -f $LOCK_FILE