From f90b364f7c98d98a91c382d5ef844cd31ef619d0 Mon Sep 17 00:00:00 2001 From: 0scar Date: Wed, 16 Aug 2023 16:30:21 +0200 Subject: Add adapter state-update udev rule This will notify a running DWL statusbar instace that the power icon should be updated. --- usr/lib/udev/rules.d/96-adapter-notify.rules | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 usr/lib/udev/rules.d/96-adapter-notify.rules (limited to 'usr/lib/udev') diff --git a/usr/lib/udev/rules.d/96-adapter-notify.rules b/usr/lib/udev/rules.d/96-adapter-notify.rules new file mode 100644 index 0000000..3901af3 --- /dev/null +++ b/usr/lib/udev/rules.d/96-adapter-notify.rules @@ -0,0 +1,2 @@ +# handle change of power source ac/bat, ignore input device batteries +ACTION=="change", SUBSYSTEM=="power_supply", KERNEL!="hidpp_battery*", RUN+="/usr/local/bin/sigblock -b bat" -- cgit v1.3