3 ms·
Or better yet, let udev trigger do the hard work of watching for you. Just add one line to /etc/udev/rules.d/99-my.rules file: ACTION=="remove", ENV{ID_SERIA
by kees99 8y ago
Or better yet, let udev trigger do the hard work of watching for you. Just add one line to /etc/udev/rules.d/99-my.rules file:
ACTION=="remove", ENV{ID_SERIAL}=="Pixel_3_0a7...", RUN+="/usr/bin/screensaver-lock-script"
To find out your phone's ID_SERIAL string, run this then plug in:
udevadm monitor -up