dgy
/
hexagons
Archived
1
0
Fork 0
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.
hexagons/bin/batt

8 lines
176 B
Bash
Executable File

#!/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}"