diff --git a/Install.tar.gz b/Install.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8f553543b7dd8ab5c729fc6bc5e1be96232eee11 Binary files /dev/null and b/Install.tar.gz differ diff --git a/README.md b/README.md index a227c3b5f557fe1daa80614933996692003c63c9..f03674b7335e031e86bd5fd871ad9bb5393e5648 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ Edit the variables such that they contain the info for your server (and domain i I have briefly described the meaning of each variable in the comments above them. +## Known issues + +* Issues to do with files with spaces in their names. + ## Info Thanks to [Jamesjon](https://www.pling.com/u/jamesjon/) for his many many Dolphin Service Menus I could follow through to learn how to write this one. for his many many scripts I could follow through to learn how to write this one. diff --git a/clipboard.sh b/clipboard.sh new file mode 100755 index 0000000000000000000000000000000000000000..2bdab3a8bc624edc4813f52b87cc3bd4f85bc599 --- /dev/null +++ b/clipboard.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Access your KDE 4 klipper on the command line +# usage: +# ./clipboard +# will output current contents of klipper +# echo "foobar" | ./clipboard +# will put "foobar" into your clipboard/klipper + +# check for stdin +if ! tty -s && stdin=$(</dev/stdin) && [[ "$stdin" ]]; then + # get the rest of stdin + stdin=$stdin$'\n'$(cat) + # oh, nice - user input! we set that as current + # clipboard content + qdbus org.kde.klipper /klipper setClipboardContents "$stdin" + exit +fi + +# if we reach this point no user input was given and we +# print out the current contents of the clipboard +qdbus org.kde.klipper /klipper getClipboardContents \ No newline at end of file