16 lines
276 B
Bash
Executable file
16 lines
276 B
Bash
Executable file
#!/usr/bin/bash
|
|
source ~/.cache/wal/colors.sh
|
|
|
|
charge=$(acpi -b | cut -d ' ' -f 4 | tr -d % | tr -d ,)
|
|
|
|
if [ $charge -lt 20 ]; then
|
|
color=$color10
|
|
elif [ $charge -lt 75 ]; then
|
|
color=$color11
|
|
else
|
|
color=$color14
|
|
fi
|
|
|
|
echo ⚡ $charge%
|
|
echo ⚡ $charge%
|
|
echo $color
|