very outdated but a bit less outdated than it was before

This commit is contained in:
Alexey 2026-07-04 19:34:42 +03:00
commit 7c48d260e3
11 changed files with 159 additions and 14 deletions

View file

@ -0,0 +1,16 @@
#!/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