From 428bacf87255f60cf0f26a1b5748c50a21d9f34b Mon Sep 17 00:00:00 2001 From: katherine Date: Thu, 22 Mar 2018 15:27:03 -0700 Subject: use stint for colourgrab.sh --- .config/herbstluftwm/colourgrab.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.config/herbstluftwm') diff --git a/.config/herbstluftwm/colourgrab.sh b/.config/herbstluftwm/colourgrab.sh index 43b0552..5ceab17 100755 --- a/.config/herbstluftwm/colourgrab.sh +++ b/.config/herbstluftwm/colourgrab.sh @@ -1,4 +1,3 @@ #!/bin/zsh -file=$(grabc 2>/dev/null) -echo "$file" | tr -d '\n' | xclip -selection clipboard -echo "$file" | tr -d '\n' | xclip -selection primary +stint 2>/dev/null | xargs -n3 printf '#%02x%02x%02x\n' | tr -d '\n'| + tee >(xclip -i -selection clipboard) | xclip -i -selection primary -- cgit v1.2.3