2 # Sends a notification with the time, battery level, and volume
5 date "+%A %Y-%m-%d, %r"
9 echo -n "$(upower -d | grep percentage | tail -c 5)"
10 if [[ $(upower -d | grep "discharging") ]]; then
12 echo "$(upower -d | grep "time to empty" | tail -c 15) remaining"
15 echo "$(upower -d | grep "time to full" | tail -c 15) until charged"
20 echo "$(amixer sget Master | tail -n 1 | tail -c +21)"
23 notify-send "$(time_set)" "$(power_set)\n$(volume_set)"