mirror of
https://github.com/Derisis13/dotfiles.git
synced 2025-12-07 03:42:50 +01:00
fix(cliphist): re-implement cliphist for uwsm
This commit is contained in:
22
systemd/user/cliphist.service
Normal file
22
systemd/user/cliphist.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Clipboard history “manager” for wayland
|
||||
Documentation=https://github.com/sentriz/cliphist
|
||||
# order startup after WM
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
# Repurpose XDG Autostart filtering
|
||||
ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" ""
|
||||
ExecStart=wl-paste --watch cliphist -max-items 50 store
|
||||
Restart=on-failure
|
||||
Slice=app-graphical.slice
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
# Alternatively can be wanted by specific WMs' targets
|
||||
# Should also be duplicated in 'After=' to avoid ordering loop
|
||||
#WantedBy=wayland-session@sway.desktop.target
|
||||
#WantedBy=wayland-session@wayfire.desktop.target
|
||||
#WantedBy=wayland-session@labwc.desktop.target
|
||||
#WantedBy=wayland-session@hyprland.desktop.target
|
||||
Reference in New Issue
Block a user