summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-27 10:50:29 +0100
committerErich Eckner <git@eckner.net>2020-01-27 10:50:56 +0100
commit92dc8fc7a26237ce263b9572d58f82847e649fa6 (patch)
treee1a51c0cff57142356225372f49f532e60f46ac4
parent410d69a68d252ac676b273ecdd251e6a9a70031d (diff)
downloadansi-color-to-conky-color-92dc8fc7a26237ce263b9572d58f82847e649fa6.tar.xz
ansi-color-to-conky-color: less spaces
-rwxr-xr-xansi-color-to-conky-color6
1 files changed, 3 insertions, 3 deletions
diff --git a/ansi-color-to-conky-color b/ansi-color-to-conky-color
index 6c40e30..425b42f 100755
--- a/ansi-color-to-conky-color
+++ b/ansi-color-to-conky-color
@@ -11,11 +11,11 @@ font=$(
)
sed '
- s@\x1b\[0m@ ${color}${font}@g
- s@\x1b\[1m@ ${font '"${font}"':style=bold}@g
+ s@\x1b\[0m@${font}${color}@g
+ s@\x1b\[1m@${font '"${font}"':style=bold}@g
'"$(
while read -r code color; do
- printf 's@\\x1b\\[\\(0;\\)\\?%sm@ ${color %s}@g\n' \
+ printf 's@\\x1b\\[\\(0;\\)\\?%sm@${font}${color %s}@g\n' \
"${code}" \
"${color}"
done \