Low battery warning program for Linux users written in bash
-
Clone this project to:
git clone https://github.com/asapdotid/linux-battery-alert.git ~/.config/battery-alert
or
git clone https://github.com/asapdotid/linux-battery-alert.git ~/.local/bin/battery-alert`
-
Setup autostart
battery-alert
:-
mkdir -p ~/.config/autostart
(if not exist)
-
nano ~/.config/autostart/Battery-Alert
(editor: nano/gedit/vim/nvim)
[Desktop Entry] Name=Battery-Alert Comment=Notification for battery alert Exec=~/.config/battery-alert/battery-alert & Type=Application Terminal=false Hidden=false
or
[Desktop Entry] Name=Battery-Alert Comment=Notification for battery alert Exec=~/.local/bin/battery-alert/battery-alert & Type=Application Terminal=false Hidden=false
-
-
Restart
Add start battery-alert
to i3 config
:
exec --no-startup-id ~/.config/battery-alert/battery-alert &
or
exec --no-startup-id ~/.local/bin/battery-alert/battery-alert &
ps aux | grep battery-alert
If any issue please contact me @asapdotid 😃