Borrar notificar-informacion.sh
This commit is contained in:
parent
aabbc971b5
commit
c10d7ac8ce
1 changed files with 0 additions and 11 deletions
|
@ -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"
|
|
Loading…
Reference in a new issue