10 lines
278 B
Bash
Executable file
10 lines
278 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
if is_wayland; then
|
|
# echo "Clip: YES. THIS IS WAYLAND SPEAKING." >&2
|
|
sed 's/^\s+//g' | sed 's/\s+$//g' | wl-copy "$@"
|
|
echo "Your trimmed input was stored in all clipboards."
|
|
else
|
|
xclip -selection clipboard
|
|
sleep 5 && killall xclip > /dev/null 2>&1 &
|
|
fi
|