Ubuntu has a nice tutorial for this here. But Fedora does not have acpi installed. So, after installing and creating an event, a custom script and then reloading acpi the button is not registered by acpi.
One thing to note is that the typical acpid location is in /etc/inti.d/acpid but this installed one for Fedora is in /usr/sbin/acpid.
sudo /usr/sbin/acpid -f:
Failed to set bus address: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
I am also getting errors with
unconfirmed which I believe is relating to SELinux not happy with the permissions of acpid?
Any help on getting a custom script to run on a acpi key would be very helpful.