aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm
diff options
context:
space:
mode:
Diffstat (limited to '.config/herbstluftwm')
-rwxr-xr-x.config/herbstluftwm/colourgrab.sh5
1 files changed, 2 insertions, 3 deletions
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