do not print errors from clipboard on i3
This commit is contained in:
parent
0d00364922
commit
6870870580
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue