very outdated but a bit less outdated than it was before
This commit is contained in:
parent
ccdca7c67e
commit
7c48d260e3
11 changed files with 159 additions and 14 deletions
16
.config/i3blocks/scripts/battery
Executable file
16
.config/i3blocks/scripts/battery
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue