Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions shell-scripts/power_notification.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

text=acpi | grep -w '[0-9][0-9]'
status=acpi | grep Discharging
dis="Discharging"
a=15

echo "$status"
while [ $text -lt$a ] && [ "$status" = "" ]
do
zenity --warning --title "Low Battery" --width 270 --height 100 --text="Please Connect to the Charger"
sleep 5s
done