Skip to content
/ batify Public

Only one udevrule file triggering plug and critical battery level notifications (multi-x sessions support)

Notifications You must be signed in to change notification settings

Ventto/batify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batify

Batify is an udevrule-file triggering plug and critical battery level notifications (using libnotify and xpub)

Perks

  • No requirement: only one udevrule-file.
  • No additional script: runs graphical commands from the rule file.
  • Multi X-sessions support: displays notifications on every graphical session.

Installation

Requirements

Using libnotify, you might need to install a notification server.

Package (AUR)

$ yaourt -S batify

Manually

$ git clone --recursive https://github.com/Ventto/batify.git
$ cd batify
$ sudo make install

After installing batify, do not forget to reload udev rules:

$ udevadm control --reload-rules

Notifications

Description Level
Battery level is between 10% and 15% normal
Battery level is less than 9% critical
AC adapter plugged-in low
AC adapter unplugged low

Troubleshooting

No battery level warnings displayed

  • You might need to replace BAT0 with your battery identifier:
ACTION=="change", KERNEL=="BAT0", \

About

Only one udevrule file triggering plug and critical battery level notifications (multi-x sessions support)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •