dotfiles/cfg/eww/scripts/battery

7 lines
130 B
Bash
Executable file

#!/bin/bash
if cat /sys/class/power_supply/BAT1/status | grep -q "Discharging"; then
printf "";
else
printf "";
fi