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.
|
#!/bin/bash
|
|
if [ -d /sys/class/power_supply/BAT0 ]; then
|
|
bat_lvl=`head -n 1 /sys/class/power_supply/BAT0/capacity`
|
|
bat=" $bat_lvl%"
|
|
fi
|
|
|
|
notify-send -t 5000 "${bat}"
|