mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 22:30:51 +00:00
Including services before wakeup and after sleep
This commit is contained in:
parent
f0173999cd
commit
1c3ddb2201
10
Services/after-wakeup.service
Normal file
10
Services/after-wakeup.service
Normal file
@ -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
|
11
Services/before-sleep.service
Normal file
11
Services/before-sleep.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user