chezmoi/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/95-battery.rules
2020-07-14 15:19:48 +02:00

5 lines
264 B
Plaintext

SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", \
RUN+="/home/user/.config/polybar/battery-combined-udev.sh --update"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", \
RUN+="/home/user/.config/polybar/battery-combined-udev.sh --update"