3 NAG_MSG="Smartcard is still plugged in, not locking! \
5 NOLOCK_MSG="Smartcard was not removed, did not lock!"
7 gpg --card-status > /dev/null
9 swaynag -m "$NAG_MSG" --type warning&
12 while [ $? -ne 2 ]; do
13 if [ $counter -gt 20 ]; then
15 swaynag -m "$NOLOCK_MSG" --type error&
20 counter=$(bc <<<"${counter}+1")
21 gpg --card-status > /dev/null
25 pkill -u ${UID} swayidle --signal USR1