Sidebar

snippets

"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSN
snippets tunawasherepoo 11 months ago 100%
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 qdbus org.kde.klipper /klipper setClipboardContents "$STDIN" ``` `$ cat /usr/local/bin/v` ```sh #!/bin/sh qdbus org.kde.klipper /klipper getClipboardContents ``` This is what I like to use :)

1
0