X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/41bdbcf97da19f7196d2f8f7b52fc9a738865933..08dabc2e5793981735b16def05edd9514f4dbff0:/systemd/system/suspend@.service?ds=sidebyside diff --git a/systemd/system/suspend@.service b/systemd/system/suspend@.service new file mode 100644 index 0000000..addaeb9 --- /dev/null +++ b/systemd/system/suspend@.service @@ -0,0 +1,12 @@ +# Proxy the system suspend.target to a users suspend.target. Enable with: +# systemctl enable suspend@$(whoami) +[Unit] +Description=Call user's suspend target when system suspends +After=suspend.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/systemctl --user --machine=%i@ start --wait suspend.target + +[Install] +WantedBy=suspend.target