diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2023-08-16 14:30:21 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2023-08-16 14:30:21 +0000 |
| commit | f90b364f7c98d98a91c382d5ef844cd31ef619d0 (patch) | |
| tree | e4b8659ecd5825421a820b4c172a5d3419e05670 /usr/lib/udev/rules.d/96-adapter-notify.rules | |
| parent | 924e8f1544c02724203112e699c176f49c800b5c (diff) | |
Add adapter state-update udev rule
This will notify a running DWL statusbar instace that the power icon
should be updated.
Diffstat (limited to 'usr/lib/udev/rules.d/96-adapter-notify.rules')
| -rw-r--r-- | usr/lib/udev/rules.d/96-adapter-notify.rules | 2 |
1 files changed, 2 insertions, 0 deletions
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" |
