diff --git a/Services/after-wakeup.service b/Services/after-wakeup.service new file mode 100644 index 0000000..9fdb467 --- /dev/null +++ b/Services/after-wakeup.service @@ -0,0 +1,10 @@ +[Unit] +Description=Bruno Fontes script after wakeup +After=suspend.target + +[Service] +Type=simple +ExecStart=/usr/bin/systemctl restart openvpn-client@privatvpn.service + +[Install] +WantedBy=suspend.target diff --git a/Services/before-sleep.service b/Services/before-sleep.service new file mode 100644 index 0000000..272fee2 --- /dev/null +++ b/Services/before-sleep.service @@ -0,0 +1,11 @@ +[Unit] +Description=Bruno Fontes script before sleep +Before=sleep.target + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +ExecStart=echo "" + +[Install] +WantedBy=sleep.target