11 lines
202 B
Bash
Executable file
11 lines
202 B
Bash
Executable file
#!/bin/sh
|
|
capacity=$(cat /sys/class/power_supply/BAT1/capacity)
|
|
status=$(cat /sys/class/power_supply/BAT1/status)
|
|
|
|
if [ $status = 'Charging' ]; then
|
|
|
|
icon=''
|
|
fi
|
|
|
|
echo $icon $capacity
|