mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-12 19:54:16 +00:00
23 lines
651 B
Markdown
23 lines
651 B
Markdown
|
# Script: battery-combined-udev
|
||
|
|
||
|
A shell script that shows the battery status. This is an extended version of [battery-combined-shell](../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.
|
||
|
|
||
|
|
||
|
## Module
|
||
|
|
||
|
```ini
|
||
|
[module/battery-combined-udev]
|
||
|
type = custom/script
|
||
|
exec = ~/polybar-scripts/battery-combined-udev.sh
|
||
|
tail = true
|
||
|
```
|