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

[Service]
Type=simple
RestartSec=3
Restart=always
SyslogIdentifier=events-usb
ExecStart=/usr/bin/env sh -c 'udevadm monitor | while read; do grep -m1 -q "(usb)" && %h/.local/bin/scripts/events-usb; done'

[Install]
WantedBy=default.target