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

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

[Install]
WantedBy=default.target