Fix % in bspwm bar

This commit is contained in:
Ian Adam Naval 2014-10-21 00:49:47 -04:00
parent 91fe4c1c80
commit 688a8677bb

View File

@ -7,6 +7,7 @@ from queue import Queue
def format_color(text, color): def format_color(text, color):
text = text.replace(r'%', r'%%')
color = color.replace("#", "#ff") color = color.replace("#", "#ff")
return r"%{F" + color + r"}" + text + r"%{F-}" return r"%{F" + color + r"}" + text + r"%{F-}"