13 lines
401 B
Desktop File
13 lines
401 B
Desktop File
[Unit]
|
|
Description=Cliphist text watcher
|
|
PartOf=graphical-session.target
|
|
After=graphical-session.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=/bin/sh -c 'for i in $(seq 1 50); do [ -S "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ] && exit 0; sleep 0.1; done; echo "No Wayland socket" >&2; exit 1'
|
|
ExecStart=/usr/bin/wl-paste --watch cliphist store
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|