KDE cli clipboard
$ cat /usr/local/bin/c ```sh #!/bin/sh if test -n "$1"; then STDIN="${1}" elif test ! -t 0; then STDIN=$(cat) else echo 'Usage:' echo ' c < /path/to/file' echo ' c text-to-be-copied' echo ' command | c' exit 1 fi
$ cat /usr/local/bin/c
qdbus org.kde.klipper /klipper setClipboardContents "$STDIN" `$ cat /usr/local/bin/v`sh #!/bin/sh qdbus org.kde.klipper /klipper getClipboardContents ```
`$ cat /usr/local/bin/v`
This is what I like to use :)