battery script using libnotify