mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-27 06:32:23 +00:00
8 lines
223 B
Bash
Executable file
8 lines
223 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
#output="$(upower -i /org/freedesktop/UPower/devices/battery_BAT1)"
|
|
percentage="$(cat /sys/class/power_supply/BAT1/capacity)"
|
|
status="$(cat /sys/class/power_supply/BAT1/status)"
|
|
|
|
|
|
echo "${percentage}%"
|