aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/autocutsel.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/autocutsel.service')
-rw-r--r--.config/systemd/user/autocutsel.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/systemd/user/autocutsel.service b/.config/systemd/user/autocutsel.service
new file mode 100644
index 0000000..82e822b
--- /dev/null
+++ b/.config/systemd/user/autocutsel.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Keep the X clipboard and the cutbuffer in sync
+
+[Service]
+Type=forking
+RestartSec=3s
+Restart=always
+SyslogIdentifier=autocutsel
+ExecStartPre=/usr/bin/env autocutsel -f -s PRIMARY
+ExecStart=/usr/bin/env autocutsel -f -s CLIPBOARD
+
+[Install]
+WantedBy=default.target