diff options
author | katherine <shmibs@shmibbles.me> | 2018-03-22 15:27:03 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2018-03-22 15:27:03 -0700 |
commit | 428bacf87255f60cf0f26a1b5748c50a21d9f34b (patch) | |
tree | 552fbafbbd51687e3366b97ceb61dd0c9ad88885 | |
parent | 5e8ac8d1ed3dd3ccbfd282b4126fdb189b95c9a3 (diff) | |
download | dotfiles-428bacf87255f60cf0f26a1b5748c50a21d9f34b.tar.gz |
use stint for colourgrab.sh
-rwxr-xr-x | .config/herbstluftwm/colourgrab.sh | 5 |
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 |