This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
2019-12-13 03:25:15 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-20 04:27:35 +02:00
|
|
|
|
|
|
|
RED_ON="$(pgrep redshift)"
|
|
|
|
|
|
|
|
if test -n "$RED_ON";then
|
|
|
|
pkill redshift
|
|
|
|
fi
|
2019-12-13 03:25:15 +01:00
|
|
|
|
2019-12-13 03:45:04 +01:00
|
|
|
grim -g "$(slurp -b aabbcc00 -p)" - |
|
2020-04-20 04:27:35 +02:00
|
|
|
convert - txt:- |
|
|
|
|
grep -oE '#[0-9A-Fa-f]{6}' |
|
2019-12-13 03:25:15 +01:00
|
|
|
wl-copy
|
|
|
|
|
|
|
|
notify-send "$(wl-paste)" "Copied to clipboard"
|
|
|
|
|
2020-04-20 04:27:35 +02:00
|
|
|
test -n "$RED_ON" && redshift &> /dev/null &
|