summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/recolor.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/recolor.sh b/bin/recolor.sh
new file mode 100755
index 0000000..6e87b1f
--- /dev/null
+++ b/bin/recolor.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+tr -d ' \t' | sed -n '
+s/.*background:/\x1b]11;/p
+s/.*foreground:/\x1b]10;/p
+s/.*color\([0-9][^:]*\):/\x1b]4;\1;/p
+' | tr \\n \\a