Fix % in bspwm bar
This commit is contained in:
parent
91fe4c1c80
commit
688a8677bb
@ -7,6 +7,7 @@ from queue import Queue
|
||||
|
||||
|
||||
def format_color(text, color):
|
||||
text = text.replace(r'%', r'%%')
|
||||
color = color.replace("#", "#ff")
|
||||
return r"%{F" + color + r"}" + text + r"%{F-}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user