aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-03-22 15:27:03 -0700
committerkatherine <shmibs@shmibbles.me>2018-03-22 15:27:03 -0700
commit428bacf87255f60cf0f26a1b5748c50a21d9f34b (patch)
tree552fbafbbd51687e3366b97ceb61dd0c9ad88885 /.config/herbstluftwm
parent5e8ac8d1ed3dd3ccbfd282b4126fdb189b95c9a3 (diff)
downloaddotfiles-428bacf87255f60cf0f26a1b5748c50a21d9f34b.tar.gz
use stint for colourgrab.sh
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