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
|
#!/usr/bin/env bash
|
||||||
read contents
|
read contents
|
||||||
if [[ -x `which wl-copy` ]]; then
|
if [[ -x `which wl-copy > /dev/null 2>&1` ]]; then
|
||||||
echo "$contents" | wl-copy
|
echo "$contents" | wl-copy
|
||||||
else
|
else
|
||||||
echo "$contents" | xclip -selection clipboard
|
echo "$contents" | xclip -selection clipboard
|
||||||
|
|
Loading…
Reference in a new issue