You are not logged in.

#1 2023-09-23 18:01:53

illegalcoding
Member
Registered: 2023-09-23
Posts: 7

[SOLVED] Retain clipboard after application is closed

I've noticed that whenever I copy something from an application, then close it, my clipboard gets wiped. It seems this is an intended feature, but I can achieve desired functionality with the use of a clipboard manager. However, the ones I found are archived on github, or just not working, so does anyone know anything that just simply works for this purpose and is easy to set up?

Last edited by illegalcoding (2023-09-24 14:47:24)

Offline

#2 2023-09-23 18:02:29

illegalcoding
Member
Registered: 2023-09-23
Posts: 7

Re: [SOLVED] Retain clipboard after application is closed

Also, i'm running KDE under Wayland if that helps.

Offline

#3 2023-09-23 18:03:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: [SOLVED] Retain clipboard after application is closed

https://wiki.archlinux.org/title/Clipboard#Tools

https://wiki.archlinux.org/title/Clipboard#Managers

If this is for X11, I always used xsel, but xclip is common too.

Last edited by Trilby (2023-09-23 18:05:00)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2023-09-23 22:40:35

illegalcoding
Member
Registered: 2023-09-23
Posts: 7

Re: [SOLVED] Retain clipboard after application is closed

It's not X11, I'm running Wayland. I should have included it in the original post, sorry! I did make a comment right afterwards, but I guess maybe you clicked just before and it didn't show it?

Offline

#5 2023-09-24 06:54:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,098

Re: [SOLVED] Retain clipboard after application is closed

Looks like you're down to https://aur.archlinux.org/packages/clipmon-git if your wayland DE doesn't provide this - was it among

the ones I found

Online

#6 2023-09-24 12:16:38

illegalcoding
Member
Registered: 2023-09-23
Posts: 7

Re: [SOLVED] Retain clipboard after application is closed

I did briefly see it on the list on the wiki, but since it said it's a clipboard monitor, I kind of glossed over it. Checking the sourcehut page it seems it does have the functionality i'm looking for though. I installed it but it doesn't seem to provide a "clipmon" binary anywhere, so I'm not sure how to activate it? I thought it might be like dunst, where it automatically activates itself through d-bus but it doesn't seem to be running at all when I run `ps axu | grep -i clipmon`. I even tried a full reboot, but that didn't seem to help. The sourcehut page doesn't seem to have any instructions either.
It also seems that KDE does somewhat provide this functionality, but only between it's own apps. If I copy something from Konsole, close Konsole, then paste it into chromium, it works; but not the other way around. Same with dolphin.

Offline

#7 2023-09-24 12:19:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,098

Re: [SOLVED] Retain clipboard after application is closed

https://git.sr.ht/~whynothugo/clipmon/tree/main/item/Makefile wrote:

    @install -Dm755 target/release/clipmon ${DESTDIR}${PREFIX}/lib/clipmon
    @install -Dm644 clipmon.service ${DESTDIR}${PREFIX}/lib/systemd/user/clipmon.service

Online

#8 2023-09-24 14:46:36

illegalcoding
Member
Registered: 2023-09-23
Posts: 7

Re: [SOLVED] Retain clipboard after application is closed

Ran `systemctl --user enable --now clipmon`, and it seems to work now!

Offline

Board footer

Powered by FluxBB