I'm trying to use a script to shut off a smart plug I have when the system goes to sleep and turn it back on when the system wakes up. I've put the following script inside /lib/systemd/system-sleep/ #!/bin/sh /usr/local/bin/smartdeck sleep > $HOME/sleep.txt But it seems that by the time that...