Browse Source

Fix % in bspwm bar

Ian Adam Naval 6 years ago
parent
commit
688a8677bb
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      bspwm/bspwm.configdir/bar.py

+ 1
- 0
bspwm/bspwm.configdir/bar.py View File

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

Loading…
Cancel
Save