Notification / Applet for Battery Fully Charged

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
pharmankur
Level 1
Level 1
Posts: 22
Joined: Tue Sep 11, 2018 9:09 am

Notification / Applet for Battery Fully Charged

Post by pharmankur »

Script for --- Battery Fully Charge / Discharge notification with beep and voice alert

Many cinnamon applets often offer notification for battery discharge, but while using laptop some users also prefer notification for "Battery is fully charged" . Also it is appreciated if a "Beep" with voice alert is provided for immediate action. I have prepared a simple script which will create this notifications script and also set it to crontab.

1. Download file "Create_Battery_Notification.sh" in your /home/$user (Actual User Name)
2. Open terminal and make it executable --

Code: Select all

chmod 700 ~/Create_Battery_Notification.sh
3. Now in terminal , run the script by ---

Code: Select all

bash ~/Create_Battery_Notification.sh
-- Thats all . Now you will be notified by battery status with beep and voice alert

4. Now you can safety delete "Create_Battery_Notification.sh" in your /home/$user

Code: Select all

rm ~/Create_Battery_Notification.sh
--------- Download Script File and Save as "Create_Battery_Notification.sh" ------
Create_Battery_Notification.sh.txt
Remove .txt
(6.93 KiB) Downloaded 40 times
--- Somehow this file was not getting attached so renamed it as .txt You need to name it back to .sh
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
1000
Level 6
Level 6
Posts: 1039
Joined: Wed Jul 29, 2020 2:14 am

Re: Notification / Applet for Battery Fully Charged

Post by 1000 »

If you upload code like text instead between [ code ] [ /code ]
then some characters may be misrepresented and the code may not work.

Edit
Tutorials section is better, however wiki divided into sections would be even better if will exist in future.
Edit
However forget what I wrote about the section.
Because I see everyone is pasting their script here.
pharmankur
Level 1
Level 1
Posts: 22
Joined: Tue Sep 11, 2018 9:09 am

Re: Notification / Applet for Battery Fully Charged

Post by pharmankur »

1000 wrote: Thu Sep 10, 2020 5:04 pm
Edit
Tutorials section is better, however wiki divided into sections would be even better if will exist in future.
I am trying that for almost an year, but when I submit the tutorial, it stupidly shows error :
- Access Denied - Sucuri Website Firewall
If you are the site owner (or you manage this site), please whitelist your IP or if you think this block is an error please open a support ticket and make sure to include the block details (displayed in the box below), so we can assist you in troubleshooting the issue.
Block reason: Exploit attempt denied.
And on support ticket there is nothing ! .. BLANK PAGE ! ... So out of frustration , stopped writing tutorial on community.linuxmint.com/tutorial
Locked

Return to “Scripts & Bash”