diff options
author | Erich Eckner <git@eckner.net> | 2020-01-27 10:50:29 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-27 10:50:56 +0100 |
commit | 92dc8fc7a26237ce263b9572d58f82847e649fa6 (patch) | |
tree | e1a51c0cff57142356225372f49f532e60f46ac4 | |
parent | 410d69a68d252ac676b273ecdd251e6a9a70031d (diff) | |
download | ansi-color-to-conky-color-92dc8fc7a26237ce263b9572d58f82847e649fa6.tar.xz |
ansi-color-to-conky-color: less spaces
-rwxr-xr-x | ansi-color-to-conky-color | 6 |
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 \ |