summaryrefslogtreecommitdiff
path: root/.local/bin/colorpicker
blob: 5e37201bf24f097f95cbc692dd48716177e37111 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

[ -z "$1" ] && col=$(hyprpicker -an ) ||
  col="$1"


sed "s/fill=.*>/fill=\"$col\">/g" $HOME/.local/share/circle.svg > /tmp/circle.svg

echo "$col" | xsel -b

notify-send -i "/tmp/circle.svg" -a "Colorpicker" "$col was successfully copied to your clipboard."