aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user/cliphist-text.service
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/systemd/user/cliphist-text.service')
-rw-r--r--dot_config/systemd/user/cliphist-text.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/dot_config/systemd/user/cliphist-text.service b/dot_config/systemd/user/cliphist-text.service
new file mode 100644
index 0000000..96b0602
--- /dev/null
+++ b/dot_config/systemd/user/cliphist-text.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Clipboard history (text) via cliphist
+PartOf=graphical-session.target
+After=graphical-session.target
+ConditionEnvironment=WAYLAND_DISPLAY
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/wl-paste --type text --watch cliphist store
+Restart=on-failure
+RestartSec=2s
+
+[Install]
+WantedBy=sway-session.target