3 NAG_MSG="Smartcard is still plugged in, not locking! \
5 NOLOCK_MSG="Smartcard was not removed, did not lock!"
8 LOCK_CMD+=" -i HDMI-A-2:~/Pictures/lockscreen_1080_1.png"
9 LOCK_CMD+=" -i HDMI-A-3:~/Pictures/lockscreen_1080_2.png"
11 if [ $(pgrep -c lock.magnesium) -gt 1 ]; then
14 gpg --card-status > /dev/null
16 swaynag -m "$NAG_MSG" --type warning&
19 while [ $? -ne 2 ]; do
20 if [ $counter -gt 20 ]; then
22 swaynag -m "$NOLOCK_MSG" --type error&
27 counter=$(bc <<<"${counter}+1")
28 gpg --card-status > /dev/null