[Unit] Description=Run helper on wake from sleep; restores screenpad state prior to sleep. Before=systemd-suspend.service StopWhenUnneeded=yes [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/local/bin/screenpad_wake_helper.sh pre ExecStop=/usr/local/bin/screenpad_wake_helper.sh post [Install] WantedBy=sleep.target