feat: add cliphist service, move user services to /etc/systemd/user/
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 2s
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
This commit is contained in:
parent
25baf88a2a
commit
80c395fc14
16
defaults/etc/systemd/user/cliphist.service
Normal file
16
defaults/etc/systemd/user/cliphist.service
Normal file
@ -0,0 +1,16 @@
|
||||
# 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
|
||||
@ -85,8 +85,7 @@ spawn-at-startup "nm-applet" "--indicator"
|
||||
spawn-sh-at-startup "waypaper --restore"
|
||||
// spawn-sh-at-startup "nemo . &> /dev/null &"
|
||||
spawn-sh-at-startup "foot --server"
|
||||
spawn-sh-at-startup "mkdir -p $XDG_RUNTIME_DIR/cliphist && wl-paste --watch cliphist -db-path $XDG_RUNTIME_DIR/cliphist/db store"
|
||||
spawn-sh-at-startup "mkdir -p $XDG_RUNTIME_DIR/cliphist && wl-paste --type image --watch cliphist -db-path $XDG_RUNTIME_DIR/cliphist/db store"
|
||||
// Clipboard history managed by cliphist.service (systemd user service)
|
||||
|
||||
hotkey-overlay {
|
||||
hide-not-bound
|
||||
|
||||
@ -151,6 +151,7 @@ log "Enabling systemd user services..."
|
||||
USER_SERVICES=(
|
||||
"kanshi"
|
||||
"stasis"
|
||||
"cliphist"
|
||||
)
|
||||
|
||||
for service in "${USER_SERVICES[@]}"; do
|
||||
|
||||
@ -344,6 +344,7 @@ log "Enabling systemd user services..."
|
||||
USER_SERVICES=(
|
||||
"kanshi"
|
||||
"stasis"
|
||||
"cliphist"
|
||||
)
|
||||
|
||||
for service in "${USER_SERVICES[@]}"; do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user