aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user/cliphist-text.service
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:17 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:17 +0100
commitadab2a82eae921f3ca48e160e6ec5b91e3d6fa57 (patch)
tree769106e2f04cb6c7e345e2d64eebe43a4f4ab790 /dot_config/systemd/user/cliphist-text.service
parent51d6762a8fd005b7be8e761bff9e09646f62f862 (diff)
downloaddotfiles-adab2a82eae921f3ca48e160e6ec5b91e3d6fa57.tar.gz
dotfiles-adab2a82eae921f3ca48e160e6ec5b91e3d6fa57.tar.bz2
dotfiles-adab2a82eae921f3ca48e160e6ec5b91e3d6fa57.zip
feat(wayland): add cliphist clipboard history
Install cliphist and wire two user services (text + image watchers) into sway-session.target. Bind $mod+v to pick an entry via fuzzel and $mod+Shift+v to delete one.
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