diff options
Diffstat (limited to 'ansi-color-to-conky-color')
-rwxr-xr-x | ansi-color-to-conky-color | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ansi-color-to-conky-color b/ansi-color-to-conky-color new file mode 100755 index 0000000..9b9b1be --- /dev/null +++ b/ansi-color-to-conky-color @@ -0,0 +1,12 @@ +#!/bin/bash + + sed ' + s@\x1b\[0m@ ${color}@g + '"$( + while read -r code color; do + printf 's@\\x1b\\[\\(0;\\)\\?%sm@ ${color %s}@g\n' \ + "${code}" \ + "${color}" + done \ + <"${0%/*}/colors" + )" |