polybar-scripts/polybar-scripts/battery-combined-udev
x70b1 d14ac7da6c battery-combined-udev: use a pid file 2018-07-29 15:05:01 +02:00
..
95-battery.rules add battery-combined-udev 2018-01-26 07:10:49 +01:00
README.md battery-combined-udev: use a pid file 2018-07-29 15:05:01 +02:00
battery-combined-udev.sh battery-combined-udev: use a pid file 2018-07-29 15:05:01 +02:00

README.md

Script: battery-combined-udev

A shell script that shows the battery status. This is an extended version of battery-combined-shell.

It supports two rechargeable batteries and changing icons. It works even if only one battery is used.

This script is able to display power supply changes in real time. For this udev is being used.

Configuration

Copy 95-battery.rules to /etc/udev/rules.d/95-battery.rules. Make sure that the paths in the file have been modified properly.

Also change the file path in line #65.

Module

[module/battery-combined-udev]
type = custom/script
exec = ~/polybar-scripts/battery-combined-udev.sh
tail = true