Thanks! I wanted to force connecting the smartphone back on the user by making the check every couple of seconds and locking. For that reason event driven approach wasn't the best fit.
A few things: 1) your home directory (/home/qertoip/) is hardcoded in the .service file, 2) this assume you're using cinnamon-screensaver, for portability you should probably have a configuration var for "lock command" or similar, and 3) you should avoid the symlink setup for /usr/lib/systemd/system/, user .service and .timer files should be put in (or symlinked into) /etc/systemd/system (see man 5 systemd.unit).
4 comments
[ 3.0 ms ] story [ 21.7 ms ] threadA few things: 1) your home directory (/home/qertoip/) is hardcoded in the .service file, 2) this assume you're using cinnamon-screensaver, for portability you should probably have a configuration var for "lock command" or similar, and 3) you should avoid the symlink setup for /usr/lib/systemd/system/, user .service and .timer files should be put in (or symlinked into) /etc/systemd/system (see man 5 systemd.unit).