2026-11-07 17:03:12 +02:00
|
|
|
# Bananarchy battery/charger statusbar hook (U4).
|
|
|
|
|
# Only the two PM8916 supplies exist on these devices; filtering avoids
|
|
|
|
|
# spawning a shell for unrelated power_supply change events.
|
|
|
|
|
SUBSYSTEM=="power_supply", ACTION=="change", KERNEL=="pm8916-bms-vm", RUN+="/bin/sh -c 'DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 /usr/share/sxmo/default_hooks/sxmo_hook_battery.sh udev >/dev/null 2>&1 &'"
|
|
|
|
|
SUBSYSTEM=="power_supply", ACTION=="change", KERNEL=="pm8916-lbc-chgr", RUN+="/bin/sh -c 'DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/10000 /usr/share/sxmo/default_hooks/sxmo_hook_battery.sh udev >/dev/null 2>&1 &'"
|