The file /etc/acpi/events/asus-touchpad calls /etc/acpi/asus-touchpad.sh. If you prefer to create a new action file called asus-touchpad-switch.sh then you have to modify the action field in /etc/acpi/events/asus-touchpad. Another solution is to edit directly the action file, as the event file is okay.
For the notification I use this:
notify-send -i /usr/share/icons/hicolor/scalable/actions/touchpad-enabled.svg -t 3000 " TOUCHPAD ON" "
Press Fn+F9 to disable"
notify-send -i /usr/share/icons/hicolor/scalable/actions/touchpad-disabled.svg -t 3000 " TOUCHPAD OFF" "
Press Fn+F9 to enable"
For the wireless led, if found that if we comment out
echo 1 > /sys/class/ieee80211/phy0/rfkill1/state
echo 0 > /sys/class/ieee80211/phy0/rfkill1/state
then the led is not always synchronized with the wireless state, sometimes it's on when the wireless is off, and the other way around.
EDIT: I was wrong about the wireless switch, now instructions are updated.
Bookmarks