i3blocks-config/scripts/check_security_key

13 lines
259 B
Plaintext
Raw Normal View History

2024-02-08 18:36:37 -05:00
#!/bin/sh
msg_connected="✓ Security key connected"
msg_disconnected="𐄂 Security key not connected\n"
lsusb | grep Lexar > /dev/null
if [ "$?" == 0 ]; then
printf "[✓] Security key connected.\n"
else
printf "[𐄂] Security key disconnected.\n"
fi