14 lines
273 B
Bash
Executable file
14 lines
273 B
Bash
Executable file
#!/usr/bin/env dash
|
|
|
|
if usbctl check; then
|
|
TEXT="\uf023"
|
|
TOOLTIP="PROTECTED"
|
|
CLASS="protected"
|
|
else
|
|
TEXT="\uf3c1"
|
|
TOOLTIP="UNPROTECTED"
|
|
CLASS="unprotected"
|
|
fi
|
|
|
|
env echo "{\"text\": \"${TEXT}\", \"tooltip\": \"${TOOLTIP}\", \"class\": \"${CLASS}\"}"
|