Skip to content

Commit

Permalink
add systemd user service
Browse files Browse the repository at this point in the history
  • Loading branch information
milaq committed Feb 10, 2024
1 parent 0f4c279 commit c4ee870
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ inside the <code>Makefile</code><br>

## Running

Just add `xmousepasteblock` to your startup script/config.
Just add `xmousepasteblock` to your startup script/config or use the included systemd user service.

Note: If you're using any kind of clipboard manager, make sure it does not prevent clearing the PRIMARY selection. By default, Klipper (KDE's stock clipboard manager) *does* prevent this type of clearing. Klipper users, look below for additional instructions.

Expand Down
12 changes: 12 additions & 0 deletions xmousepasteblock.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=XmousePasteBlock - Userspace tool to disable middle mouse button paste in Xorg
After=graphical-session.target

[Service]
Type=simple
ExecStart=/usr/bin/xmousepasteblock
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=graphical-session.target

0 comments on commit c4ee870

Please sign in to comment.