i3blocks-config/scripts/check_security_key
2025-04-17 21:56:51 -04:00

13 lines
230 B
Bash
Executable File

#!/bin/sh
msg_connected="✓ Security key connected"
msg_disconnected="𐄂 Security key not connected\n"
lsusb | grep Emtec > /dev/null
if [ "$?" == 0 ]; then
printf "[ ✓ ] Unlocked.\n"
else
printf "[ 𐄂 ] Locked.\n"
fi