I'm running Linux Mint. I have a script the gets run whenever I login that remaps my mouse buttons. However, when the computer suspends, the mouse buttons revert to their default mapping.
I'd like to have my script re-run whenever the computer awakes from suspend. How can I do this? Currently I'm just calling the script from the "Startup Applications" control panel.
I already tried putting some copies of my script in subdirectories within
/etc/pm, but that didn't work.
EDIT: Actually when my computer comes out of suspend, sometimes the mouse mapping hasn't been reset. But when I turn the monitors off, then back on (using their power buttons) the mouse mapping has always been reset. How can I prevent this? (Or where can I put a script so it will run when the monitors turn back on?)