• 0 Posts
  • 1 Comment
Joined 4 months ago
cake
Cake day: April 7th, 2025

help-circle
  • I 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 $@`