Eu criei o arquivo abaixo
$ 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 /ho...
13.09.2014 / 11:14