From 64d645f2bd1d18aeefdde07621a1a4d1e07cb1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 19 Jan 2021 19:28:02 +0300 Subject: Script to pick colors from screen Taken from https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/bin/colorpick and slightly modified. --- dotfiles/.local/bin/colorpick | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 dotfiles/.local/bin/colorpick diff --git a/dotfiles/.local/bin/colorpick b/dotfiles/.local/bin/colorpick new file mode 100755 index 0000000..efb67cc --- /dev/null +++ b/dotfiles/.local/bin/colorpick @@ -0,0 +1,6 @@ +#!/bin/sh +# Taken and slightly modified from Drew DeVault's dotfiles + +color=$(grim -g "$(slurp -p -b 00000000)" - | convert - txt:- | awk 'END{print $3}') +wl-copy "$color" +notify-send "🎨 Color copied to clipboard" "$color" -- cgit v1.2.3