This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
2018-01-25 23:37:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
if [ -d /sys/class/power_supply/BAT0 ]; then
|
2019-04-14 15:53:12 +00:00
|
|
|
bat_lvl=$(head -n 1 /sys/class/power_supply/BAT0/capacity)
|
|
|
|
bat=" $bat_lvl%"
|
2018-01-25 23:37:48 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
notify-send -t 5000 "${bat}"
|