Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p
- #!/bin/bash
- echo ${PWD}/$1
- echo -n ${PWD}/$1 | xsel -
- --------------------------------------
- xsel
- #!/bin/bash
- # For this to work, you have to install
- # klipper from KDE4
- # and libqt4, which brings in qdbus.
- if [ -z "$1" ]; then # if no args, output the clipboard
- qdbus org.kde.klipper /klipper getClipboardContents
- elif [ "$1" = "-" ]; then # if arg is "-", load clipboard from stdin
- qdbus org.kde.klipper /klipper setClipboardContents "$(cat)"
- else # else load clipboard with args
- qdbus org.kde.klipper /klipper setClipboardContents "$*"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement