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