diff options
Diffstat (limited to '.local/bin/colorhandler')
-rwxr-xr-x | .local/bin/colorhandler | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/colorhandler b/.local/bin/colorhandler index 7e35263..3f0f18f 100755 --- a/.local/bin/colorhandler +++ b/.local/bin/colorhandler @@ -1,6 +1,8 @@ #!/bin/sh -col=$(colorpicker --short --one-shot) +[ -z "$1" ] && col=$(colorpicker --short --one-shot) || + col="$1" + sed "s/fill=.*>/fill=\"$col\">/g" $HOME/.local/share/circle.svg > /tmp/circle.svg |