Borrar notificar-informacion.sh

This commit is contained in:
Cat /dev/Nulo 2022-04-10 11:58:50 -03:00
parent aabbc971b5
commit c10d7ac8ce

View file

@ -1,11 +0,0 @@
#!/bin/sh
battery="$(upower -i /org/freedesktop/UPower/devices/battery_BAT0)"
get_battery_value () {
echo "$battery" | grep "$1" | awk '{ print $2 }'
}
title="$(date +%T)"
body="\
$(date +"%A %d of %B")
$(get_battery_value percentage) $(get_battery_value state)\
"
notify-send --expire-time=5000 "$title" "$body"