aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/events-resume.service
blob: b8bce6aea8c17b8a06256c61515f1317e8940af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Execute events on resume event

[Service]
Type=simple
ExecStart=/usr/bin/env sh -c 'dbus-monitor --system | while read; do grep -q 'PrepareForSleep' && %h/.local/bin/scripts/events-resume; done'
Restart=always
RestartSec=5s
SyslogIdentifier=events-resume

[Install]
WantedBy=default.target