Skip to content
Snippets Groups Projects
Commit e64e1833 authored by joseph's avatar joseph
Browse files

Update README.md

parent 5917fe29
No related branches found
No related tags found
No related merge requests found
File added
...@@ -46,6 +46,10 @@ Edit the variables such that they contain the info for your server (and domain i ...@@ -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. 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 ## 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. 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.
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment