All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 2s
- Add cliphist.service that wipes clipboard history on session start (crash-safe: cleans up at next boot, not at shutdown) - Move kanshi, walker, nautilus services from ~/.config/systemd/user/ to /etc/systemd/user/ (system-level defaults, consistent with moonarch's config philosophy) - Remove cliphist spawn-sh-at-startup from niri config (managed by systemd service now) - Add cliphist to USER_SERVICES in post-install.sh and transform.sh Closes #1
17 lines
611 B
Desktop File
17 lines
611 B
Desktop File
# ABOUTME: systemd user service for clipboard history (cliphist + wl-paste).
|
|
# ABOUTME: Stores text and image clipboard entries, wipes history on session end.
|
|
|
|
[Unit]
|
|
Description=Clipboard history manager
|
|
PartOf=graphical-session.target
|
|
After=graphical-session.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStartPre=/usr/bin/cliphist wipe
|
|
ExecStart=/bin/sh -c 'mkdir -p $XDG_RUNTIME_DIR/cliphist && wl-paste --watch cliphist -db-path $XDG_RUNTIME_DIR/cliphist/db store & wl-paste --type image --watch cliphist -db-path $XDG_RUNTIME_DIR/cliphist/db store &'
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=graphical-session.target
|