minus-squaremmmm@sopuli.xyztoLinux@lemmy.ml•Share a script/alias you use a lotlinkfedilinkarrow-up10·edit-22 months agoI use a KDE variant of this that uses klipper instead (whatever you pipe to this will be available in klipper): ` #!/bin/sh function copy { if ! tty -s && stdin=$(</dev/stdin) && [[ "$stdin" ]]; then stdin=$stdin$(cat) qdbus6 org.kde.klipper /klipper setClipboardContents "$stdin" exit fi qdbus6 org.kde.klipper /klipper getClipboardContents } copy $@` linkfedilink
I use a KDE variant of this that uses klipper instead (whatever you pipe to this will be available in klipper):
` #!/bin/sh