[systemd] Add path check for MP3 scrobbles
This commit is contained in:
9
systemd/.config/systemd/user/usb-move.path
Normal file
9
systemd/.config/systemd/user/usb-move.path
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Watch for USB mount to trigger file move
|
||||
|
||||
[Path]
|
||||
PathExists=/media/powellc/SANSA
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
6
systemd/.config/systemd/user/usb-move.service
Normal file
6
systemd/.config/systemd/user/usb-move.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Move scrobble file when Sansa device is mounted
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/bin/usb-move.sh
|
||||
Reference in New Issue
Block a user