1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-12-11 05:52:21 -05:00
dotfiles/cfg/i3blocks/laptop/blocks/usb

15 lines
218 B
Plaintext
Raw Normal View History

2017-07-26 14:00:04 -04:00
#!/bin/bash
DEVICE_NAME="${BLOCK_INSTANCE:-Keyboard}"
DEVICE_INFO=$(lsusb | grep -i "${DEVICE_NAME}")
if [[ "${DEVICE_INFO}" != "" ]]; then
echo "on"
echo "on"
echo ""
else
echo "na"
echo "na"
echo ""
fi