SYSTEMD · 421 bytes Raw Blame History
1 [Unit]
2 Description=Cliphist watchers (Wayland clipboard + primary selection)
3 After=graphical-session.target
4
5 [Service]
6 Type=simple
7 # Start the regular watcher in the background, then keep the primary watcher in the foreground
8 ExecStart=/bin/sh -lc '/usr/bin/wl-paste --watch /usr/bin/cliphist store & exec /usr/bin/wl-paste --primary --watch /usr/bin/cliphist store'
9 Restart=on-failure
10
11 [Install]
12 WantedBy=default.target