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