Skip to content

Xartoks/batify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batify

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

Changes in this fork

  • Battery level threshold for when notifications are sent
  • Transient notifications support (using notify-send -e)
  • Each notification replaces the previous one sent by Batify (no stacking/overlapping)
  • Uses an external script: batify.sh

Perks

  • Minimal: only one udevrule-file and one script file(using libnotify).
  • Everywhere: displays notifications on any current graphical session.
  • Support: for XWayland as well.

Installation

Requirements

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

Manually

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

Notifications

Description Level
Battery level is 10,15 or 20% normal
Battery level is less or equal to 5% 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)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 67.9%
  • Makefile 32.1%