15 lines
260 B
Bash
Executable file
15 lines
260 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
RED_ON="$(pgrep redshift)" && pkill redshift
|
|
|
|
grim -g "$(slurp -b aabbcc00 -p)" - |
|
|
convert - txt:- |
|
|
grep -oE '#[0-9a-f]{6}' |
|
|
wl-copy
|
|
|
|
notify-send "$(wl-paste)" "Copied to clipboard"
|
|
|
|
[ "$RED_ON" ] && redshift &> /dev/null &
|