do not print errors from clipboard on i3

This commit is contained in:
Cyryl Płotnicki 2020-08-16 11:54:34 +01:00
parent 0d00364922
commit 6870870580

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
read contents
if [[ -x `which wl-copy` ]]; then
if [[ -x `which wl-copy > /dev/null 2>&1` ]]; then
echo "$contents" | wl-copy
else
echo "$contents" | xclip -selection clipboard