This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Make Klipper ignore copy to clipboard from a script

Tags: None
(comma "," separated)
User avatar
bobbywibowo
Registered Member
Posts
52
Karma
0
OS
Hi there, I'm trying to make a one-liner script to copy password from bitwarden-cli to clipboard, then auto clear the said clipboard in a few seconds. The issue is that Klipper will remember the said password in history, cause I've got it enabled. I kinda want Klipper for everything else, just that I want it to specifically ignore the one-liner script. I copy it to clipboard with "xclip -selection clipboard". Is there an alternative method to copy to clipboard without Klipper noticing, or perhaps a script-accessible command to clear Klipper's history?

On a side note I've tried adding my terminal window class to Klipper's ignore list, but that probably wasn't meant to work with xclip method as it didn't work (and frankly would've been too much for my specific need).


"LIfe is like riding a bicycle. To keep your balance, you must keep moving." - Albert Einstein

Homepage: https://fiery.me


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft