From 687087058062e69deb5638825f7ac294501ea73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 16 Aug 2020 11:54:34 +0100 Subject: [PATCH] do not print errors from clipboard on i3 --- tools/clipboard | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clipboard b/tools/clipboard index 7b088d4a..2729c2b1 100755 --- a/tools/clipboard +++ b/tools/clipboard @@ -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