summaryrefslogtreecommitdiff
path: root/bin/recolor.sh
blob: 6e87b1f1024c63052de339bad12f17930901d1ab (plain)
1
2
3
4
5
6
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