6 lines
168 B
Bash
Executable File
6 lines
168 B
Bash
Executable File
#!/bin/bash
|
|
CAP=$(cat /sys/class/power_supply/hid-3c:34:64:0b:32:d6-battery/capacity 2>/dev/null)
|
|
if [ -n "$CAP" ] && [ "$CAP" -lt 20 ]; then
|
|
echo "⌨ ${CAP}%"
|
|
fi
|