Skip to content

asapdotid/battery-alert-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Battery Alert for Linux

Low battery warning program for Linux users written in bash

Requirements

Installasi:

  1. 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`
  2. 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
  3. Restart

i3wm Setup

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 &

Check Battery Alert running

ps aux | grep battery-alert

If any issue please contact me @asapdotid 😃

About

Battery warning program for Linux users written in bash

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages