diff options
| author | LM-LCL <hello@exaltedelite.club> | 2023-04-19 21:23:42 +0200 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2023-04-19 21:23:42 +0200 |
| commit | b98f0f496b6739749257804297468fb71845a776 (patch) | |
| tree | 44096c59211f1d877515914273cde862fbf47c1f /lib/action/Clipboard | |
EZown
Diffstat (limited to 'lib/action/Clipboard')
| -rwxr-xr-x | lib/action/Clipboard | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/action/Clipboard b/lib/action/Clipboard new file mode 100755 index 0000000..b8e42e1 --- /dev/null +++ b/lib/action/Clipboard @@ -0,0 +1,12 @@ +#! /bin/bash + +source ./util/verify/cbd-core + +[ -z "$1" ] && url="$(get_cbd)" \ + && [ -z "$url" ] \ + && exit 0 \ + || url="$1" + +printf "$url" | xclip -sel c +printf "$url" | xclip + |
