11 lines
196 B
Bash
Executable file
11 lines
196 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# TODO: detect MIME type?
|
|
# can a `clip-once` script exist building on this?
|
|
# wl-copy `-o`, xclip `-l 1`?
|
|
|
|
if is_wayland; then
|
|
wl-copy -n "$@"
|
|
else
|
|
xclip -i -sel c "$@"
|
|
fi
|