Version: v0.9.7 (using 4.3.4 (KDE 4.3.4), Debian packages) Compiler: cc OS: Linux (i686) release 2.6.32-3-686 Currently the clipboard can be set using: cat input | qdbus org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents "$(cat -)" But it would be nice if this had a prettier syntax. Maybe: cat input | klipper or: cat input | klipper --stdin Likewise it would be nice to have this for stdout. klipper --stdout | cat should do: qdbus org.kde.klipper /klipper org.kde.klipper.klipper.getClipboardContents | cat
alias klipper='cat <<eof | qdbus org.kde.klipper /klipper org.kde.klipper.klipper.setClipboardContents "$(cat -)"' > klipper > hello > eof bashref.html > 3.6.6 Here Documents
It is easier to implement the suggested prettier syntax in a simple script than in klipper itself. https://github.com/milianw/shell-helpers/blob/733e03563b7978ab11d3edd7b6175196ecadfec1/clipboard
Indeed. :)