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

17 lines
234 B
Plaintext
Raw Normal View History

2017-07-26 14:00:04 -04:00
#!/bin/bash
if [[ -c /dev/video0 ]]; then
if [[ "$(fuser /dev/video0)" != "" ]]; then
echo "rec"
echo "rec"
echo ""
else
echo "on"
echo "on"
echo ""
else
echo "off"
echo "off"
echo ""
fi
fi