aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Matheus R <matheusrbarros03@gmail.com> 2021-04-16 02:27:54 +0000
committerGravatar Matheus R <matheusrbarros03@gmail.com> 2021-04-16 02:27:54 +0000
commitddfa5c39a0981f01ef322af3984e3078dc72f649 (patch)
tree9022e5c1c4f4c55b16de72705defe529dc5075ea /bin
parentc116fa3e97f7f4103f04af6f092b54e2d550ecfa (diff)
Modificado prompt para o mksh
Diffstat (limited to 'bin')
-rwxr-xr-xbin/batt2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/batt b/bin/batt
index 991f249..b21e615 100755
--- a/bin/batt
+++ b/bin/batt
@@ -21,7 +21,7 @@ batt() {
[ "$state" = "Charging" ] && icon=""
- [ "$state" = "Full" ] && icon="" && notify-send && notify-send 'Bateria completamente carregada!' 'Bateria alcançou 100%' && notif=1
+ [ "$state" = "Full" ] && icon="" && [ "$notif" -eq 0 ]&& notify-send 'Bateria completamente carregada!' 'Bateria alcançou 100%' && notif=1
printf "%s %d%%" "$icon" "$batt"
}