I've created the file bellow
$ cat /etc/udev/rules.d/10-tuned.rules
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Charging", RUN+="touch /home/fx/charg"
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_STATUS}=="Discharging", RUN+="touch /home/fx/disc"
but if I connect or disconnect the power cable no files created. After creating this file I did execute
sudo udevadm control --reload-rules
for rules reloading. What I did wrong?