Skip to content

Commit

Permalink
Replaced ppm with png since ppm seems to be giving issues on latest g…
Browse files Browse the repository at this point in the history
…raphicksmagick.
  • Loading branch information
jgmdev committed Feb 11, 2021
1 parent e1a1a43 commit 74ba586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wl-color-picker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ sleep 1

# Store the hex color value using graphicsmagick or imagemagick.
if command -v /usr/bin/gm &> /dev/null; then
color=$(grim -g "$position" -t ppm - \
color=$(grim -g "$position" -t png - \
| /usr/bin/gm convert - -format '%[pixel:p{0,0}]' txt:- \
| tail -n 1 \
| rev \
| cut -d ' ' -f 1 \
| rev
)
else
color=$(grim -g "$position" -t ppm - \
color=$(grim -g "$position" -t png - \
| convert - -format '%[pixel:p{0,0}]' txt:- \
| tail -n 1 \
| cut -d ' ' -f 4
Expand Down

0 comments on commit 74ba586

Please sign in to comment.