Skip to content

Commit

Permalink
Add uninstall script (closes #38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Saveau committed Oct 27, 2024
1 parent b472d92 commit dcf31f6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ Install the [server](server/ringboard-server.service) and [X11](x11/ringboard-x1

You'll need to start the Ringboard server and X11/Wayland clipboard watcher on boot.

### Uninstalling

Run

```sh
curl -s https://raw.githubusercontent.com/SUPERCILEX/clipboard-history/master/uninstall.sh | bash
```

## Migrating from existing clipboard managers

Tooling is provided to migrate from other clipboard managers. Run:
Expand Down
18 changes: 18 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

systemctl --user disable ringboard-server --now
systemctl --user disable ringboard-x11 --now
systemctl --user disable ringboard-wayland --now
systemctl --user daemon-reload

rm ~/.config/systemd/user/ringboard*
rm ~/.local/share/applications/ringboard*
rm ~/.local/share/icons/hicolor/1024x1024/ringboard*

cargo uninstall \
clipboard-history-server \
clipboard-history-x11 \
clipboard-history-wayland \
clipboard-history-tui \
clipboard-history-egui \
clipboard-history

0 comments on commit dcf31f6

Please sign in to comment.